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.0.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.0-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.0-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.0-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.0-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.0.tar.gz.

File metadata

  • Download URL: cifi-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 b4b0bb594c04b979920fc0750530aef6427f362e60797e23246b8239a203b20a
MD5 2ddf7658b62e08855f351d4dbda774cd
BLAKE2b-256 c55774ba3aef6c65fb8e3fefc0143898d015f862661418ca2357b19991d8c559

See more details on using hashes here.

Provenance

The following attestation bundles were made for cifi-0.2.0.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.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cifi-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0519e94ba3a5694998c4078c93d6fa23880e2b8eabe9ce4b4f26c56788216b6c
MD5 7e8bf6f1972efa1f3d28e9b9220e883e
BLAKE2b-256 a362bd544799071db818653709e8449dcc383390c32fce44287744099a9d1993

See more details on using hashes here.

Provenance

The following attestation bundles were made for cifi-0.2.0-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.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cifi-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fd9444b2fee283eca8d2b713f70dbf717e2aea8ab9b6ac3c88f34900972db7a4
MD5 181c09d27ead9d161e2e9aea87905386
BLAKE2b-256 4c52f8e39bdee81318d374536688946ade845905b136a78ef2076989ec9ec521

See more details on using hashes here.

Provenance

The following attestation bundles were made for cifi-0.2.0-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.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cifi-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 440f712dda42219ce2ee5bd3a53969ca9a2f53202f46be15d4534ba99fae1c09
MD5 711d3f8531aebb1a41bf01138d61f552
BLAKE2b-256 264c2f69fa3b8f4f71c1b42f729a8319d1f5ba62ed3232fccd719c6408b2dd6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for cifi-0.2.0-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.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cifi-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d3d4c4d4c754ed47374f4c3a75e676841642914e3d7f2e45f139bfb90e19748d
MD5 a31ad35cadfc1a246a91ec358a3655a7
BLAKE2b-256 aff5f7f0f347b802fc1a09321bd7d894d09af51cc29ea4b4da82b57cc29a63e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for cifi-0.2.0-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