### Development Setup: Sync Environment with uv Source: https://github.com/adaliaramon/helmkit/blob/rna/README.md Sets up the development environment by syncing dependencies with uv from the repository root. Run this after cloning the repository. ```bash uv sync -U ``` -------------------------------- ### Install helmkit with uv Source: https://github.com/adaliaramon/helmkit/blob/rna/README.md Installs the helmkit package using the uv package manager. Use 'uv pip install' for a direct install, or 'uv add' if helmkit is already listed as a dependency in pyproject.toml. ```bash uv pip install helmkit ``` ```bash uv add helmkit ``` -------------------------------- ### Install helmkit with pip Source: https://github.com/adaliaramon/helmkit/blob/rna/README.md Installs the helmkit package using pip, the standard Python package manager. Use this if you are not using uv. ```bash pip install helmkit ``` -------------------------------- ### Quick Example: Generate 2D Coordinates and Save Image Source: https://github.com/adaliaramon/helmkit/blob/rna/README.md Creates a tripeptide molecule from a HELM string, computes 2D coordinates for visualization, and saves an image of the molecule. Requires RDKit's AllChem and Draw modules. ```python from helmkit import Molecule from rdkit.Chem import AllChem, Draw # Create a simple tripeptide (Ala-Arg-Gly) molecule = Molecule("PEPTIDE1{A.R.G}$$$$") # Generate 2D coordinates for visualization AllChem.Compute2DCoords(molecule.mol) # Save the image img = Draw.MolToImage(molecule.mol) img.save("tripeptide.png") ``` -------------------------------- ### Example SDF Entry with Required and Optional Properties Source: https://github.com/adaliaramon/helmkit/blob/rna/README.md Shows the structure of an SDF entry that helmkit expects for monomer data. Includes required properties 'symbol' and 'm_RgroupIdx', and optional properties like 'm_Rgroups', 'm_type', 'm_subtype', and 'm_abbr'. ```sdf Your molecule atom data here... ... > A > H,OH,None,None > 1,2,None,None > aa > natural > Ala $$$$ ``` -------------------------------- ### HELM Notation Example: Two Peptide Chains with Connection Source: https://github.com/adaliaramon/helmkit/blob/rna/README.md Shows a HELM string with two peptide chains and a connection between them. The format includes chain definitions, a connection specification, and section separators. ```helm PEPTIDE1{A.R.G}|PEPTIDE2{S.G.C}$PEPTIDE1,PEPTIDE2,1:R1-3:R3$$$V2.0 ``` -------------------------------- ### Basic Usage: Create Molecule from HELM String Source: https://github.com/adaliaramon/helmkit/blob/rna/README.md Creates a Molecule object from a HELM string and accesses the underlying RDKit molecule via the 'mol' attribute. Use this as the minimal starting point for converting HELM notation to an RDKit molecule. ```python from helmkit import Molecule # Create a molecule from a HELM string helm_string = "PEPTIDE1{A.R.G}$$$$" molecule = Molecule(helm_string) # Access the RDKit molecule object rdkit_mol = molecule.mol ``` -------------------------------- ### Using Custom Monomer Data from SDF File Source: https://github.com/adaliaramon/helmkit/blob/rna/README.md Loads a custom monomer library from an SDF file and creates a molecule using that data. Use this when you need to work with non-standard monomers not included in the default library. ```python from helmkit import Molecule, load_monomer_library # Load your custom monomer data custom_sdf_path = "/path/to/your/custom_monomers.sdf" custom_monomers = load_monomer_library(custom_sdf_path) # Create molecule with custom monomer data molecule = Molecule("PEPTIDE1{A.R.G}$$$$", monomer_df=custom_monomers) ``` -------------------------------- ### Run Tests with pytest Source: https://github.com/adaliaramon/helmkit/blob/rna/README.md Runs the test suite using pytest from the repository root. Ensure the development environment is set up first. ```bash pytest ``` -------------------------------- ### Parallel Processing of Peptides with load_in_parallel Source: https://github.com/adaliaramon/helmkit/blob/rna/README.md Loads a custom monomer library and processes a list of HELM strings in parallel using the 'load_in_parallel' function. Improves performance for large numbers of peptides. ```python from helmkit import load_monomer_library from helmkit import load_in_parallel # Load your custom monomer data (optional) custom_sdf_path = "/path/to/your/custom_monomers.sdf" monomer_db = load_monomer_library(custom_sdf_path) # A list of HELM strings helm_strings = ["PEPTIDE1{A.R.G}$$$$", "PEPTIDE1{S.G.T}$$$$"] # Process peptides in parallel molecules = load_in_parallel(helm_strings, monomer_db) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.