Sra-Pileup Question
1
1
Entering edit mode
10.5 years ago

I'm having trouble extracting a pileup file from an SRA using sra-pileup command. NCBI documentation only covers command line arguments for the tool and lacks any usage examples. Here's what I get:

$ linux/gcc/stat/x86_64/rel/bin/sra-pileup --version                               
linux/gcc/stat/x86_64/rel/bin/sra-pileup : 2.3.2

$ linux/gcc/stat/x86_64/rel/bin/sra-pileup ./SRR364089.sra
2013-11-02T14:27:10 sra-pileup.2.3.2 int: self invalid while opening within application support module - failed to process ./SRR364089.sra

The error message, self invalid while opening, looks completely cryptic. I've tried reading the source (available on GitHub), but couldn't find the place where the error is triggered. Any hints on what I'm doing wrong?

pileup • 3.7k views
ADD COMMENT
3
Entering edit mode
10.5 years ago

If you take a look at the run browser for that sample it doesn't actually have alignment data. It's ridiculous, I know, but the error message you are receiving looks like an unhanded exception. sra-pileup requires alignment data.

ADD COMMENT
0
Entering edit mode

Huh, interesting, sam-dump does produce some output for this sample.

$ sam-dump -r ./SRR364089.sra | head -n3                                                                                                                                                    
@HD VN:1.3
LAMARCK_3065:4:1:1239:2103    196    *    0    0    *    *    0    0    NATGAGTGAATGGTTGAAATTTTAATAGAAATTATATTNTTTTTGAACGGAGTATAAGGAAAAGGAATATTTTTGAGTTTGGGAGAGATCGGAAGCGCTC    ####################################################################################################
LAMARCK_3065:4:1:1086:2115    196    *    0    0    *    *    0    0    TTATTTTATTAAGTGTATAGTGGTATGTTATTGTAGTTNTATTTTGTTTTTTTTTAATAGTTAATGATATTGTATTAAAAATTTTTTAAATTTTTAANNN    HHHHHHHHHGHHHHHFHFFHEGGEGGGDDGHGHHHDDD#DDD=CBHHHHEHHHHGGFEHHEHGHHGFFGFGFCGDFFDFFHHHGHHHDFHFHH@H#####

Is there a way to check if a sample has alignment data using SRA toolkit?

ADD REPLY
1
Entering edit mode

If you'll notice in the SAM output, the third field (reference name) is *, meaning not mapped to any contig. To test whether your SRA archive has aligned data, you can run: vdb-dump SRR364089.sra | grep 'ALIGNMENT_COUNT'. I believe that archives with no aligned data will not have this field.

ADD REPLY

Login before adding your answer.

Traffic: 2461 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