bam文件中Flag含义

标签: Bam   Flag  
2019-10-18 17:51 阅读(?)评论(0)

Flags In Bam Files

The workbench's use of the alignment flags is shown in the following table and subsequent examples.
BitSAM descriptionUsage in Workbench
0x1template having multiple segments in sequencingset if the segment is part of a pair
0x2each segment properly aligned according to the alignerset if the pair is not broken
0x4segment unmappednever set since the exporter does not export unmapped reads
0x8next segment in the template unmappednever set by the exporter. If a segment has an unmapped mate, the flag 0x1 is not set for the segment, i.e.is not output as part of a pair
0x10SEQ being reverse complementedset if and only if the segment was reverse complemented during mapping
0x20SEQ of the next segment in the template being reversedset if and only if the mate was reverse complemented during mapping
0x40the first segment in the templatethis mate is the first segment of the pair
0x80the last segment in the templatethis mate is the second segment of the pair
0x100secondary alignmentnever set by the exporter. No reads with this flag set are imported41.2.
0x200not passing quality controlsnever set by the exporter and ignored by the importer
0x400PCR or optical duplicatenever set by the exporter and ignored by the importer




Flag Examples

The following table illustrates some of the possible flags in the workbench.

Description of the exampleBitsFlagIllustration
The first mate of a non-broken paired read0x1, 0x2, 0x20, 0x4099See Figure 30.5
The second mate of a non-broken paired read0x1, 0x2, 0x10, 0x80147See Figure 30.6
A single, forward read (or paired read, where only one mate of the pair is mapped)No set bits0see Figure 30.7
A single, reversed read (or paired read, where only one mate of the pair is mapped)0x1016See Figure 30.8
The first, forward segment from a broken pair with forward mate0x1, 0x4065See Figure 30.9
The second, forward segment from broken pair with reversed mate0x1, 0x20, 0x80161See Figure 30.10
The first, reversed segment from broken pair with forward mate0x1, 0x10, 0x4081See Figure 30.11
The second, reversed segment from broken pair with reversed mate0x1, 0x10, 0x20, 0x80177See Figure 30.12


Figure 41.1: The read is paired, both reads are mapped and the mate of this read is reversed


Figure 41.2: The read is paired, both mates are mapped, and this segment is reversed


Figure 41.3: A single, forward read, or a paired read where the mate is not mapped


Figure 41.4: The read is a single, reversed read, or a paired read where the mate is not mapped


Figure 41.5: These forward reads are paired. They map to the same place, so the pair is broken


Figure 41.6: Forward read that is part of a broken read where the mate is reversed


Figure 41.7: Reversed read that is part of a broken pair, where the mate is forward


Figure 41.8: Reversed read that is part of a broken pair, where the mate is also reversed.



Footnotes

... imported41.2
The representation of a particular read with more than one location in a mapping is not supported in the software and thus cannot be imported.

  最后修改于 2019-10-18 20:18    阅读(?)评论(0)
 
表  情:
加载中...
 

请各位遵纪守法并注意语言文明