Entering edit mode
6.7 years ago

Hi everyone

Can you please help me to extract SAM file from SRA?

I took the dataset from here 

Downloaded SRA file.

Then did sra-dump on this (as it is said on the page of dataset that reads are already aligned).

But as a result I got very small file (~50 Mb). When I tried to convert it to sorted BAM file I got:

[bam_header_read] EOF marker is absent. The input is probably truncated.

[sam_header_line_parse] expected '@XY', got [@HD VN:1.3]

Hint: The header tags must be tab-separated.
[samopen] no @SQ lines in the header.

I tried to look at summary information of this SRA file here:

And didn't see any information about alignment

Tried to look at alignment information by command:

vdb-dump ./SRR951915.sra | grep "ALIGNMENT_COUNT"

got an error

vdb-dump.2.1.7 int: data bad version while constructing page map within virtual database module - VCursorCellData( col:PANEL at row #1074 ) failed


fastq-dump command led to an error: data bad version while constructing page map within virtual database module - failed SRR951914.sra


Any idea?


sra sam-dump • 6.0k views
Entering edit mode
6.7 years ago

Hi, yesterday I got a good output from fastq-dump.

Your command line is wrong. To run fastq-dump correctly you should know whether your reads are single or paired. In your case, we have single reads, then the command line will be:

./fastq-dump --split-spot SRR951914.sra 

For paired reads:

./fastq-dump --split-files file.sra

Entering edit mode

Thank you for your answer, it helped

Entering edit mode

I read the parameter of   --split-spot, However, I am still don't quite understand what does it mean? Can you make a more clear interpretation to --split-spot? 

Read Splitting                     Sequence data may be used in raw form or split into individual reads
  --split-spot                     Split spots into individual reads


Entering edit mode

What does "spot" mean?

As I understand, a spot contains biological information (the reads themself) and technical information such as adapters, barcodes for multiplexing, etc. More about this here --> What Is A "Spot" In Sra Format

From SRA Hsndbook:

"The spot descriptor captures information that would allow the user of the SRA to interpret the sequencing data and differentiate between technical and application extents in the read. Reads that are mate pairs are concatenated into a single monolithic “spot” sequence." (

About fastq-dump options

Let's take an example - SRR385952.sra sample ( You can see that teh sample should contain forward and reverse sequences, each with length = 101. These sequences are joined in the SRA file and need to be split. You can do it by using:

1) --split-spot option: ./fastq-dump --split-spot SRR385952.sra This gives you a single file with the reverse read of each pair below the forward read for that pair

2) --split-files option: ./fastq-dump --split-files SRR385952.sra This outputs two fastq files: one for forward, another - for reverse reads.

You can find more info in this blog post -->

Hope, it will help.

PS. There is another option - --split-3 - which gives you a pair of fastq files, each corresponding record representing a pair of reads.

Entering edit mode
6.7 years ago

Hi, Marina

You mean sam-dump, right?

It seems to me, that you your file is not sam file. It's just raw reads. Look here for your sra file --> (the tab "Reads")

Let me try to look at this dataset.

Entering edit mode

Hi Evgeniia

Yes, you are right, it is raw reads. But fastq-dump also didn't work:

fastq-dump SRR951914.sra > 951914.fastq
2015-04-08T08:50:36 fastq-dump.2.1.7 err: data bad version while constructing page map within virtual database module - failed SRR951914.sra

Maybe sra archive is broken.. 

I took it from here:




Login before adding your answer.

Traffic: 2347 users visited in the last hour
Help About
Access RSS

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

Powered by the version 2.3.6