CATnip Workflow
CATnip a tool to assess nucleotide divergence and sequence resolution between user-defined categories.
Prerequisites
- Conda or Mamba
- Git
Installation (Recommended)
Install CATnip directly from Bioconda:
conda create -n catnip -c conda-forge -c bioconda catnip-seq
conda activate catnip
Or faster with mamba:
mamba create -n catnip -c conda-forge -c bioconda catnip-seq
Development Installation
-
Clone the repository:
git clone https://github.com/CIBIO-BU/catnip cd catnip
-
Create the conda environment:
conda env create -f catnip-env.yml
-
Activate the environment:
conda activate catnip
-
Install catnip command:
pip install -e .
-
Check help message:
catnip -h -
Run the test workflow:
cd test-workflow catnip -i coi_micointf_mil.fasta -f coi_micointf_mil_mapping.tsv -c 0,1,2,3 -p 10
Environment Details
The conda environment includes:
- Python 3.11
- CD-HIT 4.8.1 (sequence clustering)
- Bowtie2 2.5.4 (sequence alignment)
- SAMtools (BAM/SAM file processing)
- pysam (Python interface for SAM/BAM files)
- pandas & numpy (data analysis)
Threads, Memory and Parallel Jobs
After clustering, CATnip aligns each heterogeneous cluster separately. These clusters are processed in parallel:
-t THREADSsets the total number of threads (default: 1). CD-HIT clustering uses all of them.-j PARALLEL_JOBSsets how many clusters are aligned at the same time (default: same as-t). The threads are shared between these jobs, so-t 8 -j 4gives each Bowtie2/SAMtools job 2 threads.-m AVAILABLE_MEMORY(MB) is passed to CD-HIT, and divided between the parallel jobs for sorting the alignments.
Clusters are usually small, so many single-threaded jobs (the default) tend to be fastest. If memory is tight, lower -j (each job also runs a Python process that loads the mapping file). Results are the same for any -t/-j combination.
catnip -i sequences.fasta -f mapping.tsv -c 0,1,2,3 -p 10 -t 8 -m 16000
catnip -i sequences.fasta -f mapping.tsv -c 0,1,2,3 -p 10 -t 8 -j 4 -m 16000
Implementation Details
- Divergence values are rounded to the NEAREST WHOLE VALUE. However, output is presented with one decimal case.
- Taxa absent from the output file were excluded from the alignment step, as they can be reliably distinguished from all other taxa in the dataset based on the input divergence thresholds.
Metadata
Release files for catnip-seq 0.2.0
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 |
|---|---|---|---|---|
| catnip_seq-0.2.0.tar.gz | 28.5 kB | Without provenance | Details for catnip_seq-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| catnip_seq-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for catnip_seq-0.2.0-py3-none-any.whl |
Total release size: 58.7 kB
Release files / catnip_seq-0.2.0.tar.gz
| Download URL | catnip_seq-0.2.0.tar.gz |
|---|---|
| Size | 28.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c75182ff4c61dd217c1e822b175c7d1e603553e2aec9d1fd629a11e95d39864
|
|
BLAKE2b-256 checksum How to use checksums |
4b73fd738c4a116862c0380b27ebae0ab53a13c605c9963388395a3f47c9851e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / catnip_seq-0.2.0-py3-none-any.whl
| Download URL | catnip_seq-0.2.0-py3-none-any.whl |
|---|---|
| Size | 30.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32f4e5c66c60f4b4dfd92babaf05c93a2e0beb9242193af06af547ef6282a3f9
|
|
BLAKE2b-256 checksum How to use checksums |
c5c7ef672354c5e1f7e657f14d94a5a5bfc352d7f27bf6d02e20c3a586b4e5e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for catnip-seq 0.2.0
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.