Skip to content
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

Error when running train.py #23

Closed
Rhinogradentia opened this issue Mar 17, 2025 · 1 comment
Closed

Error when running train.py #23

Rhinogradentia opened this issue Mar 17, 2025 · 1 comment

Comments

@Rhinogradentia
Copy link

Hi,

I installed plasClass via conda and classify_fasta.py is running without errors. As my organism order/family can't be found in https://ccb-microbe.cs.uni-saarland.de/plsdb2025/browse I'd like to train on a known plasmid of a related species.

I ran it this way:

(plassClass):/PlasClass$ train.py -p plasmids.fasta -c genome.fasta -o train/ -n 25
Traceback (most recent call last):
  File "/home/<user>/miniconda3_new/envs/plassClass/bin/train.py", line 21, in <module>
    import plasclass_utils as utils
ModuleNotFoundError: No module named 'plasclass_utils'

I used the sequences for the plasmid and the chromosomes from NCBI. When searching for the python-script it is found:

(plassClass) /PlasClass$ find /home/<user>/miniconda3_new/envs/plassClass/ -name plasclass_utils*
/home/<user>/miniconda3_new/envs/plassClass/lib/python3.7/site-packages/plasclass/__pycache__/plasclass_utils.cpython-37.pyc
/home/<user>/miniconda3_new/envs/plassClass/lib/python3.7/site-packages/plasclass/plasclass_utils.py

Any idea what might be wrong?
Any help really appreciated.

Best,
Nadine

@Rhinogradentia
Copy link
Author

Found it myself.

Exchange

import plasclass_utils as utils

by

from plasclass import plasclass_utils as utils

in train.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant