Skip to main content

Analyse Pore-C data.

Project description

Pore_c_py

This package provides Python scripts for working with Pore-C data. It is not intended to be used directly by end uses, but rather as part of our Nextflow workflow wf-pore-c. Hence the terse nature of this documentation.

Installation

A package is available to install through either pip:

pip install pore-c-py

or through conda:

conda install -c nanoporetech pore-c-py

Usage

$ pore-c-py --help
usage: pore_c_py [OPTIONS] COMMAND [ARGS].

Available subcommands are:
    digest       Digest concatemer sequences into monomers using a restriction enzyme.      
    annotate     Annotate alignments with a "walk", which simply
                 enumerates the alignment coordinates of the monomers comprising the
                 concatemer.

Example

The following is indicative use, similar to that performed by wf-pore-c.

INPUT="myreads.bam"
ENZYME="NlaIII"
REF="myref.fasta"
OUTPUT="all"

pore-c-py digest "${INPUT}" "${ENZYME}" \
    | samtools fastq -T '*' \
    | minimap2 -ay -t 8 -x map-ont "${REF}" - \
    | pore-c-py annotate - "${OUTPUT}" --monomers --stdout --summary --chromunity \
    | tee "${OUTPUT}.ns.bam" \
    | samtools sort --write-index -o "${OUTPUT}.cs.bam" -
samtools index "${OUTPUT}.ns.bam"

The digest program can read its input from standard input, so it can be used with bamindex in order to process a subset of a file. This is particularly useful for distributing the workload on a cluster.

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

pore_c_py-2.1.4.tar.gz (25.7 kB view details)

Uploaded Source

File details

Details for the file pore_c_py-2.1.4.tar.gz.

File metadata

  • Download URL: pore_c_py-2.1.4.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for pore_c_py-2.1.4.tar.gz
Algorithm Hash digest
SHA256 9ff4463df3a90ac96c1dac3e7ad1c45551d983277edd35c15a734775a5104cc9
MD5 8e847c87b112b0b97d3e0af1b3a1ac02
BLAKE2b-256 83d69329adab6e00688995c22a37df815fc73fc6ac489768f12492196cdf84d0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page