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

Can not apply with .smi file (~4000 cps) #25

Closed
tieulongphan8995 opened this issue Jun 2, 2021 · 1 comment
Closed

Can not apply with .smi file (~4000 cps) #25

tieulongphan8995 opened this issue Jun 2, 2021 · 1 comment

Comments

@tieulongphan8995
Copy link

I want to calculate molecular descriptor for more than 4000 cps in file.smi. However, when I use:

from padelpy import padeldescriptor
padeldescriptor(mol_dir='molecule.smi', d_file='descriptors.csv')

The output descriptors.csv have no values. Tell me how to solve this issue. Tks so much

@tjkessler
Copy link
Member

Hi @tieulongphan8995,

When you use the 'padeldescriptor' function, you have to specify in the function call which descriptors you want to calculate:

from padelpy import padeldescriptor

# Calculate 2-D descriptors
padeldescriptor(mol_dir='molecule.smi', d_file='descriptors.csv', d_2d=True)

# Calculate 3-D descriptors
padeldescriptor(mol_dir='molecule.smi', d_file='descriptors.csv', d_3d=True)

# Calculate 2-D and 3-D descriptors
padeldescriptor(mol_dir='molecule.smi', d_file='descriptors.csv', d_2d=True, d_3d=True)

If the 'd_2d' and 'd_3d' arguments are not specified, the output file will not be populated with descriptors.

Further, I highly suggest that you set 'retainorder' to 'True', this will ensure the descriptors in your output CSV file appear in the same order as the molecules in your input file:

padeldescriptor(mol_dir='molecule.smi', d_file='descriptors.csv', d_2d=True, d_3d=True, retainorder=True)

Best,
Travis

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