Python package for fragment manipulation for cfDNA
Project description
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
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
This will output a .png plot and seg file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cfdna-1.0.1.tar.gz
(2.2 MB
view hashes)