Cell-free DNA analysis toolkit
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cfdna-2.6.1.tar.gz | 61.2 kB | Without provenance | Details for cfdna-2.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cfdna-2.6.1-py3-none-any.whl | Python 3 | none | any | Details for cfdna-2.6.1-py3-none-any.whl |
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
|
Security for cfdna 2.6.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.