separately: does anyone know why /RNA-seq would fa...
# rnaseq
m
separately: does anyone know why /RNA-seq would fail to add the a samplename to the bam header? my samplesheet is not missing a sample name or anything straightforward like that
net.sf.samtools.SAMFormatException: Error parsing SAM header. @RG line missing SM tag. Line:
@RG  ID:GRPundef; ; Line number 95
at net.sf.samtools.SAMTextHeaderCodec.reportErrorParsingLine(SAMTextHeaderCodec.java:230)
at net.sf.samtools.SAMTextHeaderCodec.access$100(SAMTextHeaderCodec.java:39)
at net.sf.samtools.SAMTextHeaderCodec$ParsedHeaderLine.requireTag(SAMTextHeaderCodec.java:306)
at net.sf.samtools.SAMTextHeaderCodec.parseRGLine(SAMTextHeaderCodec.java:160)
at net.sf.samtools.SAMTextHeaderCodec.decode(SAMTextHeaderCodec.java:93)
at net.sf.samtools.BAMFileReader.readHeader(BAMFileReader.java:393)
at net.sf.samtools.BAMFileReader.<init>(BAMFileReader.java:99)
at net.sf.samtools.SAMFileReader.init(SAMFileReader.java:511)
at net.sf.samtools.SAMFileReader.<init>(SAMFileReader.java:144)
at net.sf.samtools.SAMFileReader.<init>(SAMFileReader.java:114)
at org.bioinfo.ngs.qc.qualimap.process.ComputeCountsTask.sortSamByName(ComputeCountsTask.java:147)
at org.bioinfo.ngs.qc.qualimap.process.ComputeCountsTask.run(ComputeCountsTask.java:488)
at org.bioinfo.ngs.qc.qualimap.process.RNASeqQCAnalysis.run(RNASeqQCAnalysis.java:68)
at org.bioinfo.ngs.qc.qualimap.main.RnaSeqQcTool.execute(RnaSeqQcTool.java:221)
at org.bioinfo.ngs.qc.qualimap.main.NgsSmartTool.run(NgsSmartTool.java:190)
at org.bioinfo.ngs.qc.qualimap.main.NgsSmartMain.main(NgsSmartMain.java:113)
Sat Aug 09 02:37:26 GMT 2025     WARNING Cleanup output dir
Container:
quay.io/biocontainers/qualimap:2.3--hdfd78af_0
t
I get both an
ID
and an
SM
(plus the
CN
I specify via parameter) in my
@RG
lines with nf-core/rnaseq version 3.19.0 and also 3.16.1, so I don't know what is going on with your run ...
Look in the
.command.sh
of any work dir for the STAR_ALIGN process or in the
script
column of for such a process in the
execution_report_*.html
to see what the
STAR
command line is, speciifcally the
--outSAMattrRGline
parameter. If that is missing the
SM
, I would look through the source code how that gets set and what might have gone wrong ...