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

Preparing Molecules for DD- error running download_zinc15.py #25

Open
inquisithustler opened this issue May 1, 2023 · 8 comments
Open

Comments

@inquisithustler
Copy link

Facing this error while preparing molecules for DD:
D2-master/pd_python/download_zinc15.py", line 13, in
t_pos = int(io_args.t_pos)
ValueError: __invalid literal for int() with base 10: 'num_cpus'__

What values should I change? @vibudh2209 @fgentile89

@inquisithustler
Copy link
Author

@vibudh2209 @fgentile89 could you please help me out resolve the above mentioned query?

@vibudh2209
Copy link
Owner

What parameter are you passing for -tp parameter? Should be an integer less than equal to the available processor count.
You can get max processor count by:
import multiprocessing
print(multiprocessing.cpu_count())

@inquisithustler
Copy link
Author

I have set following parameters:
parser.add_argument('-sfp','--/DD_protocol-main/smiles_DD_test',help='smiles_DD_test',required=True)
parser.add_argument('-fn','--morgan_library',help='morgan_library',required=True)
parser.add_argument('-tp','--tot_process',help='19',required=True)

Now, I also face following error:
error: the following arguments are required: -sfp/--/DD_protocol-main/smiles_DD_test, -fn/--morgan_library

I am new to python and beginning to understand the process. Kindly help me with it @vibudh2209

@vibudh2209
Copy link
Owner

You need to input the parameters which are required True, I am not sure which file you are running but its asking you to input those two parameters, since those are compulsory arguments for that file to run.

@inquisithustler
Copy link
Author

Okay thanks. So I checked multiprocessing count and I replaced that number at help=20 but still I am getting the same error.
I did something like this:
parser.add_argument('-tp','--tot_process',help='20',required=True)

error:line 25, in
t_pos = int(io_args.tot_process)
ValueError: invalid literal for int() with base 10: 'num_cpus'

@vibudh2209
Copy link
Owner

You are not suppose to change the code, you need to provide the parameters from terminal like:
python download_zinc15.py -tp 20 -fn ….
Do not modify help, that wont change anything

@inquisithustler
Copy link
Author

Thanks a lot it works now

@inquisithustler
Copy link
Author

Morgan fingerprints are not getting placed in the morgan_library folder.
This is what I have been doing:
python morgan_fp.py --smile_folder_path /home/jrf/DD_test/smiles_library --folder_name path_morgan_library/morgan_library --tot_process 3
This the output that I get in the terminal itself: 0.00559687614440918

morgan_library folder remains empty. @vibudh2209

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

2 participants