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

File metadata

  • Download URL: cifi-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d65fbf63e8dea6db76ea0939ed414ff0512f65f7be74d2208d708ba8c768ea2b
MD5 72b5e902fc5fe173180f53db7fcaaaf5
BLAKE2b-256 869bcc4018d6afe182732e90f4bf19340d1a6f7dd13c7b8424c8b8e2daa4a1ef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cifi-0.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fe2210669e6b90dd95fc51dd14933f03b4da01883d4c4c2c4cd5ae61722f23c1
MD5 6551ff3f306fe65c13220a611b14b059
BLAKE2b-256 cbc2225ff6109f60ce94b8b307414030ce63e03673f4c74677bebc5c3829b801

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cifi-0.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bfafe7afef006f623676d1766c68bfa8ace4e8eeab1e92e8e72a4e106fc500b0
MD5 691abcd30ac71291fd711de32c772566
BLAKE2b-256 ee39b99dd2d2c678a278b29b763769c75fbf8f83eb3a9f84df2158904d8972ea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cifi-0.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d3ec20801d5ba3cc33e650e839a149a07044c445b892945ba18c46d6b7caab4f
MD5 28ddf1fa1237fa828ae0a01c9c1c1bf5
BLAKE2b-256 b8830cd1a8ce9338c7a9236e73d44aad337904cb7da7978a8120a8f648b951aa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cifi-0.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3fb1f0548db17441036a8bfdc6fe6fb21e0c08d89bd304c8ab0ce49ca8744103
MD5 a81d6ec10b98a3d8a1ee693894e1d21b
BLAKE2b-256 94e2d17df4c12a2da6c5bcd404fc31747d3e408e866760d151d14a64117b67e2

See more details on using hashes here.

Provenance

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