Python API for cortex.
Project description
py-cortex-api
Python API for cortex.
Install
Latest release:
pip3 install py-cortex-api
Latest source:
pip3 install git+https://github.com/iqbal-lab-org/py-cortex-api
Requirements
R is required by cortex
at runtime.
sudo apt install r-base-core
Usage
Inputs:
- a reference genome in fasta[.gz]
- one or more reads file in fasta/q[.gz]
Use a list to pass in reads files, even if there is only one file.
Output: A vcf with variants detected by cortex.
import cortex.calls as cortex
cortex.run("./reference.fasta",
["./reads.fastq"],
"./output.vcf")
The third argument is where to place the output vcf.
Options
The following options can be passed to cortex.run
:
sample_name
: sample name to appear in output vcf (default: 'sample').ploidy
: 1 or 2, for haploid or diploid genotyping (default: 1)mem_height
: ifcortex.calls
fails warning of too low memory, use a higher value (default: 22).tmp_directory
: where to place intermediate output and log files (default: system-defined)cleanup
: whether to remove intermediate output and log files upon successful completion. (Default: True)
Licence
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-cortex-api-2.2.1.tar.gz
(17.5 kB
view details)
File details
Details for the file py-cortex-api-2.2.1.tar.gz
.
File metadata
- Download URL: py-cortex-api-2.2.1.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe239347e1b3c4734c8d328bc0cc810ecc8323d6157c3a56f5e276e262d467f5 |
|
MD5 | c22e3f651aa061ba290cea37246800ae |
|
BLAKE2b-256 | 85e639478462ebcc183ec04acf85dfda6ef3a6cc3b8dd783b50432014170844f |