-
Notifications
You must be signed in to change notification settings - Fork 18
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
running -c with custom config.json. Only want to change threshold but more arguments need defining #100
Comments
Also I forgot to say. I usually run this on a shared computational environment. |
I, too, would appreciate a comprehensive treatise on the options available in a custom config.json - going through with trial-and-error and restarting every time a new error pops up is not terribly efficient! The defaults work for RELION-refined maps almost always (including some real edge-cases with thousands of predicted chains!) but the results I get from a fairly simple CryoSPARC-refined map are absolute nonsense. |
While it would be great if a functional
Specifically, and I haven't debugged any further, all the "save" options need to be set to false to run, on my system. Otherwise, I get the error described. |
As for which args need to be defined for GNN, you can see this here in
|
I am trying to run the following command with the standard values but just changing the threshold of the run. It has difficulties at many stages in the program mostly I think related to needing further arguments in the config.json. Would be great to get any advice on what extra args need to be defined and where if you want to run a custom .json
model_angelo build --volume-path X.mrc --fasta-path X.fasta --c config.json --o model
I keep getting errors about standard args not being defined so I added them:
"box_size":64
"save_ca_grid": true
were needed to get past the first iteration and seem to work for the calphas/inference.py.
I then needed to add:
"batch_size":200,
"fp16":false,
"voxel_size":0.725
for getting the gnn args
but now I am stuck with the following error and not sure how to fix it. Would appreciate any help.
Thanks and congrats on publishing your paper!!!
File "/opt/applications/modelangelo/1.0.1/gnu/lib/python3.8/site-packages/model_angelo/c_alpha/inference.py", line 337, in infer
os.path.join(args.output_path, "real_points.cif"), voxel_size * cas,
│ │ │ │ │ └ 1.5047170306151767
│ │ │ │ └ 'model/see_alpha_output'
│ │ │ └ {'box_size': 64, 'model_checkpoint': 'chkpt.torch', 'bfactor': 0, 'batch_size': 4, 'stride': 16, 'dont_mask_input': True, 'th...
│ │ └ <function join at 0x7f5e1b8cbb80>
│ └ <module 'posixpath' from '/opt/applications/python/3.8.3/gnu/lib/python3.8/posixpath.py'>
└ <module 'os' from '/opt/applications/python/3.8.3/gnu/lib/python3.8/os.py'>
UnboundLocalError: local variable 'cas' referenced before assignment
(
{
"standardize_mrc_args":
{
"target_voxel_size": 0.725,
"crop_z": 0,
"bfactor_to_apply": 0,
"auto_mask": false
},
"ca_infer_args":
{
"box_size":64,
"model_checkpoint": "chkpt.torch",
"bfactor": 0,
"batch_size": 4,
"stride": 16,
"dont_mask_input": true,
"threshold": 0.1,
"save_real_coordinates": true,
"save_cryo_em_grid": true,
"do_nucleotides": false,
"save_backbone_trace": true,
"save_ca_grid": true,
"save_output_grid":true,
"crop": 6
},
"gnn_infer_args":
{
"batch_size":200,
"fp16":false,
"voxel_size":0.725,
"num_rounds": 3,
"crop_length": 200,
"repeat_per_residue": 3,
"esm_model": "esm1b_t33_650M_UR50S",
"aggressive_pruning": false,
"seq_attention_batch_size": 200
}
}
The text was updated successfully, but these errors were encountered: