Closed danarte closed 7 years ago
Hi, @danarte
Thank you for your bug report. I've briefly tested picard (master on github) and confirmed that it requires the RG line with the SM option accompanied (and also quality string present in each record). So I added a quality string sustaining option '-Q' and a RG line injection option '-R' (the same as the bwa-mem's -R option) in the 0.4.3 release. Just giving -Q
to minialign (or -Q -R"@RG\tID:1\tSM:foo"
or something, if you need RG tags) works[ed] well with the CollectAlignmentSummaryMetrics subcommand.
Thanks,
Hajime Suzuki
Wow, great quick answer and a solution. Just had a chance to check it and it works. Quick note: Index file needed to be rebuilt for the new minialign version, so I think it would be a good idea to add this to the changelog.
Thank you.
Thank you for your helpful comment! I'll fix it as soon as possible.💪
Hajime Suzuki
Hello, I'm trying to use picard's CollectSummaryMetrics on the output of miniAlign and run into errors:
The error is "Error parsing SAM header. @RG line missing SM tag", I tried searching and found that the SM tag is not mandatory and I can get rid of that error with "VALIDATION_STRINGENCY=LENIENT"
I tried that but still run into errors:
(I did sort the file) So now the error is ArrayIndexOutOfBoundsException error and somehow related to collecting q-score data. How can I solve this? (I run into similar problem when a sam file had * instead of qscore data but picard doc says it should be able to handle abscence of qscore data)
Here is the start of the sam file (replaced long strings with ---):
(and here is a start of a bam file from bwa alignment for example, it worked fine with picard):