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

File metadata

  • Download URL: cifi-0.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 a67d2eb74cfa310f7c0d52289151a2379f9b3a02212c5715a97058a1ced0235f
MD5 d933e352a4c88afa125c531f297f675d
BLAKE2b-256 adb9bda6ada9085cf79f3b4e5a9f7b298786bfe80c2915b7475f40d38cd34bfd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cifi-0.2.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 81f6d130383d2a6881a010aedb712436f03bd1ff26bac60887f4d4891522e871
MD5 383a7314355e608acae44515f9ba206e
BLAKE2b-256 8ab32f0cbf2e55b07c93f63bc6a34079897b13cb6fe40cdb209ece1a48bf54a2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cifi-0.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b41a02a9cdef9ce60adbf0c2bf893b76cb63a1467ee2c6c4bf0c45e1789a1d0d
MD5 4b4c0ce4642985cbb6dbdbdd27f6e15e
BLAKE2b-256 8412b0f3efd8b104a5262296f028658fee5be229f9b3f03700f7555e19a4b8b8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cifi-0.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bfc1b599c0a1595844acbc35fea1b2e4bc4d440a6ed2cd9075ec915914d4da29
MD5 b7070e908c1ab2e947a11eacf1cf7c69
BLAKE2b-256 cd80c2bfc3eb59ad8f4ecd6feda65d13fa0ff5dc8f33c2e1c4ab362cc5dcee09

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cifi-0.2.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 79ace9163832194333c10c531371a0f9a3aef5f9d9d3eb349d3cd79053560eda
MD5 f2e42385c6cfe711ac0c0ef5fd18e9c2
BLAKE2b-256 be274e5b227132319f661d29e3fb38f0449e7a2bed74275c4b7b199252c26803

See more details on using hashes here.

Provenance

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