Biochemistry & molecular biology helper tools
Project description
biochemHH
biochemHH is a Python package developed by a wet lab researcher.
It provides tools for:
- Batch-mode DNA cloning primer design, prioritizing primer reuse
- Protein-ligand interaction analysis
- Editing and processing of PDB, CIF, and GenBank (GB) files
It can be used for:
- Studying of an underinvestigated protein (module Homolog)
- Preparing PDB inputs for AI protein design tools (module StructureHH)
- Analyzing PDB outputs from AI protein design tools (module StructureHH)
- Constructing plasmids for experimental protein screening (module GBparser)
Quick Start (Installation & Accessing Example Files)
biochemHH is designed for wet lab scientists who may be new to programming.
Ready-to-run example code blocks are provided to get started quickly.
Step 0. Install Python and PyCharm
- Download and install the latest versions of Python and PyCharm.
Step 1. Create a PyCharm project
- Go to File → New Project. A new window will open.
- Change and record your project location shown at the top.
- Keep the default settings (Project venv), then click
Create.
Step 2. Install biochemHH in your project environment
- Open CMD (Win+R → type
cmd→ Enter). - Run the following commands
(replace the path in the first line with your project location):
cd "C:\Users\ees26\PycharmProjects\project3"
IF NOT EXIST .venv IF EXIST venv ren venv .venv
.\.venv\Scripts\activate.bat
pip install biochemHH
Step 3. Copy example files to your working directory
- In your PyCharm project, create a new Python file named
temporary.py. - Paste the code below into
temporary.pyand set your working directory (wd)
(no Chinese characters allowed).
from pathlib import Path
import shutil, importlib.resources as ir, biochemHH
wd = r'C:\Users\ees26\Desktop\playground3' # replace the path with your working directory
Path(wd).mkdir(exist_ok=True)
with ir.as_file(ir.files(biochemHH)/"example_input") as src:
shutil.copytree(src, wd, dirs_exist_ok=True)
with ir.as_file(ir.files(biochemHH)/"example_script") as src:
shutil.copytree(src, f'{wd}/example_script', dirs_exist_ok=True)
- Right-click → Run
temporary.py. This creates anexample_scriptsubfolder
in your working directory, containing example scripts andplayground.py.
Step 4. Open playground.py and an example script in PyCharm
- Go to File → Open and navigate to the
example_scriptfolder. - Select
playground.pyand one of theexamples_{}.pyfiles, then click OK.
Step 5. Working in the playground
- Set the same working directory in
playground.pyas in step 3.
All input/output files will be read/written in this folder. - Copy a code block from the example and paste it into
playground.py. - Modify variable values to your own data.
- Right-click → Run
playground.py.
Step 6. Optional: download & install PYMOL for protein visualization
Suggested:
- Do not modify the example scripts. Work only in the
playground.py. - For beginners, start with these examples:
examples_Cloning_(batch-mode).pyexamples_Protein_analyses.py
- Run scripts in the PyCharm console (supports unlimited line length).
Terminal may truncate GBparser output due to line limits. - If you are new to Python, always copy example code blocks completely,
including the# { ... # }lines, to avoid indentation errors.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file biochemhh-0.0.0.tar.gz.
File metadata
- Download URL: biochemhh-0.0.0.tar.gz
- Upload date:
- Size: 655.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c9e2ca84e58934ccbbe8f40aa476bca1b6efed519bd2dfd655a2b294ba15956
|
|
| MD5 |
c2181038ef253292394031d4de7a8684
|
|
| BLAKE2b-256 |
657d90ec2616368c5fc258cc2b2ac814b4c2f1a59b0cc9863b05f1dbb46cbf4a
|
File details
Details for the file biochemhh-0.0.0-py3-none-any.whl.
File metadata
- Download URL: biochemhh-0.0.0-py3-none-any.whl
- Upload date:
- Size: 666.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a41c0ed277d75cd8ee6b1ec64e533fbee04c72d190df7b6459abc6cc1a7b41e
|
|
| MD5 |
5f5e66444f0d94a2f6b2b3bcf8bf8877
|
|
| BLAKE2b-256 |
21e51dd3d8645c0dce0effeedbe702e63c2ea8793047a23a1a28e2ab9ba91106
|