Cocoremover is a simple tool for the removal of contaminant contigs from bacterial genome assemblies.
How to use 🎬
-
Build a fresh, updated reference database (eg using 36 cores):
cocoremover -c 36 --makedb -
Run the decontamination of a genome (eg using 36 cores):
cocoremover -c 36 -i GCA_948938835.1.fna -t 1598 -d cocoremover.db
The required parameter -t/--taxid is the species-level NCBI Taxonomy ID for the input genome assembly. Please use cocoremover --help to read the full user guide.
Output files will be created:
{assembly}.counts: shows, for each contig, the number of genes for each detected species. If the species with the highest number of genes is different from the one specified with--taxid, then the contig is assumed as contaminant.{assembly}.CT.{ext}: FASTA file containing contigs marked as contaminant.{assembly}.OK.{ext}: original genome assembly with the contaminating contigs removed.
How to install ⚙️
pip install cocoremover
Cocoremover has several dependencies that need to be satisfied beforehand. They are all easily installable through conda/mamba. If dependencies are not found at the startup, the user will be notified.
diamond: GitHub - Paper - condaesearch,esummary,xtract: Link - condawget: condatar: condaparallel: Link - condaprodigal: GitHub - Paper - condagzip: conda
How to cite ✍🏼
Lazzari G., Felis G. E., Salvetti E., Calgaro M., Di Cesare F., Teusink B., Vitulo N. Gempipe: a tool for drafting, curating, and analyzing pan and multi-strain genome-scale metabolic models. mSystems. December 2025. https://doi.org/10.1128/msystems.01007-25
If you use this tool in your work, remember to specify its version.
Release files for cocoremover 0.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 | |
|---|---|---|---|
| cocoremover-0.1.2.tar.gz | 39.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cocoremover-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 81.6 kB
Release files / cocoremover-0.1.2.tar.gz
| Download URL | cocoremover-0.1.2.tar.gz |
|---|---|
| Size | 39.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e23541b591a6ac77180884ecfa7f8e98d6c6be21a9373da5f8b07816a13cc73
|
|
BLAKE2b-256 checksum How to use checksums |
86339093cfbaf79c883624f93058c79f9f9051e862dedc1f7683c96a0f323367
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.9.15 Linux/4.15.0-213-generic
|
Release files / cocoremover-0.1.2-py3-none-any.whl
| Download URL | cocoremover-0.1.2-py3-none-any.whl |
|---|---|
| Size | 42.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
685eb239be3c2902119017bafad22b3cb365a41e51d010f356680a86bccdeea3
|
|
BLAKE2b-256 checksum How to use checksums |
9c8b130e4177434cbb9e37bb9f61f09a6646a60a4423207ad03ea6586bdf3ae9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.9.15 Linux/4.15.0-213-generic
|