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

TypeError: 'NoneType' object is not subscriptable #30

Open
lake-chao opened this issue Oct 25, 2024 · 5 comments
Open

TypeError: 'NoneType' object is not subscriptable #30

lake-chao opened this issue Oct 25, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@lake-chao
Copy link

I installed abfe_workflow, and picked one pdbbind entry, 3pe1, for test. When I ran using cli

cli-abfe -p 3pe1.pdb -l 3pe1_ligands -nr 3 -njr 8 -njl 8 -nosubmit -nogpu -nohybrid -o output

Unfortunately, I got following errors:

Prepare
starting preparing ABFE-ligand file structur
Ligand: ligand-1
Traceback (most recent call last):
File "/opt/conda/envs/abfe/bin/cli-abfe", line 8, in
sys.exit(main())
File "/opt/conda/envs/abfe/lib/python3.10/site-packages/abfe_cli/ABFECalculator.py", line 54, in main
res = calculate_abfe(protein_pdb_path=args.protein_pdb_path, ligand_sdf_paths=sdf_paths, out_root_folder_path=args.output_dir_path,
File "/opt/conda/envs/abfe/lib/python3.10/site-packages/abfe/calculate_abfe.py", line 45, in calculate_abfe
build_ligand_flows(input_ligand_paths=conf["input_ligands_sdf_path"],
File "/opt/conda/envs/abfe/lib/python3.10/site-packages/abfe/orchestration/build_ligand_flow.py", line 213, in build_ligand_flows
build_replicas_simulation_flow(out_ligand_path=out_ligand_path,
File "/opt/conda/envs/abfe/lib/python3.10/site-packages/abfe/orchestration/build_ligand_flow.py", line 179, in build_replicas_simulation_flow
_ = scheduler.generate_scheduler_file(out_prefix=f"{approach_name}_{ligand_rep_name}")
File "/opt/conda/envs/abfe/lib/python3.10/site-packages/abfe/orchestration/generate_scheduler.py", line 38, in generate_scheduler_file
cluster_config = copy.deepcopy(self.cluster_config["Snakemake_job"])

TypeError: 'NoneType' object is not subscriptable

Thank you.

@philbiggin
Copy link
Collaborator

@RiesBen - are you able to pick up?

@RiesBen RiesBen self-assigned this Oct 28, 2024
@RiesBen RiesBen added the bug Something isn't working label Oct 28, 2024
@RiesBen
Copy link
Collaborator

RiesBen commented Oct 28, 2024

Hi @lake-chao,
first time ever I see this, I have a bit of a packed week, but I try to look into this, this week.

@lake-chao
Copy link
Author

lake-chao commented Oct 28, 2024 via email

@lake-chao
Copy link
Author

lake-chao commented Oct 29, 2024 via email

@RobertArbon
Copy link
Contributor

Hi folks,

I've come across the same problem. When running with -nosubmit the the cluster configuration is None which, as @lake-chao points out means the Scheduler.generate_scheduler_file method can't run. Instead of their suggestion, i've changed how the nosbumit flag gets parsed in the cli, see #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants