# 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/ed/d3/0d96f42377aa5edd0aa0b750593414d9a0fa913f9bd6d16aa0901d34972b/cfdna-2.3.1.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.3.1",
"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": "41a4b86e30b7cb72c783a217b4ecdc0827e022c3bc47917d92b92ce467845e8b",
"md5": "b2df00c5b9712ced4830f024b4407422",
"sha256": "f48b14830848ac4e89ee2a798467e2aceb52a7b83a8564a0d51b39fb9a57abf3"
},
"downloads": -1,
"filename": "cfdna-2.3.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b2df00c5b9712ced4830f024b4407422",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 41211,
"upload_time": "2024-11-21T02:58:52",
"upload_time_iso_8601": "2024-11-21T02:58:52.778366Z",
"url": "https://files.pythonhosted.org/packages/41/a4/b86e30b7cb72c783a217b4ecdc0827e022c3bc47917d92b92ce467845e8b/cfdna-2.3.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "edd30d96f42377aa5edd0aa0b750593414d9a0fa913f9bd6d16aa0901d34972b",
"md5": "6d900e2e97e59fe1de211d89f73ec8e3",
"sha256": "f84b7a5f3c7a51cb4f5dc0e3cb8e991d41b204fd71653ae91df13cb123da1bcb"
},
"downloads": -1,
"filename": "cfdna-2.3.1.tar.gz",
"has_sig": false,
"md5_digest": "6d900e2e97e59fe1de211d89f73ec8e3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 31506,
"upload_time": "2024-11-21T02:58:54",
"upload_time_iso_8601": "2024-11-21T02:58:54.539414Z",
"url": "https://files.pythonhosted.org/packages/ed/d3/0d96f42377aa5edd0aa0b750593414d9a0fa913f9bd6d16aa0901d34972b/cfdna-2.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-21 02:58:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "kylessmith",
"github_project": "cfdna",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "cfdna"
}