Closed xapple closed 1 month ago
Sorry, I'm not sure how to deal with it.
[main_samview] fail to read the header from "-".
tells us the problem is in the header in the bam file humanAligned.sortedByCoord.out.bam
at least.
I am encountering exactly the same problem on half of my samples (produced by the same laboratory).
STAR --runMode alignReads --genomeDir /SryAMm/STAR_index_human --runThreadN 36 --outFileNamePrefix cfRNA-22 --outSAMtype BAM SortedByCoordinate --outSAMunmapped Within --readFilesIn /var/lib/cwl/stg12899fac-3788-4100-8
e7b-521a4b61bf62/S8433Nr8_R1.fastp.fastq /var/lib/cwl/stg706f04d3-fb6e-4c29-826c-426a4ef36f65/S8433Nr8_R2.fastp.fastq
Jan 26 21:50:29 ..... started STAR run
Jan 26 21:50:29 ..... loading genome
Jan 26 21:50:39 ..... started mapping
Jan 26 22:09:31 ..... finished mapping
Jan 26 22:09:32 ..... started sorting BAM
Jan 26 22:13:45 ..... finished successfully
INFO [job star_mapping_pe_human] Max memory used: 0MiB
INFO [job star_mapping_pe_human] completed success
INFO [step star_mapping_pe_human] completed success
INFO [workflow ] starting step samtools_view
INFO [step samtools_view] start
INFO [job samtoolsview] /tmp/7rwe5td$ docker \
run \
-i \
--mount=type=bind,source=/tmp/7rwe5td_,target=/SryAMm \
--mount=type=bind,source=/tmp/qcmxxcuw,target=/tmp \
--mount=type=bind,source=/tmp/6ybi01hv/cfRNA-22Aligned.sortedByCoord.out.bam,target=/var/lib/cwl/stg04f5946e-d659-4b42-b4d5-941124e54608/cfRNA-22Aligned.sortedByCoord.out.bam,readonly \
--mount=type=bind,source=/tmp/6ybi01hv/cfRNA-22Log.final.out,target=/var/lib/cwl/stg04f5946e-d659-4b42-b4d5-941124e54608/cfRNA-22Log.final.out,readonly \
--mount=type=bind,source=/tmp/6ybi01hv/cfRNA-22SJ.out.tab,target=/var/lib/cwl/stg04f5946e-d659-4b42-b4d5-941124e54608/cfRNA-22SJ.out.tab,readonly \
--mount=type=bind,source=/tmp/6ybi01hv/cfRNA-22Log.out,target=/var/lib/cwl/stg04f5946e-d659-4b42-b4d5-941124e54608/cfRNA-22Log.out,readonly \
--workdir=/SryAMm \
--read-only=true \
--log-driver=none \
--user=1000:1000 \
--rm \
--cidfile=/tmp/eov6q01j/20240126231409-615788.cid \
--env=TMPDIR=/tmp \
--env=HOME=/SryAMm \
yyasumizu/bam_filter_polyx:1.3 \
/bin/sh \
-c \
samtools_viewremovemulti.sh 36 4 /var/lib/cwl/stg04f5946e-d659-4b42-b4d5-941124e54608/cfRNA-22Aligned.sortedByCoord.out.bam > /tmp/7rwe5td/human.unmapped.bam
[W::bam_hdr_read] EOF marker is absent. The input is probably truncated
samtools view: error reading file "/var/lib/cwl/stg04f5946e-d659-4b42-b4d5-941124e54608/cfRNA-22Aligned.sortedByCoord.out.bam"
samtools view: error closing "/var/lib/cwl/stg04f5946e-d659-4b42-b4d5-941124e54608/cfRNA-22Aligned.sortedByCoord.out.bam": -1
[main_samview] fail to read the header from "-".
The fastq files are too big (9GB and thats causing the bam file to be corrupt, dont know why) - but if you split the files into two it works :)
I've been using VIRTUS2 on a couple of datasets, and for one bunch of sample it suddenly stopped working for an unknown reason, and produces many errors such as this one:
Though from my end I've fed as usual with paired end FASTA files, so hard to say what could be the issue?