Skip to main content

Cell-free DNA analysis toolkit

Build Status PyPI version

This is a Python package for easy and efficient cell-free DNA analysis.

All citations should reference to original paper.

Install

If you dont already have numpy and scipy installed, it is best to download Anaconda, a python distribution that has them included.

    https://continuum.io/downloads

Create environment and pip install:

    conda create -n cfdna python=3.11.3
    conda activate cfdna
    pip install cfdna

Dependencies can be installed by:

    pip install -r requirements.txt

PyPI install, presuming you have all its requirements installed:

    pip install cfdna

Usage

import cfdna as cf
import numpy as np

# Create data
cfdata = cf.cfDNA()
frags = cf.io.readBAM("test.bam")

# Call CNVs
cf.proc.call_cnv_pipline(cfdata, frags)

# Plot CNVs
cf.pl.plot_cnv(cfdata, "test.bam")

Run from the commadline:

    python -m cfdna callCNVs --bam test.bam --segs --genome hg19 --bin_size 100000

This will output a .png plot and seg file.

Metadata

Release files for cfdna 2.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cfdna 2.6.1
File Size Uploaded
cfdna-2.6.1.tar.gz 61.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cfdna 2.6.1
File Interpreter ABI Platform
cfdna-2.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 133.0 kB

Release files / cfdna-2.6.1.tar.gz

Download URL cfdna-2.6.1.tar.gz
Size 61.2 kB
Tags Source
SHA-256 checksum
How to use checksums
35914642b79c251fe213680ff2672beafe278d237be3c9c7cd7c0d75a8339332
BLAKE2b-256 checksum
How to use checksums
d60e5101dad3fce3b8ad8c632ac8c836cc41a2987681e3352ed68876ab14c760
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.9 Darwin/25.6.0

Release files / cfdna-2.6.1-py3-none-any.whl

Download URL cfdna-2.6.1-py3-none-any.whl
Size 71.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb9ed8682644c22446beede06bcd8d5ce6438b2e686d6f716c38abbd522ad100
BLAKE2b-256 checksum
How to use checksums
37e72af20b43eafa1952e0e3c932f77d27a700bd4c4fc72f24added177442bf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.9 Darwin/25.6.0

Release history Release notifications | RSS feed

This release

2.6.1 This release

2 release files

2.5.2

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.6

2 release files

2.4.0

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.1.4

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.8

2 release files

2.0.7

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page