Preparing files to call by Manta
1
0
Entering edit mode
3.8 years ago

Dear community members,

I face a problem while using Manta - it complains that 2 reads with the same ID exist in the read group.

Existing read: FCC3FB1ACXX:3:2313:16454:24691/2 chrom:pos:strand chr4:84367961:+ cigar: 53M47S templateSize: 53 SA: chr12,68316771,+,48H52M,122,0; mateChrom:pos:strand chr4:84367976:-
New read: FCC3FB1ACXX:3:2313:16454:24691/2 chrom:pos:strand chr12:68316771:- cigar: 33S67M templateSize: -67 SA: chr4,84367976,-,38M62H,62,0; mateChrom:pos:strand chr12:68316771:+

I decomposed the BAM file into FASTQs. Run Dragen from fastqs - same failure.

Could you help me, what should I do with my FASTQ files to avoid such reads that have same ID and are assigned to the same read group?

I wrote a script to keep only reads with unique IDs from FASTQs (decomposed from BAMs) - surprisingly there are tons of reads with same IDs and maybe just removal of equal IDs reads is not a strategy which can help.

manta sv bam fastq • 1.3k views
ADD COMMENT
1
Entering edit mode

I think it has to do with the way the mapper keeps multi-mapping reads. Which mapper did you use?

ADD REPLY
0
Entering edit mode

it is BWA for the initial BAMs and also BWA for re-mapping with Dragen (mem, I believe). These reads should be marked as secondary alignment - but they are not, flagstat tell me that I have only primary mapped reads.

ADD REPLY
3
Entering edit mode
3.8 years ago
Asaf 10k

See Albert's point no 3 here: bwa mem and multiply mapped reads it's not secondary alignment, it's supplementary. In the example you gave, two parts of the read are mapped to different locations so both are primary but one is probably tagged as supplementary (bit 2048 as opposed to bit 256)

ADD COMMENT
0
Entering edit mode

Thanks a lot for your help! I understood the principle. Could you guide me which bit flag indicates a supplementary alignment? I guess it is not always 2048...

ADD REPLY
0
Entering edit mode

What criteria are used to determine supplementary alignment with bwa-mem (flag 2048) sorry looks like it is always this flag =) your answer was very helpful! If you post it is an answer, I'll accept it.

ADD REPLY

Login before adding your answer.

Traffic: 3146 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