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

Generating Pubchem Binary Fingerprint #51

Open
hyojin0912 opened this issue Mar 2, 2021 · 0 comments
Open

Generating Pubchem Binary Fingerprint #51

hyojin0912 opened this issue Mar 2, 2021 · 0 comments

Comments

@hyojin0912
Copy link

hyojin0912 commented Mar 2, 2021

Hello, thank you for your nice package.

I want to generate PubChem fingerprint which is 881 length binary bit vector
(PubChem fingerprint description: https://ftp.ncbi.nlm.nih.gov/pubchem/specifications/pubchem_fingerprints.pdf)

Looking at the folder below in git, I found a suitable example.
"PubChemPy/examples/Chemical fingerprints and similarity.ipynb."

import pubchempy as pcp

coumarin = pcp.Compound.from_cid(323)

bin(int(coumarin.fingerprint, 16))

But output of bin function is length 900 and it contains "b".

I want to get exact length of PubChem Fingerprint from CID.

Please describe me how to do this.

Thanks in advance,

Hyojin

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