Flexible and comprehensive software app for design of synthetic DNA sequences without unwanted patterns
BioSynth is a software application for designing synthetic DNA sequences while eliminating unwanted patterns and considering codon usage bias.
Installation
Install BioSynth directly from PyPI:
pip install biosynth-tool
This will automatically install all required dependencies.
Using a Virtual Environment (Recommended)
To avoid conflicts, create a Python virtual environment before installation:
macOS/Linux:
python3 -m venv biosynth_venv
source biosynth_venv/bin/activate
pip install biosynth-tool
Ubuntu:
sudo apt-get update
sudo apt-get install -y libxcb-xinerama0 libxcb1 libxcb-util1 libx11-xcb1 libglu1-mesa qtbase5-dev qtwayland5
python3 -m venv biosynth_venv
source biosynth_venv/bin/activate
pip install biosynth-tool
Windows (Command Prompt):
python -m venv biosynth_venv
biosynth_venv\Scripts\activate
pip install biosynth-tool
Pre Processing
To operate the application, the user must provide the following three input text files:
-
Target sequence file – a plain text file containing a DNA sequence composed exclusively of the characters A, T, G, and C. The sequence must be provided on a single continuous line. For example:
ATAGTACATATC -
Unwanted pattern list – a plain text file containing DNA patterns (substrings) that should be eliminated from the target sequence. Each pattern must appear on a separate line, separated by whitespace. For example:
TAGTAC ATATCA -
Codon usage file – a plain-text file that defines the relative codon usage frequencies for a specific organism. To obtain and prepare this file:
Step 1: Extract Codon Usage Data
-
Visit the Kazusa Codon Usage Database:
https://www.kazusa.or.jp/codon/ -
Under the QUERY Box for search with Latin name of organism, enter the name of the organism. For example:
Marchantia polymorpha -
Click the Submit button.
-
In the search results, locate the desired genome type (e.g.,
chloroplast) and click the corresponding link under theLinkcolumn. -
The codon usage table will appear. Ensure to choose a format and then click submit. You should see the following header:
fields: [triplet] [amino acid] [fraction] [frequency: per thousand] ([number]) -
Select the entire codon usage table (not including the header), for example:
UUU F 0.94 63.5 ( 1558) UCU S 0.40 25.8 ( 634) UAU Y 0.89 33.4 ( 820) UGU C 0.85 8.6 ( 212) UUC F 0.06 4.4 ( 107) UCC S 0.05 3.0 ( 73) UAC Y 0.11 4.1 ( 100) UGC C 0.15 1.5 ( 38) ... -
Copy and paste it into a plain text file.
-
Save the file.
Step 2: Convert to BioSynth Format
-
Download local script named
convert_kazusa_to_biosynth.pyfrom the BioSynth repository: https://github.com/HadarPur/RU-BioSynth/blob/main/convert_kazusa_to_biosynth.py -
This script reads the codon usage file you just created and outputs a two-column text file in the format required by the BioSynth app: each line should contain a codon followed by its usage frequency, separated by whitespace.
-
Run the script from the command line:
cd /path/to/script_directory python ./convert_kazusa_to_biosynth.py <codon_usage_file_path> -o <output_file>
-
The output file will consist of lines in the following form:
TAC 0.56 GCT 0.89 ...
This transformation ensures that rare codons have higher substitution costs, reflecting biological codon bias.
Note:
If you wish to get the table from another resource, please make sure to write your own converter script to ensure that you are in the right format. -
Executing the Command Line Interface (CLI)
To execute the elimination tool via the terminal, use the following command:
biosynth -s <seq_file> -p <pattern_file> -c <codon_usage_file> -a <alpha> -b <beta> -w <w>
Examples
For example, you can run the program using short options:
biosynth -s s_file_no_coding.txt -p p_file_no_coding.txt -c biosynth_codon_usage.txt -a 1.02 -b 1.98 -w 99.96
Or, with the full option names:
# macOS/Linux (bash, zsh)
biosynth --target_sequence s_file_no_coding.txt \
--unwanted_patterns p_file_no_coding.txt \
--codon_usage codon_usage_chloroplast.txt \
--alpha 1.02 \
--beta 1.98 \
--non_synonymous_w 99.96
Executing the Graphical User Interface (GUI)
To launch the graphical user interface of the elimination tool, run:
biosynth -g
You're all set! 🚀
Metadata
Release files for biosynth-tool 2.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| biosynth_tool-2.1.2.tar.gz | 3.1 MB | Without provenance | Details for biosynth_tool-2.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| biosynth_tool-2.1.2-py3-none-any.whl | Python 3 | none | any | Details for biosynth_tool-2.1.2-py3-none-any.whl |
Total release size: 6.3 MB
Release files / biosynth_tool-2.1.2.tar.gz
| Download URL | biosynth_tool-2.1.2.tar.gz |
|---|---|
| Size | 3.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15153c1cfbf1fd64849833df9ac8ae9331ead975d549f249f27f5479d6d9da8f
|
|
BLAKE2b-256 checksum How to use checksums |
e2d92c4ce6ee4fea9b9b30586d6fe41fc2a46a23ec79d45fbe8cd929d58a09ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.13.6 Darwin/25.5.0
|
Release files / biosynth_tool-2.1.2-py3-none-any.whl
| Download URL | biosynth_tool-2.1.2-py3-none-any.whl |
|---|---|
| Size | 3.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba2c836661e483250ee7067432a6edb681e25c32e5715cdc750299094304b47f
|
|
BLAKE2b-256 checksum How to use checksums |
971aaf03bb2688ea0054f91aa6485d67947648a70ee160228adb4a01caced89b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.13.6 Darwin/25.5.0
|
Security for biosynth-tool 2.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.