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.1.tar.gz
(31.5 kB
view details)
Built Distribution
cfdna-2.3.1-py3-none-any.whl
(41.2 kB
view details)
File details
Details for the file cfdna-2.3.1.tar.gz
.
File metadata
- Download URL: cfdna-2.3.1.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 | f84b7a5f3c7a51cb4f5dc0e3cb8e991d41b204fd71653ae91df13cb123da1bcb |
|
MD5 | 6d900e2e97e59fe1de211d89f73ec8e3 |
|
BLAKE2b-256 | edd30d96f42377aa5edd0aa0b750593414d9a0fa913f9bd6d16aa0901d34972b |
File details
Details for the file cfdna-2.3.1-py3-none-any.whl
.
File metadata
- Download URL: cfdna-2.3.1-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 | f48b14830848ac4e89ee2a798467e2aceb52a7b83a8564a0d51b39fb9a57abf3 |
|
MD5 | b2df00c5b9712ced4830f024b4407422 |
|
BLAKE2b-256 | 41a4b86e30b7cb72c783a217b4ecdc0827e022c3bc47917d92b92ce467845e8b |