Heads up:
We’re moving the GATK website, docs and forum to a new platform. Read the full story and breakdown of key changes on this blog.
If you happen to see a question you know the answer to, please do chime in and help your fellow community members. We encourage our fourm members to be more involved, jump in and help out your fellow researchers with their questions. GATK forum is a community forum and helping each other with using GATK tools and research is the cornerstone of our success as a genomics research community.We appreciate your help!

Test-drive the GATK tools and Best Practices pipelines on Terra

Check out this blog post to learn how you can get started with GATK and try out the pipelines in preconfigured workspaces (with a user-friendly interface!) without having to install anything.
We will be out of the office for a Broad Institute event from Dec 10th to Dec 11th 2019. We will be back to monitor the GATK forum on Dec 12th 2019. In the meantime we encourage you to help out other community members with their queries.
Thank you for your patience!

UmiAwareMarkDuplicatesWithMateCigar java.lang.NullPointerException error


I've annotated a SAM file with UMI information (using fgbio's AnnotateBamWithUmis) and am trying to mark duplicates with the tool "UmiAwareMarkDuplicatesWithMateCigar".

My command is as follows:
java -jar ../Tools/picard.jar UmiAwareMarkDuplicatesWithMateCigar I=aligned_umi.sam O=aligned_umi_dup.sam M=aligned_M.txt UMI_METRICS=aligned_umi_met.txt

The version of Picard is 2.18.12-SNAPSHOT

However I receive the following error:

Exception in thread "main" java.lang.NullPointerException at picard.sam.markduplicates.UmiAwareDuplicateSetIterator.process(UmiAwareDuplicateSetIterator.java:138) at picard.sam.markduplicates.UmiAwareDuplicateSetIterator.next(UmiAwareDuplicateSetIterator.java:117) at picard.sam.markduplicates.UmiAwareDuplicateSetIterator.next(UmiAwareDuplicateSetIterator.java:53) at picard.sam.markduplicates.SimpleMarkDuplicatesWithMateCigar.doWork(SimpleMarkDuplicatesWithMateCigar.java:133) at picard.sam.markduplicates.UmiAwareMarkDuplicatesWithMateCigar.doWork(UmiAwareMarkDuplicatesWithMateCigar.java:141) at picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:277) at picard.cmdline.PicardCommandLine.instanceMain(PicardCommandLine.java:103) at picard.cmdline.PicardCommandLine.main(PicardCommandLine.java:113)

I'm unsure why I'm getting this error. I can do the duplicate marking using the original MarkDuplicates tool without issue:
java -jar ../Tools/picard.jar MarkDuplicates INPUT=aligned_umi.sam OUTPUT=aligned_umi_dup.sam METRICS_FILE=aligned_M.txt BARCODE_TAG=RX

But I really want to be able to use the MAX_EDIT_DISTANCE_TO_JOIN parameter with the UmiAwareMarkDuplicatesWithMateCigar tool, and I'm also interested in the UMI_METICS statistics that this tool should report.

Thanks in advance for your help.


Sign In or Register to comment.