cinful: A fully automated pipeline to identify microcinswith associated immunity proteins and export machinery
Project description
cinful: microcin identification pipeline
cinful
reads a directory of genome data and identifies class IIb microcins using a combination of HMM and BLAST. It has functionality that identifies the associated export machinery (MFP & PCAT) and putative immunity protein. Publication of this work is forthcoming and will be cited here.
cinful is developed by the Wilke lab at the Department of Integrative Biology in collaboration with the Davies lab at the Department of Molecular Biosciences, both at The University of Texas at Austin.
Installation
There are two methods for installation, one uses pip and should be more user friendly.
Installation from PyPI (recommended)
The following includes steps to install dependencies.
Setup conda environment (includes python and pip):
$ conda create --name <your-env-name> python=3.8.13 pip
$ conda activate <your-env-name>
Install dependencies:
$ conda install mamba -c conda-forge
$ pip install cinful
$ cinful_init
Dependencies installed with cinful_init
- seqkit=0.15.0
- mafft=7.475
- hmmer=3.3.1
- blast=2.9.0
- diamond=2.0.11
- pandas=1.2.4
- numpy=1.19.2
- biopython=1.76
- snakemake=6.2.1
- prodigal=2.6.3
- pyhmmer=0.3.0
PyPI dependencies:
- pyTMHMM==1.3.2
- seqhash==1.0.0
- blake3==0.2.0
If installed properly, running cinful -h
will produce the following output:
cinful
optional arguments:
-h, --help show this help message and exit
-d DIRECTORY, --directory DIRECTORY
Must be a directory containing uncompressed FASTA
formatted genome assemblies with .fna extension.
Files within nested directories are fine
-o OUTDIR, --outDir OUTDIR
This directory will contain all output files.
It will be nested under the input directory.
-t THREADS, --threads THREADS
This specifies how many threads to allow snakemake
to have access to for parallelization
Installation test
I am working on a test to verify installation. As a workaround, you are able to download a test genome that contains microcin, MFP, PCAT, and immunity protein from https://github.com/wilkelab/cinful/blob/main/test/.
Once you've downloaded this test file, you can run cinful on the directory and compare the output to cinful_out
, also stored here.
Usage notes
cinful takes a directory containing genome assemblies as input. All assemblies in the directory must end in .fna
. If they end in a different extension, cinful will ignore them.
Nested directories will explored recursively and all .fna
files analyzed by cinful. Nested directories can be a good way to explore output, as the directory tree will be stored in as cinful_id
in the output files.
Snakemake is the core workflow management used by cinful, the main snakefile is located under cinful/Snakefile
, which issues subroutines located in cinful/rules
.
cinful has been tested on Linux Ubuntu and MacOS.
Workflow
With cinful
, the following workflow will be executed.
Three output directories will be generated in your assembly_directory
under a directory called cinful_out
:
00_dbs
- This is the initial location of the databases of verified microcins, CvaB, and immunity proteins. 01_orf_homology
- Prodigal will generate Open Reading Frame (ORF) predictions for the input assemblies
- Those ORFs will be searched against the previously mentioned databases 02_homology_results
- The results from all the homology searches will be merged here 03_best_hits
- The top hits from the homology results will be placed here
Running from source (not recommended)
Clone this repository:
git clone https://github.com/wilkelab/cinful.git
All software dependencies needed to run cinful are available through conda and are specified in cinful_conda.yml
, the following helper script can be used to generate the cinful conda environment scripts/build_conda_env.sh
, to run this script, you will need to have conda installed, as well as mamba (which helps speed up installation). To install mamba, use the following command:
conda install mamba -c conda-forge
To build the environment, run:
bash scripts/build_conda_env.sh
Once setup is complete, you can activate the environment with:
conda activate cinful
There is a test dataset with an E. coli genome assembly to test cinful on under test/colcinV_Ecoli
, you can run cinful on this dataset by running the following from the initial cinful directory:
python path/to/cinful.py -d <genomes_directory> -o <output_directory> -t <threads>
Contributing
cinful currently exists as a wrapper to a series of snakemake subroutines, so adding functionality to it is as simple as adding additional subroutines. If there are any subroutines that you see are needed, feel free to raise an issue, and I will be glad to guide you through the process of making a pull request to add that feature.
Additionally, since cinful primarily works through snakemake, it can also be used by simply running the snakefiles separately, so if additional configuration is needed, in terms of the types of input files, this can probably be achieved that way.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file cinful-1.2.0.tar.gz
.
File metadata
- Download URL: cinful-1.2.0.tar.gz
- Upload date:
- Size: 34.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aac55739821c3542e7be883055402271cd9e829f59ef5b9c81fe4330eff7c941 |
|
MD5 | ec489df7189df13debd745d652037d79 |
|
BLAKE2b-256 | 4b294a31de5ee18c25b1b32d1b394566f4305cce76197dbd9373f3ca98318d4a |
File details
Details for the file cinful-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: cinful-1.2.0-py3-none-any.whl
- Upload date:
- Size: 36.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfbaa217702a2c3f4335d86e922d9a34ba4f8854e806453049cf910f6a3a6e90 |
|
MD5 | 5bd997219645ea213983b61b1c796aeb |
|
BLAKE2b-256 | 53fb14d1f0f00748f045e4843c8ce36ea8871d88e1177c5ed2d8ef0bacebf7c3 |