Question: ERROR in sam to bam conversion
0
gravatar for antoromitelli
7 weeks ago by
antoromitelli10 wrote:

Hi everyone, I' m trying to convert sra file from ncbi to bam with this command:

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

and I get this error :

2019-12-06T10:22:54 sam-dump.2.9.0 int: transfer incomplete while reading file within network system module - VCursorCellDataDirect( row#56918017 . idx#6 . READ ) INSDC_dna_text (ptr) failed [W::sam_read1] Parse error at line 56918017 [main_samview] truncated file.

Does anyone know what is the problem here?Can someone help me? Thanks

sequencing rna-seq • 132 views
ADD COMMENTlink modified 6 weeks ago • written 7 weeks ago by antoromitelli10
1

thanks, I solved this problem using 'prefetch'.

ADD REPLYlink written 6 weeks ago by antoromitelli10
1
gravatar for ATpoint
6 weeks ago by
ATpoint28k
Germany
ATpoint28k wrote:

It is not recommended to directly dump files, be it fastq or sam from NCBI. The connection is too unstable (in my experience) and this is exactly what you see. This file is most likely also raw (unaligned) data so there is little point in transformating it to BAM. Better get raw data and align yourself, see for download strategies:

Fast download of FASTQ files from the European Nucleotide Archive (ENA)

It includes downloading fastq files from ENA (which mirrors NCBI) or using the SRAtoolkit (prefetch/fastq-dump).

ADD COMMENTlink modified 6 weeks ago • written 6 weeks ago by ATpoint28k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1736 users visited in the last hour