Bam1_Core_T : "Strand" Field
1
0
Entering edit mode
12.0 years ago
TwoFaces ▴ 10

watching the type "bam1coret" at http://samtools.sourceforge.net/samtools/bam/index.html?Functions/Functions.html#//apple_ref/c/func/bam_write1 there is the explanation of the "strand" field, which if I understand it indicates if the filament is forward or backward ... but is not implemented in the structure bam1coret. How can i get the strand field?

strand • 1.6k views
ADD COMMENT
1
Entering edit mode
12.0 years ago

two C macros are defined in "bam.h" to extract the orientation from bam1coret.flag' :

#define bam1_strand(b) (((b)->core.flag&BAM_FREVERSE) != 0)
#define bam1_mstrand(b) (((b)->core.flag&BAM_FMREVERSE) != 0)
ADD COMMENT
0
Entering edit mode

in bam.h there are BAM_FREVERSE and BAM_FMREVERSE, not bam1_strand(b) or bam1_mstrand(b)

ADD REPLY
0
Entering edit mode

try to grep bam1_strand in *.h

ADD REPLY

Login before adding your answer.

Traffic: 2512 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6