MG-RAST API - Changing outputs when downloading same data
1
0
Entering edit mode
8.9 years ago
fibar ▴ 90

For a specific sample, I want to download the sequences that have been classified as phylum Bacteroidetes. This is the command I use:

curl -X GET -H "auth: pgsDxzBeMk287a8EUwinE9Vrk" "http://api.metagenomics.anl.gov/1/annotation/sequence/mgm4444444.4?evalue=10&identity=80&source=RefSeq&type=organism&filter_level=phylum&filter=Bacteroidetes" > Bacteroidetes_sequences

I've repeated it a couple of times. The thing is that for some samples I get significantly varying sizes in the different downloading trials.

e.g.

Sample01 - Bacteroidetes_sequences - Size 2 MB

Sample01 - Bacteroidetes_sequences - Size 30 MB

Any hint? Thanks in advance. Cheers!

mg-rast metagenomics api • 1.8k views
ADD COMMENT
0
Entering edit mode
8.9 years ago
5heikki 11k

Make curl more talkative:

-v, --verbose
              Makes the fetching more verbose/talkative. Mostly useful for debugging. A line starting with '>' means "header data" sent by curl, '<' means "header data" received by curl that is  hidden  in
              normal cases, and a line starting with '*' means additional info provided by curl.

              Note that if you only want HTTP headers in the output, -i, --include might be the option you're looking for.

              If you think this option still doesn't give you enough details, consider using --trace or --trace-ascii instead.

              This option overrides previous uses of --trace-ascii or --trace.

              Use -s, --silent to make curl quiet.


Direct stderr to file:

2>stderr.log

Study the log. Perhaps your connection is timing out or closed from the server side or something..

ADD COMMENT

Login before adding your answer.

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