Skip to main content

Python package for fragment manipulation for cfDNA

Project description

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.

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

cfdna-2.5.2.tar.gz (46.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cfdna-2.5.2-py3-none-any.whl (56.7 kB view details)

Uploaded Python 3

File details

Details for the file cfdna-2.5.2.tar.gz.

File metadata

  • Download URL: cfdna-2.5.2.tar.gz
  • Upload date:
  • Size: 46.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Darwin/25.1.0

File hashes

Hashes for cfdna-2.5.2.tar.gz
Algorithm Hash digest
SHA256 494447f5f77079a68f48b3ed07cfb48bc44cf14c07bb43e528c3caaa3b3230bc
MD5 218ca342ee82718473416a808500acf2
BLAKE2b-256 306586ddfd099bf3dd74c5635426fb23bc5de5c38d4062bb06733defa3be2fc1

See more details on using hashes here.

File details

Details for the file cfdna-2.5.2-py3-none-any.whl.

File metadata

  • Download URL: cfdna-2.5.2-py3-none-any.whl
  • Upload date:
  • Size: 56.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Darwin/25.1.0

File hashes

Hashes for cfdna-2.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 78bcc3ca1d0795d58fa3044f9a4c42968edeafa5f5103d848c14be0e8f0fe02c
MD5 e4c164489333cb6413d6566a383498a7
BLAKE2b-256 c81fa8014d7375957093043105c60f600805ca7a965bbf2f6140910cc5a7541e

See more details on using hashes here.

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