This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Unknown argument '--ngc'

Hey guys, I'm trying to download dbGap data from a cart file and I keep getting this error message, what could be a solution to it? Thanks!

/mnt/c/bio/sratoolkit.2.10.9-ubuntu64/bin$ prefetch --ngc /mnt/c/bio/prj_26363.ngc /mnt/c/bio/cart_DAR99004_202101251434.krt

2021-01-26T14:45:41 prefetch.2.8.2 err: libs/kapp/args.c:1262:ArgsParseInt: param unknown while parsing argument list within application support module - Unknown argument '--ngc'
2021-01-26T14:45:41 prefetch.2.8.2 int: libs/kapp/args.c:1262:ArgsParseInt: param unknown while parsing argument list within application support module - ArgsMakeAndHandle
software error sra prefetch ngc

1 answer

Could be a newer option, is your sratools version up-to-date?

No you arent't. You are in a folder with version 2.10.9 but the message says 2.8.2. If there is a binary you want to use in that bin folder do ./prefetch. Currently you are calling a binary that is somewhere in $PATH.

From being in the folder do ./prefetch --ngc /mnt/c/bio/prj_26363.ngc /mnt/c/bio/cart_DAR99004_202101251434.krt

Log in to answer this question.