question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Too few arguments' Error while trying to download genomes with specific taxIDs

See original GitHub issue

Hello, Thanks for making bulk genome download from NCBI so much easier! I am looking to download multiple genomes of the species Mycobacterium tuberculosis (taxid: 1773) from refseq/genbank so that I can construct a pangenome with Roary (https://github.com/sanger-pathogens/Roary).

I have looked into the following issues #66, #65, #55, and #14 for some clarification but remain confused as to why I see the too few arguments error when I run ncbi-genome-download with the following options: ncbi-genome-download -s 'refseq' -F 'gff' -l 'complete' -t "1773,83332" -R 'all' -o mtb-genomes/ -H -n -m METADATA_TABLE -v

I have tried various combinations of this & with individual taxIDs too (with -t and -T). I have tried with the default output folder, without the -v, -H, -n (test), -m, options. I always see the following error:

usage: ncbi-genome-download [-h] [-s {refseq,genbank}] [-F FILE_FORMAT]
                            [-l ASSEMBLY_LEVEL] [-g GENUS] [-T SPECIES_TAXID]
                            [-t TAXID] [-A ASSEMBLY_ACCESSIONS]
                            [-R {all,reference,representative}] [-o OUTPUT]
                            [-H] [-u URI] [-p N] [-r N] [-m METADATA_TABLE]
                            [-n] [-N] [-v] [-d] [-V]
                            group
ncbi-genome-download: error: too few arguments

Environment: macOS mojave. ncbi-genome-download version 0.2.7 downloaded with updated pip.

Please advise. Thank you!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jrjhealeycommented, Dec 7, 2018

You’re missing the positional argument of what database type to use.

Just append bacteria to the end of your existing command.

1reaction
jrjhealeycommented, Dec 20, 2018

I’m not at a terminal to test super thoroughly at the moment, so I’m not 100% sure what the distinction between -t and —genus will result in. The genus option is a basic string match though IIRC, so it might be that there are accessions assigned to that taxid that do not have your particular genus string in their metadata names. This is a guess though, @kblin would probably have to weigh in.

As for gimme_taxa, I’m afraid it doesn’t offer any such filtering. The idea behind the script originally was to get an exhaustive list of tax ids to pass in to ngd which could then use all the normal filters to just ignore taxids that didn’t meet the criteria. Your complete filter should return the same end result though given an equivalent set of input taxids (I would expect).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Accessing data from NCBI with EDirect
For searching by taxonomy and downloading genomes (assemblies), @kaiblin and some others have put together a great tool called ncbi-genome-download , and they ......
Read more >
Validation Error Explanations for Genomes - NCBI - NIH
This page has explanations for individual errors that are commonly found during processing of prokaryotic and eukaryotic genomes, ...
Read more >
Download All The Bacterial Genomes From Ncbi - Biostars
NCBI has moved complete bacterial genomes file in their ftp site to ... And how is it possible to download the most recent...
Read more >
biomartr 1.0.2
Fixing issue when trying to combine multiple summary-stats files where NA's were ... allows users to easily retrieve genomes of multiple specified species....
Read more >
problem with makeOrgPackageFromNCBI when making an ...
The cache will try to rebuild once per day. preparing data from NCBI ... starting download for 5 data files getting data for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found