Closed phyden closed 1 year ago
Hi, looks like your database directory is missing the rep.dna.fas
file or not initialized by mob_init -d <path to your external dir>
. Also make sure your database external directory has all files downloaded and initialized by mob_init
utility and the status.txt
file is present.
Also check these similar issues https://github.com/phac-nml/mob-suite/issues/121 and https://github.com/phac-nml/mob-suite/issues/7
Hope you will soon resolve your issue
Thanks for your quick response. I did manage to resolve the issue by running mob_init
instead of blindly using mob_typer
without pre-fetching the database.
But I wanted to communicate this issue because the fall-back solution of mob_typer calling mob_init fails because mob_init
tries to again parse the commandline-args which are not recognized by this argparser (-i
and -o
)
You could resolve this by changing the way arguments are parsed in mob_init
like in this SO-post:
args, unknown = parser.parse_known_args()
Fixed in release 3.1.7
Hi,
I stumbled across an issue regarding
-d
argument ofmob_typer
.To reproduce this error: I installed mobsuite v 3.1.6 using
and tried to run
mob_typer
specifying a different db-path which did not exist at this time. The reason is, that I would like to have the environment and the database on separate paths. However, running this code produced a weird error message, telling me that-i
and-o
are invalid arguments.mob_typer -i contigs.fa -o mobtyper_results.txt -d /db/mobsuite/typer
cmd-output:
I was puzzled by this message, but it seems that the usage printed is actually the one from
mob_init
. So apparently the parameters just get forwarded intomob_init
, which couldn't handle these additional arguments. The solution in my case was to just runmob_init -d /db/mobsuite/typer
first and retried themob_typer
command, which ran to completion. However, due to the misleading usage-message I was very confused in the first place and thought I'd report this minor issue.br Patrick