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

feat: high level toolkit for running ligand and docking #143

Merged
merged 6 commits into from
Jan 23, 2025
Merged

Conversation

sg-s
Copy link
Collaborator

@sg-s sg-s commented Jan 21, 2025

changes

  • high level toolkit functions
  • support for scores for vina

usage

from deeporigin.tools import toolkit
csv_file = "/Users/srinivas/Downloads/ligands.csv"
column_name = "SMILES"
toolkit.prep_ligands(
    csv_file=csv_file,
    column_name=column_name,
)

^ this takes in a CSV file, converts every smiles string to a SDF file, uploads them to datahub, and preps them all using meeko (on deeporigin)

ligand_database_name = "ligand-prep-meeko"
ligand_column_name = "output-ligand"
protein_database_name = "protein"
protein_column_name = "protein"
protein_row = "protein-1"

search_space = {
    "center_x": 15.190,
    "center_y": 53.903,
    "center_z": 16.917,
    "size_x": 15.1,
    "size_y": 15.1,
    "size_z": 15.1,
}

docking = {
    "energy_range": 3.1,
    "exhaustiveness": 1,
    "num_modes": 3,
}

toolkit.dock_ligands_to_protein(
    docking=docking,
    search_space=search_space,
    protein_row=protein_row,
    protein_column_name=protein_column_name,
    ligand_database_name=ligand_database_name,
    ligand_column_name=ligand_column_name,
    protein_database_name=protein_database_name,
)

^ this takes a bunch of prepped ligands in a database (created using previous step), and a protein in a protein DB (that was previously prepped using tools) and docks them all in parallel.

@sg-s sg-s requested a review from a team as a code owner January 21, 2025 00:57
@sg-s sg-s changed the title fix: added scores column for vina feat: high level toolkit for running ligand and docking Jan 22, 2025
@sg-s sg-s self-assigned this Jan 22, 2025
@sg-s sg-s merged commit 782b17d into main Jan 23, 2025
13 checks passed
@sg-s sg-s deleted the vina-fixture branch January 23, 2025 22:45
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

Successfully merging this pull request may close these issues.

2 participants