Utility package to parse multi fasta files resulting from de novo assembly
Project description
# Contig Tools
## Installation
```
pip3 install contig-tools
```
## Usage
```
usage: contig-tools [-h] [-v] {filter,metrics,check_metrics} ...
A package to maniuplate and assess contigs arising from de novo assemblies
positional arguments:
{filter,metrics,check_metrics}
The following commands are available. Type
contig_tools <COMMAND> -h for more help on a specific
commands
filter Filter contigs based on either length and/or coverage
metrics Print contig metrics
check_metrics check contig metrics
optional arguments:
-h, --help show this help message and exit
-v, --version display the version number
```
## Examples
**filter contigs**
```
contig-tools filter -l 500 -c 3 -f contigs.fasta
```
**print contig metrics**
```
contig-tools metrics -f contig_tools/tests/test_data/test.fas
contig-tools metrics -f contig_tools/tests/test_data/test.fas -o json
```
**check if contigs meet conditions based on conditions enoded in a yaml file**
example yaml file
```
N50 score:
condition_type: gt
condition_value: 10
Largest contig:
condition_type: gt
condition_value: 15
Total length:
condition_type: lt_gt
condition_value:
- 100
- 50
```
example command
```
contig-tools check_metrics -f contigs.fasta -y conditions.yml
```
metrics that can be checked are
- Number of contigs
- Number of contigs > 500bp
- Total length
- %GC
- Largest contig
- N50 score
conditions that can be used are
- gt => greater than
- lt => less than
- lt_gt => less than and greater than
## code
Code can be found [here](https://gitlab.com/antunderwood/contig_tools)
## Installation
```
pip3 install contig-tools
```
## Usage
```
usage: contig-tools [-h] [-v] {filter,metrics,check_metrics} ...
A package to maniuplate and assess contigs arising from de novo assemblies
positional arguments:
{filter,metrics,check_metrics}
The following commands are available. Type
contig_tools <COMMAND> -h for more help on a specific
commands
filter Filter contigs based on either length and/or coverage
metrics Print contig metrics
check_metrics check contig metrics
optional arguments:
-h, --help show this help message and exit
-v, --version display the version number
```
## Examples
**filter contigs**
```
contig-tools filter -l 500 -c 3 -f contigs.fasta
```
**print contig metrics**
```
contig-tools metrics -f contig_tools/tests/test_data/test.fas
contig-tools metrics -f contig_tools/tests/test_data/test.fas -o json
```
**check if contigs meet conditions based on conditions enoded in a yaml file**
example yaml file
```
N50 score:
condition_type: gt
condition_value: 10
Largest contig:
condition_type: gt
condition_value: 15
Total length:
condition_type: lt_gt
condition_value:
- 100
- 50
```
example command
```
contig-tools check_metrics -f contigs.fasta -y conditions.yml
```
metrics that can be checked are
- Number of contigs
- Number of contigs > 500bp
- Total length
- %GC
- Largest contig
- N50 score
conditions that can be used are
- gt => greater than
- lt => less than
- lt_gt => less than and greater than
## code
Code can be found [here](https://gitlab.com/antunderwood/contig_tools)
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
Close
Hashes for contig tools-0.2.2.macosx-10.12-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a8962559e7a0f42ebc66d1b2c5798557c07dfda82aba0a8008ae69cb22c8816 |
|
MD5 | b6c31d8c9170be7364f2c1058222d19c |
|
BLAKE2b-256 | 5c436b33b8443116587039621d7779163035c42025e38f232bd0032e556b8e6e |
Close
Hashes for contig_tools-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4cf399ef623267c50f9293feed23d4078d4aee536cc410b0311ad6ba089c8f9 |
|
MD5 | 61c3b7b7f6b4f8187666be5e45022d01 |
|
BLAKE2b-256 | 1bf164fee95c58f38efcf4329fd6f38d5a86287399332b4972a025537e51cf3a |