Skip to main content

CiFi - toolkit for downstream processing of CiFi long reads.

Project description

CiFi

Toolkit for downstream processing of CiFi long reads.

https://dennislab.org/cifi

Install

pip install cifi
# or
mamba install bioconda::cifi

Commands

Command Description
cifi qc Sample reads and report enzyme site frequency, fragment sizes, estimated yield
cifi digest In-silico digestion → paired-end FASTQ (all pairwise contacts)
cifi filter MAPQ-based filtering of aligned paired-end BAM
cifi enzymes List built-in restriction enzymes

qc

cifi qc reads.bam -e HindIII -o qc_out
cifi qc reads.bam -e NlaIII -n 50000 -o qc_out    # sample 50k reads
cifi qc reads.bam -e HindIII -n 0 -o qc_out        # all reads
cifi qc reads.bam --site GANTC --cut-pos 1 -o qc_out  # custom site

Writes an output directory with HTML report, JSON, TSV tables, distribution plots (PNG), and a multi-page PDF.

digest

cifi digest reads.bam -e HindIII -o output
cifi digest reads.fq.gz -e NlaIII -o output -m 5 --gzip
cifi digest reads.bam --site GANTC --cut-pos 1 -o output

Produces {prefix}_R1.fastq and {prefix}_R2.fastq (optionally gzipped), plus an HTML report and JSON stats.

filter

cifi filter aligned.bam -o filtered.bam -q 30

Keeps properly paired reads where both mates meet the MAPQ threshold.

Enzymes

Built-in enzymes:

4-cutters 6-cutters
NlaIII (CATG) HindIII (AAGCTT)
DpnII (GATC)
MboI (GATC)
Sau3AI (GATC)

Any recognition site can be specified with --site and --cut-pos, including IUPAC degenerate bases (N, R, Y, W, S, M, K, B, D, H, V).

How it works

CiFi reads are concatemers of restriction fragments from genomic regions in 3D proximity. The toolkit finds all enzyme cut sites in each read, extracts fragments, and generates every pairwise combination as a pseudo paired-end read:

Read with 4 fragments: [A]-[B]-[C]-[D]
Pairs: A-B, A-C, A-D, B-C, B-D, C-D  (6 pairs)

Citation

Coming soon.

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

cifi-0.2.1.tar.gz (2.1 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cifi-0.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

cifi-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

cifi-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

cifi-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

Details for the file cifi-0.2.1.tar.gz.

File metadata

  • Download URL: cifi-0.2.1.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cifi-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1a54399b72a0108ff7a5a891d9014d99fa6eec350240e0073b4e568194947627
MD5 90391e4ad8c6b752f00d5c0d50cc0861
BLAKE2b-256 3dce14df9b58deb2fc6170cb2a0f90b92bc5c7832039351fcd3e4a5b96ad698b

See more details on using hashes here.

Provenance

The following attestation bundles were made for cifi-0.2.1.tar.gz:

Publisher: release.yml on mr-eyes/cifi-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cifi-0.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cifi-0.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fbb10892876963585835f452bdb1858bda599b31641d3e1877fa67923e44bc83
MD5 76a616c089798e3e4249780fd6574817
BLAKE2b-256 914efd4d664858974e395d7bd7e18f5477adeeee37bfd506d942634289252fef

See more details on using hashes here.

Provenance

The following attestation bundles were made for cifi-0.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on mr-eyes/cifi-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cifi-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cifi-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9a16e7bb1bc9d6c4b72f604ebb10604810513189b66d38baab6cf7135d9083e5
MD5 441259b89b0e759a14c6d87166a74df6
BLAKE2b-256 be2e2f25937f1d95a6b5f1d607a28af1ad4c09c9379ecf2e1f424feed1a503fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for cifi-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on mr-eyes/cifi-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cifi-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cifi-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eddc6b284f9860e98cea96b9232b9df886af1e2e630bba7f794c03cd396fd7f0
MD5 d4214de80a8bec9e719fb322ec89406d
BLAKE2b-256 5a435633364a6ec3e555f3965dc94e43a736716ad3942323afa12f9e480f815a

See more details on using hashes here.

Provenance

The following attestation bundles were made for cifi-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on mr-eyes/cifi-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cifi-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cifi-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b8523dcb837cb1528eeb415934bde2c42cc40f2d9c8a63d2fc781aeb8161ae54
MD5 39b29d53453d770fd92c629e10bd6f19
BLAKE2b-256 e68eda87fd6d9e3b33ebe55c3195eae314c909035bfac73ab9c3778ee6263487

See more details on using hashes here.

Provenance

The following attestation bundles were made for cifi-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on mr-eyes/cifi-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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