-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: 1 taxid not found #65
Comments
MOB-suite uses the ETE3 NCBI taxonomy database and uses taxid 1 as a simple query to make sure that the database is in good health. If it is failing on that taxid, then I would suspect something is wrong with your ETE3 databases. Can you run mob_init and see if that runs successfully? If it does, then try running command again and if not can you post what the error message is? |
Thank you very much for your quick response. The messages after "mob_init" are as follows. At the end, an error message of "Inserting synonyms: 135000 2020-09-01 05:04:29,745 mob_suite.utils ERROR: Init of ete3 library failed with error UNIQUE constraint failed: synonym.spname, synonym.taxid. Removing lock file [in /home/k-yahara/miniconda3/lib/python3.7/site-packages/mob_suite/mob_init.py:230]" appears. mob_suite) [k-yahara@gc017 ~]$ mob_init Inserting synonyms: 135000 2020-09-01 05:04:29,745 mob_suite.utils ERROR: Init of ete3 library failed with error UNIQUE constraint failed: synonym.spname, synonym.taxid. Removing lock file [in /home/k-yahara/miniconda3/lib/python3.7/site-packages/mob_suite/mob_init.py:230] |
Hello, I've also got a similar error using
After running these commands there should be no more issues. I was able to successfully initialize
|
Thank you so much for your quick response. Yes, it worked! |
Thank you very much for your kind instruction
on the installation of mob_suite.
I've installed mob_suite in a server, but the following
test command caused an error of "ValueError: 1 taxid not found".
Could you let me know how to fix it?
(mob_suite) [k-yahara@gc016 plasmid-jp_Ohsumi]$ mob_typer
usage: mob_typer [-h] -i INFILE -o OUT_FILE [-a ANALYSIS_DIR] [-n NUM_THREADS] [-s SAMPLE_ID] [-f] [-x] [--min_rep_evalue MIN_REP_EVALUE]
[--min_mob_evalue MIN_MOB_EVALUE] [--min_con_evalue MIN_CON_EVALUE] [--min_length MIN_LENGTH] [--min_rep_ident MIN_REP_IDENT]
[--min_mob_ident MIN_MOB_IDENT] [--min_con_ident MIN_CON_IDENT] [--min_rep_cov MIN_REP_COV] [--min_mob_cov MIN_MOB_COV]
[--min_con_cov MIN_CON_COV] [--min_overlap MIN_OVERLAP] [-k] [--debug] [--plasmid_mash_db PLASMID_MASH_DB] [-m PLASMID_META]
[--plasmid_db_type PLASMID_DB_TYPE] [--plasmid_replicons PLASMID_REPLICONS] [--repetitive_mask REPETITIVE_MASK]
[--plasmid_mob PLASMID_MOB] [--plasmid_mpf PLASMID_MPF] [--plasmid_orit PLASMID_ORIT] [-d DATABASE_DIRECTORY]
[--primary_cluster_dist PRIMARY_CLUSTER_DIST] [--secondary_cluster_dist SECONDARY_CLUSTER_DIST] [-V]
$ mob_typer --infile test_rep.fas --out_file test_rep.mob_typer.out
2020-08-30 06:25:41,501 mob_suite.mob_typer INFO: Running Mob-typer version 3.0.0 [in /home/k-yahara/miniconda3/lib/python3.7/site-packages/mob_suite/mob_typer.py:163]
2020-08-30 06:25:41,501 mob_suite.mob_typer INFO: Processing fasta file test_plasmid.fas [in /home/k-yahara/miniconda3/lib/python3.7/site-packages/mob_suite/mob_typer.py:165]
2020-08-30 06:25:41,502 mob_suite.mob_typer INFO: SUCCESS: Found program blastn at /home/k-yahara/miniconda3/bin/blastn [in /home/k-yahara/miniconda3/lib/python3.7/site-packages/mob_suite/utils.py:571]
2020-08-30 06:25:41,502 mob_suite.mob_typer INFO: SUCCESS: Found program makeblastdb at /home/k-yahara/miniconda3/bin/makeblastdb [in /home/k-yahara/miniconda3/lib/python3.7/site-packages/mob_suite/utils.py:571]
2020-08-30 06:25:41,502 mob_suite.mob_typer INFO: SUCCESS: Found program tblastn at /home/k-yahara/miniconda3/bin/tblastn [in /home/k-yahara/miniconda3/lib/python3.7/site-packages/mob_suite/utils.py:571]
2020-08-30 06:25:41,502 root INFO: Creating Lock file /home/k-yahara/miniconda3/lib/python3.7/site-packages/mob_suite/databases/ETE3_DB.lock [in /home/k-yahara/miniconda3/lib/python3.7/site-packages/mob_suite/utils.py:438]
2020-08-30 06:25:41,503 root INFO: Testing ETE3 taxonomy db /yshare2/home/k-yahara/miniconda3/lib/python3.7/site-packages/mob_suite/databases/taxa.sqlite [in /home/k-yahara/miniconda3/lib/python3.7/site-packages/mob_suite/utils.py:441]
Traceback (most recent call last):
File "/home/k-yahara/miniconda3/bin/mob_typer", line 10, in
sys.exit(main())
File "/home/k-yahara/miniconda3/lib/python3.7/site-packages/mob_suite/mob_typer.py", line 316, in main
dbstatus = ETE3_db_status_check(1, ETE3_LOCK_FILE, ETE3DBTAXAFILE, logging)
File "/home/k-yahara/miniconda3/lib/python3.7/site-packages/mob_suite/utils.py", line 444, in ETE3_db_status_check
lineage = ncbi.get_lineage(taxid)
File "/home/k-yahara/miniconda3/lib/python3.7/site-packages/ete3/ncbi_taxonomy/ncbiquery.py", line 238, in get_lineage
raise ValueError("%s taxid not found" %taxid)
ValueError: 1 taxid not found
The input file test_rep.fas is as follows:
>test_rep
TTGAAAAAAATATGTGTACTTATGAAGAAGGAACTTGTTGTCAAAGACAATGCACTAATAAATGCCAGTTATAATTTAGACCTTTCAGAACAACGTCTAATATTGTTAGCAATCCTTGAAGCTAGACAATCAAACACACCCAATGATAAAGATTTAACAATTCATGCTGAAAGCTATATCAACCATTTTAACGTTCATAGAAATACAGCCTATAAAGTCCTTAAAGATGCATGTAAGAGTCTATTTGATCGTAGATTCAGCTATCAAAAACTAACTCAGAAGGGCAACATTGAAAATGTAATAAGCCGATGGGTACAACGCATATCTTATGTTGAGAATGAAGCTCTTGTTCGTATTAAGTTTTCTGATGATGTTGTACCGTTGATTACAAACTTAGAAAAACACTTCACCAGTTATGAATTAGAACAAGTCAGTAGTTTAACCAGTGTTTACGCTATACGCTTATATGAATTGCTTATTGCATGGCGTAGTACTGGTAAAGTCATTTTGGTAGAGCTAGAAGAACTTAGATTAAAACTAGGTATAGAATCCCATGAATATAAGAGAATGGGGCAATTTAAAGAAAAAGTTTTACACCTTGCTATTGATCAAATAAACAAATACACCGATATAAAAGCAGAGTATGAACAACACAAACGTGGCCGTTCGATTATTGGCTTTTCATTTAAGTTTAAACAGAAACAACAACCCCAAAAAGCAGATTCCAAGCGAGCCCCTAACACCCCAGACTTCTTTGTCAAAATGACCGATGCACAACGCCATCTATTCGCCAATAAAATGTCTGAGATGCCTGAAATGAGCAAATATTCACAAGGCACAGAAAGCTATCAACAGTTTGCTATCCGTATCGCTGACATGCTTTTAGAGCCTGAAAAGTTTAGAGAGCTTTATCCAATCTTAGAAAAAGCAGGGTTTAAAGGTTAA
Many thanks again.
Koji Yahara
The text was updated successfully, but these errors were encountered: