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 in running FUSTr: "NameError: name 'dynamic' is not defined" #8

Open
pragyr opened this issue Jan 11, 2024 · 0 comments
Open

Comments

@pragyr
Copy link

pragyr commented Jan 11, 2024

Hi,
We are trying to run FUSTr in a Linux Cluster. We installed all the required dependencies as you have mentioned in - "Installation without Docker". However, we are unable to run the analysis and this is the error that is showing up:

Traceback (most recent call last):
  File "/home/pragya/bin/miniconda3/envs/FUSTr_env/lib/python3.12/site-packages/snakemake/cli.py", line 1887, in args_to_api
    dag_api = workflow_api.dag(
              ^^^^^^^^^^^^^^^^^
  File "/home/pragya/bin/miniconda3/envs/FUSTr_env/lib/python3.12/site-packages/snakemake/api.py", line 326, in dag
    return DAGApi(
           ^^^^^^^
  File "<string>", line 6, in __init__
  File "/home/pragya/bin/miniconda3/envs/FUSTr_env/lib/python3.12/site-packages/snakemake/api.py", line 421, in __post_init__
    self.workflow_api._workflow.dag_settings = self.dag_settings
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pragya/bin/miniconda3/envs/FUSTr_env/lib/python3.12/site-packages/snakemake/api.py", line 372, in _workflow
    workflow.include(
  File "/home/pragya/bin/miniconda3/envs/FUSTr_env/lib/python3.12/site-packages/snakemake/workflow.py", line 1369, in include
    exec(compile(code, snakefile.get_path_or_uri(), "exec"), self.globals)
  File "/home/pragya/bin/FUSTr/bin/FUSTrSnakefile", line 419, in <module>
    longIsoform_CDS_combined[GeneID] = seq
    ^^^^^^^
NameError: name 'dynamic' is not defined
Traceback (most recent call last):
  File "/home/pragya/bin/miniconda3/envs/FUSTr_env/lib/python3.12/site-packages/snakemake/cli.py", line 1887, in args_to_api
    dag_api = workflow_api.dag(
              ^^^^^^^^^^^^^^^^^
  File "/home/pragya/bin/miniconda3/envs/FUSTr_env/lib/python3.12/site-packages/snakemake/api.py", line 326, in dag
    return DAGApi(
           ^^^^^^^
  File "<string>", line 6, in __init__
  File "/home/pragya/bin/miniconda3/envs/FUSTr_env/lib/python3.12/site-packages/snakemake/api.py", line 421, in __post_init__
    self.workflow_api._workflow.dag_settings = self.dag_settings
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pragya/bin/miniconda3/envs/FUSTr_env/lib/python3.12/site-packages/snakemake/api.py", line 372, in _workflow
    workflow.include(
  File "/home/pragya/bin/miniconda3/envs/FUSTr_env/lib/python3.12/site-packages/snakemake/workflow.py", line 1369, in include
    exec(compile(code, snakefile.get_path_or_uri(), "exec"), self.globals)
  File "/home/pragya/bin/FUSTr/bin/FUSTrSnakefile", line 419, in <module>
    longIsoform_CDS_combined[GeneID] = seq
    ^^^^^^^
NameError: name 'dynamic' is not defined
Picking up from where we left off!
1 snakemake --snakefile $(which FUSTrSnakefile) -d ./main_folder_annotated_trctms_CCMB --cores 32 --use-conda --configfile configure.json  --unlock
Traceback (most recent call last):
  File "/home/pragya/bin/FUSTr/bin/FUSTr", line 135, in <module>
    output = subprocess.check_output(['bash','-c', bashCommand])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pragya/bin/miniconda3/envs/FUSTr_env/lib/python3.12/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pragya/bin/miniconda3/envs/FUSTr_env/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['bash', '-c', 'snakemake --snakefile $(which FUSTrSnakefile) -d ./main_folder_annotated_trctms_CCMB --cores 32 --use-conda --configfile configure.json']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pragya/bin/FUSTr/bin/FUSTr", line 141, in <module>
    output = subprocess.check_output(['bash','-c', bashCommand])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pragya/bin/miniconda3/envs/FUSTr_env/lib/python3.12/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pragya/bin/miniconda3/envs/FUSTr_env/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['bash', '-c', 'snakemake --snakefile $(which FUSTrSnakefile) -d ./main_folder_annotated_trctms_CCMB --cores 32 --use-conda --configfile configure.json  --unlock']' returned non-zero exit status 1.

Could you please us figure out the remedy?
Thanks,
pragyadeep

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