[]
[
]
PARASPLIT :
Overview
Parasplit is a Python script designed to process paired-end FASTQ files by fragmenting DNA sequences at specified restriction enzyme sites. It efficiently handles large datasets by leveraging multi-threading for decompression and compression using pigz.
Features
-
Find and Utilize Restriction Enzyme Sites: Automatically identifies ligation sites from provided enzyme names and generates regex patterns to locate these sites in sequences.
-
Fragmentation: Splits sequences at restriction enzyme sites, creating smaller fragments based on specified seed size.
-
Multi-threading: Efficiently processes large datasets by utilizing multiple threads for decompression and compression.
-
Custom Modes: Supports different pairing modes for sequence fragments.
Installation
Ensure you have Python 3 installed along with the required dependencies:
sudo apt-get install pigz
pip install parasplit
Usage
The script can be executed from the command line with various arguments to customize its behavior.
Command-Line Arguments
-
--source_forward(str): Input file path for forward reads. Default is../data/R1.fq.gz. -
--source_reverse(str): Input file path for reverse reads. Default is../data/R2.fq.gz. -
--output_forward(str): Output file path for processed forward reads. Default is../data/output_forward.fq.gz. -
--output_reverse(str): Output file path for processed reverse reads. Default is../data/output_reverse.fq.gz. -
--list_enzyme(str): Comma-separated list of restriction enzymes. Default is "No restriction enzyme found." -
--mode(str): Mode of pairing fragments. Options areallorfr. Default isfr. -
--seed_size(int): Minimum length of fragments to keep. Default is 20. -
--num_threads(int): Number of threads to use for processing. Default is 8. -
--borderless: Non conservation of ligations sites
Example Command
parasplit --source_forward="../data/R1.fq.gz" --source_reverse="../data/R2.fq.gz" --output_forward="../data/output_forward.fq.gz" --output_reverse="../data/output_reverse.fq.gz" --list_enzyme=EcoRI,HinfI --mode=all --seed_size=20 --num_threads=8
Main Script
-
Pretreatment: Retrieval of restriction sites from the Biopython database and allocation of resources for the different processes.
-
Read: Decompression and simultaneous reading of FastQ files. Send reads to a multiprocessing queue
-
Frag: Retrieve sequences in a queue. Splits sequences into fragments based on restriction enzyme sites. Create Pairs, and send it in a multiprocessing queue
-
WriteAndControl: Stream writing from data from the output queue and compression in parallel
Project architecture
Schéma de l'architecture - Licence : CC BY-NC 4.0
Dependencies
- pigz
The tree structure of my project :
├── myproject/
│ ├── __init__.py
│ ├── main.py
│ ├── Frag.py
│ ├── Read.py
│ ├── Pretreatment.py
│ └── WriteAndControl.py
├── pyproject.toml
├── requirements-dev.txt
├── docs/
│ ├── requirements.txt
├── test/
│ ├── __init__.py
│ ├── test_main.py
│ ├── input_data/
│ │ ├── R1.fq.gz
│ │ └── R2.fq.gz
│ └── output_data/
│ ├── output_ref_R1.fq.gz
│ ├── output_ref_R2.fq.gz
│ ├── output_ref_all_R1.fq.gz
│ └── output_ref_all_R2.fq.gz
└── README.md
Contact
For questions or issues, please contact samir.bertache.djenadi@gmail.com.
This README provides an overview of the Cutsite Script's functionality, usage instructions, and implementation details. For more detailed information, refer to the script's source code and docstrings.
Metadata
Release files for parasplit 1.1.5
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 |
|---|---|---|---|---|
| parasplit-1.1.5.tar.gz | 16.1 kB | Without provenance | Details for parasplit-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| parasplit-1.1.5-py3-none-any.whl | Python 3 | none | any | Details for parasplit-1.1.5-py3-none-any.whl |
Total release size: 33.0 kB
Release files / parasplit-1.1.5.tar.gz
| Download URL | parasplit-1.1.5.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5089d9618b862216b27bc3b1e9d44d2b2cb17f1ab523ce38937d0eee27f825b
|
|
BLAKE2b-256 checksum How to use checksums |
54119bf9eed624232d69e388ce8fa2195ff0987ac97cc3b04ee0b4c4f38790fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / parasplit-1.1.5-py3-none-any.whl
| Download URL | parasplit-1.1.5-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d529882f181c7d62c61542dbf392da63e5dab2d008b9e0d5d7bff39c022a8e72
|
|
BLAKE2b-256 checksum How to use checksums |
62d7e6c28a9233278b25a75f66d66a172414e9bdee1d4a323e398f369221b4d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for parasplit 1.1.5
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.