Contig Tools
Installation
pip3 install contig-tools
source code: https://gitlab.com/antunderwood/contig_tools
Usage
usage: contig-tools [-h] [-v] {filter,metrics,check_metrics,co_located} ...
A package to maniuplate and assess contigs arising from de novo assemblies
positional arguments:
{filter,metrics,check_metrics,co_located}
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
co_located check to see if two or more loci are found on the same
contig.
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/contigs_for_checks.fas
contig-tools metrics -f contig_tools/tests/test_data/contigs_for_checks.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
check if a two or more loci are co-located
Make a fasta query file with the 2 or more loci you want to see if they are co-located e.g
>gene1
GCAGCTAGCGACTGCGAC.....
>gene2
CTACGTAGGACACGACTA....
There are two options
-
Search a single genome file for the co-location of loci
contig-tools co_located -q queries.fas -f /path/to/single/genome/contigs.fas
or
-
Search a list of genomes for the co-location of loci Make a text file with paths to genomes e.g
/path/to/single/genome1.fas /path/to/single/genome1.fas ....and then run the command
contig-tools co_located -q queries.fas -l /path/to/single/genome_list_file.txtIf you have muliple cores on the computer you are running this on you can process the search in parallel using the
-n <NUMBER PARALLEL PROCESSES>.If you only want to write out genomes where the queries are co-located use the
-yoptions
code
Code can be found here
Metadata
Release files for contig-tools 0.3.9
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 |
|---|---|---|---|---|
| contig tools-0.3.9.tar.gz | 9.9 kB | Without provenance | Details for contig tools-0.3.9.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| contig_tools-0.3.9-py3.9.egg | Legacy Egg format | - | - | Details for contig_tools-0.3.9-py3.9.egg |
| contig_tools-0.3.9-py3-none-any.whl | Python 3 | none | any | Details for contig_tools-0.3.9-py3-none-any.whl |
Total release size: 42.3 kB
Release files / contig tools-0.3.9.tar.gz
| Download URL | contig tools-0.3.9.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c9143ac39aea2387f3271d3a2e88951658c20cb54efbfb6e493916bdf2b4bae
|
|
BLAKE2b-256 checksum How to use checksums |
6e536ac11ee4c23d5697729eea0f7966adcfe3f14483fe0513991fe237df872e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / contig_tools-0.3.9-py3.9.egg
| Download URL | contig_tools-0.3.9-py3.9.egg |
|---|---|
| Size | 20.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
65580f00c8f7e30533bf4f286aa27d9321a353691c6b73c931ea7c473403d8c4
|
|
BLAKE2b-256 checksum How to use checksums |
97d3bb091d89512cef5843203892a2fd0001025cdd6036e133d262854205f9c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / contig_tools-0.3.9-py3-none-any.whl
| Download URL | contig_tools-0.3.9-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea986d06362c8867ce959a0aac45c642126ba1488199e591ba872cc77dc70ba2
|
|
BLAKE2b-256 checksum How to use checksums |
37b0cc8aed621cffe362c6f8a596919e82e63db616bc1eed873dea77be03c301
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for contig-tools 0.3.9
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.