I use Picard's Markduplicates. The version is 1.3. The bam files is obtained using maq2sam-long. Then I sorted it using SortSam.
When I run
java -Xmx2g -jar ~/bin/MarkDuplicates.jar TMP_DIR=. I=mapset_withdup_0.bam O=aa.bam METRICS_FILE=cc.txt VALIDATION_STRINGENCY=SILENT
I got an error as:
INFO 2010-02-16 14:55:55 MarkDuplicates Start of doWork freeMemory: 8668240; totalMemory: 9109504; maxMemory: 1398145024
INFO 2010-02-16 14:55:55 MarkDuplicates Reading input file and constructing read end information.
INFO 2010-02-16 14:55:55 MarkDuplicates Will retain up to 6241718 data points before spilling to disk.
[Tue Feb 16 14:55:55 GMT 2010] net.sf.picard.sam.MarkDuplicates done.
Runtime.totalMemory()=108986368
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.get(ArrayList.java:324)
.....
If I use
java -Xmx2g -jar ~/bin/MarkDuplicates.jar TMP_DIR=. I=mapset_withdup_0.bam O=aa.bam METRICS_FILE=cc.txt
I got an error as
Exception in thread "main" java.lang.RuntimeException: SAM validation error: ERROR: Record 1, Read name GAII01:5:34:1106:456#0, Mapped mate should have mate reference name
I checked the file. It is well sorted by coordinate. I can merge the file correctly. But I just can't make markduplicates work.
When I run
java -Xmx2g -jar ~/bin/MarkDuplicates.jar TMP_DIR=. I=mapset_withdup_0.bam O=aa.bam METRICS_FILE=cc.txt VALIDATION_STRINGENCY=SILENT
I got an error as:
INFO 2010-02-16 14:55:55 MarkDuplicates Start of doWork freeMemory: 8668240; totalMemory: 9109504; maxMemory: 1398145024
INFO 2010-02-16 14:55:55 MarkDuplicates Reading input file and constructing read end information.
INFO 2010-02-16 14:55:55 MarkDuplicates Will retain up to 6241718 data points before spilling to disk.
[Tue Feb 16 14:55:55 GMT 2010] net.sf.picard.sam.MarkDuplicates done.
Runtime.totalMemory()=108986368
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.get(ArrayList.java:324)
.....
If I use
java -Xmx2g -jar ~/bin/MarkDuplicates.jar TMP_DIR=. I=mapset_withdup_0.bam O=aa.bam METRICS_FILE=cc.txt
I got an error as
Exception in thread "main" java.lang.RuntimeException: SAM validation error: ERROR: Record 1, Read name GAII01:5:34:1106:456#0, Mapped mate should have mate reference name
I checked the file. It is well sorted by coordinate. I can merge the file correctly. But I just can't make markduplicates work.
Comment