Hello Alex,
I am not sure whether this is a bug, but when I use code like this
STAR --genomeDir /gpfs/projects/DubnauGroup/ref/ --sjdbGTFfile /gpfs/projects/DubnauGroup/ref/dm6.refGene.CEL-Seq.gtf --readFilesIn DPM3_R2_exUMI_044_masked --alignIntronMax 5000 --outSAMattributes jM --soloStrand Forward --outFilterType BySJout --outFilterIntronMotifs RemoveNoncanonicalUnannotated --runThreadN 40 --readFilesCommand zcat --outReadsUnmapped Fastx --outFileNamePrefix ./debug.3_
It generated errors during the samtools steps such as:
[E::sam_parse1] hex field does not have an even number of digits
[W::sam_read1] Parse error at line 305169
[main_samview] truncated file.
I have tried to reduce the thread N but didn't help to prevent the error. Eventually, I took the '--outSAMattributes jM' out of the code and haven't got any errors.
For my purpose, I am fine to ignore whether the introns are annotated or not. Could it be my mistake not properly setting up the parameter? Or maybe you want to look into it to see whether it's a bug.
Sincerely,
Maxwell