Closed fanghe0720 closed 9 months ago
Hi,
It looks like the error is coming from pysam
.
Could you post the output of the following?
$ samtools quickcheck Aligned.out.bam
$ samtools view -H Aligned.out.bam
$ samtools view Aigned.out.bam | head -n 10
Thanks
Thanks for the quick response. Please see below. 1, nothing showed up with $samtools quickcheck Aligned.out.bam 2, samtools view -H Aligned.out.bam [E::sam_hrecs_error] Malformed key:value pair at line 1: "@HD VN:1.4 –sjdbGTF file ./Mus_musculus.GRCm38.100.chr.gtf" samtools view: failed to add PG line to the header 3, [hefang@n028 AFD_input]$ samtools view Aligned.out.bam | head -n 10 [E::sam_hrecs_error] Malformed key:value pair at line 1: "@HD VN:1.4 –sjdbGTF file ./Mus_musculus.GRCm38.100.chr.gtf" samtools view: failed to add PG line to the header
I can see the header without any problem with the .bam files produced by STAR previously. The only parameters I changed for this batch of mapping are --sjdbOverhang 149 --winAnchorMultimapNmax 200 --outFilterMultimapNmax 100 to keep repeats.
Hi,
Thanks for your feedback.
It really looks like there's an issue with the header, as the @HD
line should not contain the --sjdbGTFfile
line (which should be in the @PG
line instead). I wonder if there was an issue with STAR writing the file header (potentially just for those files?).
Could you try re-running the STAR command and see if it replicates (or if it was a one-time thing)? I can't see any issue with the extra parameters that you provided.
Thanks.
Thank you for the suggestion! I will re-run and see. Thanks
Re-run solved this problem. Thanks!
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
Hi,
I'm using your TEcount for with the .bam file produced by STAR. It is unsorted. Below is the details. Is there any specific requirement for STAR mapping to use your TEtranscripts?