Convert sra to bam file error handling
1
2
Entering edit mode
9.4 years ago
c12i34 ▴ 30

Hi Guys,I am trying to convert some sra files into bam format. At the moment, I am using this command from sratoolkit

sam-dump SRR390728 | samtools view -bS - > SRR390728.bam

but unfortunately I got an error message like this:

sam-dump.2.4.2 err: param invalid while validating file within file system module - content-size read from local file is invalid.

Having said that, I still get a bam file as output at the end. Can I ignore that error msg and continue with peak calling? Also how I can convert multiple sra files to bam in one go? Many thanks!

software-error next-gen • 9.0k views
ADD COMMENT
0
Entering edit mode
ADD REPLY
0
Entering edit mode
9.4 years ago
sam-dump SRR390728.sra  > SRR390728.sam

Once you have your SAM file:

module load SAMTools
samtools view -b -S SRR390728.sam > SRR390728.bam
ADD COMMENT
1
Entering edit mode

Note that loading samtools as a module will be completely system dependent and often not required.

ADD REPLY
0
Entering edit mode

What Devon said. module load samtools is only valid in shared environments. Also, OP is using the latest version of samtools so a direct conversion to BAM should not be the cause of the problem.

ADD REPLY

Login before adding your answer.

Traffic: 2351 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6