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

Prepare the pickle file using a subset of PDB files? #11

Open
BinhongLiu opened this issue Mar 3, 2023 · 3 comments
Open

Prepare the pickle file using a subset of PDB files? #11

BinhongLiu opened this issue Mar 3, 2023 · 3 comments

Comments

@BinhongLiu
Copy link

Hi!
Could I prepare the pickle file using a subset of PDB files? And so that I could search for a functional site against the subset of the PDB database. I tried the embed_pdb_dataset.py script, but only the LMDB format file was produced. Thanks!

@BinhongLiu
Copy link
Author

BinhongLiu commented Mar 27, 2023

Hi,
Sorry to bother you again. I'd like to prepare a pickle file containing residues embedding database with data from a pocket database (http://bioinfo-pharma.u-strasbg.fr/scPDB/) and then annotate my protein structures with this pocket database using annotate_pdb.py. It seems to be that I need to prepare the pickle file and background_stats.tar.gz, right?
Would you help me with this? Thanks

@awfderry
Copy link
Owner

Hi, you can use the script lmdb_to_pkl.py to convert the LMDB format to pickle format. For large datasets, it may help to process this in multiple splits and combine the resulting pickle files (using the --split_id and --num_splits arguments).

@awfderry
Copy link
Owner

For a custom database such as scPDB, you can create the dataset using scripts/functional_database.py (you may have to update the dataset class in line 23 from SiteDataset to accommodate your specific data format. You can either use the pre-computed background embeddings from PDB100 (recommended as a starting point) or you can compute your own background distributions using a dataset of PDB files using scripts/compute_background.py.

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