Error running sam-dump
1
0
Entering edit mode
8.1 years ago
beausoleilmo ▴ 600

I'm downloading a BAM from the NCBI server. The thing is that I sometimes get an error message and sometimes not. Nothing change in my code. I just send the command at different times.

sam-dump SRR2937435 | samtools view -bS - > SRR2937435.bam
# I get a file that is ~950 MB 
# 2016-11-04T21:57:49 sam-dump.2.7 err: function unsupported while opening file within network system module - error with http open 'http:
# 2016-11-04T21:57:49 sam-dump.2.7 err: item not found while reading file - input object(s) not found

I found other people having the same problem but it seems that nobody knows why. Do you have any idea?

sam NCBI BAM samtools • 2.3k views
ADD COMMENT
1
Entering edit mode
8.1 years ago
Renesh ★ 2.2k

This error will pop up when there is interception in connection to sra-download.ncbi.nlm.nih.gov by sam-dump. Once, the connection is successfully established, you will not see this error. Sometimes, you have to keep trying to execute sam-dump to establish secure connection to sra-download.ncbi.nlm.nih.gov. That is why, you get this error message sometimes.

ADD COMMENT
1
Entering edit mode

By connection, do you mean my computer to the internet or a server error from NCBI? Is there a way that I get the error less frequently?

ADD REPLY

Login before adding your answer.

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