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?
Huh, interesting,
sam-dump
does produce some output for this sample.Is there a way to check if a sample has alignment data using SRA toolkit?
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.