Picard Exception: "Multiple Samrecord With Read Name..."
1
1
Entering edit mode
11.3 years ago
Pavel Senin ★ 1.9k

Hi folks:

How to get around that exception?

So, I am iterating over mapped to genome pairs using SAMRecordIterator, and when I am trying to retrieve the mate's SAMRecord by calling readerRight.queryMate(samRecord) I am having that exception:

 net.sf.samtools.SAMFormatException: Multiple SAMRecord with read name HWI-ST314_0082:8:1107:19789:73933#ATCACG for first end.
    at net.sf.samtools.SAMFileReader.queryMate(SAMFileReader.java:474)...

Is there a way to get them all - those mate-pair records - as a collection??

picard java • 1.8k views
ADD COMMENT
0
Entering edit mode
11.2 years ago
samsara ▴ 630

It seems you have multiple reads with same read name. Grep the input file to check those reads.

ADD COMMENT
0
Entering edit mode

well, i do understand that, moreover, i have they names and can get them iterating with a second instance of samiterator, theoretically... just seems to be odd to see that exception and being unable to get ALL of them to deal with in the same loop.

ADD REPLY

Login before adding your answer.

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