You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I create a new bam record, the new bam record seems to truncate the read name at 23 characters. I am using the following code (note that this is part of a larger program; I just stopped it in the middle to check the file quickly):
That looks like a valid BAM to me, albeit unaligned to a genome. The 77 * 0 0 * * 0 0 part are columns 2-9 of the BAM/SAM specification. see section 1.4.
EDIT: Ignore above, I see what you're saying now, it's missing xyz
When I create a new bam record, the new bam record seems to truncate the read name at 23 characters. I am using the following code (note that this is part of a larger program; I just stopped it in the middle to check the file quickly):
When I look at the resulting file, I see this:
@hd VN:1.5 SO:queryname
@rg ID:A SM:testNonRef
abcdefghijklmnopqrstuvw 77 * 0 0 * * 0 0 GGGGTGCCCCCAAAGCGGGCCCGTGGGGGCCTCTGGGATGATGATGATGCACCTCGGCCATCCCAATTCGAGGAGGACCTGGCA DGHIIIIIIIIIIHIIIIIHHHIIHIIIGIIIIIIIIIHIIIIIIIIIIIIIIFIIGIIIGIIIIIHHIIIHIIIIIIGIHHII RG:Z:A X?:Z:HISEQ_0537:1:1101:10000:20114#ACGCTC
abcdefghijklmnopqrstuvw 141 * 0 0 * * 0 0 AAGAGAATGAGGGTCAAGGGTCAGGGCCAGAATCACTGTAGGCCACACAGGCTGTACGGGGTGGAAGGGCAGTCCTTTGTAGGA DGHHIIIIIIIHIHHIIIIIIIIIGHIIIIIIIIIIIIIIIIIIIIIIIIHIIIIIIIIIGHIIIIIHIHHIIIIIFHFGHHIG RG:Z:A X?:Z:HISEQ_0537:1:1101:10000:20114#ACGCTC
Based on my understanding, the read name should be "abcdefghijklmnopqrstuvwxyz", but it isn't.
Thanks for any help you can give,
Brendan
The text was updated successfully, but these errors were encountered: