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
Create environment and pip install:
conda create -n cfdna python=3.11.3
conda activate cfdna
pip install cfdna==2.0.5
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
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-2.3.0.tar.gz
(31.5 kB
view details)
Built Distribution
cfdna-2.3.0-py3-none-any.whl
(41.2 kB
view details)
File details
Details for the file cfdna-2.3.0.tar.gz
.
File metadata
- Download URL: cfdna-2.3.0.tar.gz
- Upload date:
- Size: 31.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.3 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92587a0b15d75cc2a149003f3b5303d8eb82d285303ae27aa3ee256370fb483a |
|
MD5 | 0650f7901486603837443c0d2624527c |
|
BLAKE2b-256 | 93359f2d0fa1230d6003377294e9d283286447530a5a9ea82cf8e404fcd101ea |
File details
Details for the file cfdna-2.3.0-py3-none-any.whl
.
File metadata
- Download URL: cfdna-2.3.0-py3-none-any.whl
- Upload date:
- Size: 41.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.3 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df0dbc23b8305a6e66d058508ec6af64d642987d73fcd1dea57bc0bfa997a15b |
|
MD5 | f846bc10daa34879a45e250919a9794a |
|
BLAKE2b-256 | 313ffb56fc1c03664a6eafb8029bcd5d9fed1a129bdd396b76c108c236408223 |