question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SamToFastq should provide an informative error when RG info is missing

See original GitHub issue

As reported in the GATK forum

When running SamToFastq with OUTPUT_PER_RG=T on a bam file without read group information, you get the following error:

Exception in thread "main" java.lang.NullPointerException
        at net.sf.picard.sam.SamToFastq.doWork(SamToFastq.java:148)
        at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:177)
        at net.sf.picard.sam.SamToFastq.main(SamToFastq.java:119)

This should be handled to return a more informative error message to the user.

I would guess this should be handled around line 166 of https://github.com/broadinstitute/picard/blob/master/src/java/picard/sam/SamToFastq.java

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vdauweracommented, Mar 20, 2017

Yep, done. Picard doesn’t have nightlies but the source code is public so they can build from source themselves.

0reactions
chandranscommented, Mar 20, 2017

Should someone let the user know? I am not sure where this fix is/if Picard has nightlies like GATK?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Picard SamToFastq error - Biostars
it's an I/O error. check you have the right to write in the current directory. check you have the right to write a...
Read more >
Thread: [Samtools-help] Picard release 1.19 - SourceForge
Picard Release 1.22 8 June 2010 - In MetricsFile, fix bug in which comparator for Histogram was being lost when merging histogram keysets...
Read more >
How to Map and clean up short read sequence data efficiently
To make the information more digestible, we will first talk about each tool separately. At the end of the section, we provide the...
Read more >
Picard - GitHub Pages
This page provides detailed documentation on the Picard command-line syntax ... a hash code based on identifying information in the read groups (RG)...
Read more >
ValiidateSamFile Error: Mate not found - GATK
After running this pipeline, I was getting errors about mates not getting found ... INFO 2021-06-16 16:39:06 SamFileValidator Validated Read ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found