# Cell-free DNA analysis toolkit
[![Build Status](https://travis-ci.org/kylessmith/cfdna.svg?branch=master)](https://travis-ci.org/kylessmith/cfdna) [![PyPI version](https://badge.fury.io/py/cfdna.svg)](https://badge.fury.io/py/cfdna)
This is a Python package for easy and efficient cell-free
DNA analysis.
All citations should reference to [original paper][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
```python
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.
[paper]: https://www.cell.com/cancer-cell/pdfExtended/S1535-6108(21)00501-8
Raw data
{
"_id": null,
"home_page": "https://github.com/kylessmith/cfdna",
"name": "cfdna",
"maintainer": "Kyle S. Smith",
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": "kyle.smith@stjude.org",
"keywords": "cython, interval, cfdna, c",
"author": "Kyle S. Smith",
"author_email": "kyle.smith@stjude.org",
"download_url": "https://files.pythonhosted.org/packages/c5/58/38fe28dd646786de798d39e285da65e2005e3ea529d8323b8d6a67f53601/cfdna-2.0.7.tar.gz",
"platform": null,
"description": "# Cell-free DNA analysis toolkit\n\n[![Build Status](https://travis-ci.org/kylessmith/cfdna.svg?branch=master)](https://travis-ci.org/kylessmith/cfdna) [![PyPI version](https://badge.fury.io/py/cfdna.svg)](https://badge.fury.io/py/cfdna)\n\nThis is a Python package for easy and efficient cell-free\nDNA analysis.\n\nAll citations should reference to [original paper][paper].\n\n\n## Install\n\nIf you dont already have numpy and scipy installed, it is best to download\n`Anaconda`, a python distribution that has them included. \n```\n https://continuum.io/downloads\n```\n\nCreate environment and pip install:\n```\n conda create -n cfdna python=3.11.3\n\tconda activate cfdna\n\tpip install cfdna==2.0.5\n```\n\nDependencies can be installed by:\n\n```\n pip install -r requirements.txt\n```\n\nPyPI install, presuming you have all its requirements installed:\n```\n pip install cfdna\n```\n\n## Usage\n\n```python\nimport cfdna as cf\nimport numpy as np\n\n# Create data\ncfdata = cf.cfDNA()\nfrags = cf.io.readBAM(\"test.bam\")\n\n# Call CNVs\ncf.proc.call_cnv_pipline(cfdata, frags)\n\n# Plot CNVs\ncf.pl.plot_cnv(cfdata, \"test.bam\")\n```\n\nRun from the commadline:\n\n```\n python -m cfdna callCNVs --bam test.bam --segs --genome hg19 --bin_size 100000\n```\n\nThis will output a .png plot and seg file.\n\n[paper]: https://www.cell.com/cancer-cell/pdfExtended/S1535-6108(21)00501-8",
"bugtrack_url": null,
"license": "GPL-2.0-or-later",
"summary": "Python package for fragment manipulation for cfDNA",
"version": "2.0.7",
"project_urls": {
"Documentation": "https://www.biosciencestack.com/static/cfdna/docs/index.html",
"Homepage": "https://github.com/kylessmith/cfdna",
"Repository": "https://github.com/kylessmith/cfdna"
},
"split_keywords": [
"cython",
" interval",
" cfdna",
" c"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a1e59b95d57278c1b9b8486da81a1201216ef1a90eae25964c10029972dd60e0",
"md5": "545ac5f0f24e8140bce22d3e78f28fbe",
"sha256": "86d97fe4f2638651789274c24453a57d94da7773054ff863f1c6ece356245d23"
},
"downloads": -1,
"filename": "cfdna-2.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "545ac5f0f24e8140bce22d3e78f28fbe",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 37666,
"upload_time": "2024-04-16T03:48:36",
"upload_time_iso_8601": "2024-04-16T03:48:36.340539Z",
"url": "https://files.pythonhosted.org/packages/a1/e5/9b95d57278c1b9b8486da81a1201216ef1a90eae25964c10029972dd60e0/cfdna-2.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c55838fe28dd646786de798d39e285da65e2005e3ea529d8323b8d6a67f53601",
"md5": "34f535549245d606adfcb77b51b6cba8",
"sha256": "dffd85e1e83c83fbf9b2f41bc235578eaf79d135416c7d7dde75f0fa9197efcf"
},
"downloads": -1,
"filename": "cfdna-2.0.7.tar.gz",
"has_sig": false,
"md5_digest": "34f535549245d606adfcb77b51b6cba8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 28359,
"upload_time": "2024-04-16T03:48:38",
"upload_time_iso_8601": "2024-04-16T03:48:38.231170Z",
"url": "https://files.pythonhosted.org/packages/c5/58/38fe28dd646786de798d39e285da65e2005e3ea529d8323b8d6a67f53601/cfdna-2.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-16 03:48:38",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "kylessmith",
"github_project": "cfdna",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "numpy",
"specs": [
[
">=",
"1.0.0"
]
]
},
{
"name": "pandas",
"specs": [
[
">=",
"1.0.0"
]
]
},
{
"name": "cython",
"specs": [
[
">=",
"0.29.0"
]
]
},
{
"name": "pytest",
"specs": [
[
">=",
"5.4.0"
]
]
},
{
"name": "ngsfragments",
"specs": [
[
">=",
"1.0.0"
]
]
},
{
"name": "intervalframe",
"specs": [
[
">=",
"1.0.0"
]
]
},
{
"name": "matplotlib",
"specs": []
},
{
"name": "seaborn",
"specs": []
},
{
"name": "bokeh",
"specs": []
}
],
"lcname": "cfdna"
}