{ "info": { "author": "Dohoon Lee", "author_email": "dohlee.bioinfo@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Utilities" ], "description": "

\n

Methylation Pattern-based, Reference-free Inference of Subclonal Makeup. (v1.0.1)

\n

\n \n \n \n

\n\n\n

Prerequisites

\n\n- **BAM file of RRBS reads, aligned by Bismark.**\n\nPRISM requires the mapping result of [Bismark](https://www.bioinformatics.babraham.ac.uk/projects/bismark/), a bisulfite read mapping tool. Also note that PRISM only applies to RRBS data, and unfortunately, the feasibility of PRISM to the data from other methylation profiling techniques such as whole genome bisulfite sequencing (WGBS), methylated DNA immunoprecipitation sequencing (MeDIP-Seq), or methyl-CpG binding domain-based capture sequencing (MBDCap-Seq) has not been verified.\n\n

Installation

\n\nPRISM can be installed via PyPI.\n\n```bash\npip install subclone-prism\n```\n\n

Documentation

\n\nSimple quick-start usage can be found below. If your are interested, please refer to the [full documentation](https://subclone-prism.readthedocs.io/en/latest/).\n\n

Usage

\n\n![](images/workflow.png)\n\nThe PRISM analysis is done in three steps: `extract` - `preprocess` - `deconvolute`.\n\n## Quickstart\n\n```bash\n# Extract epiloci from BAM file.\nprism extract -i sample.bam -o sample.met\n\n# Preprocess epiloci to get finer estimates of epigenetic subclones\n# and to increase the number of fingerprint epiloci.\nprism preprocess -i sample.met -o sample.corrected.met\n\n# Infer the subclonal composition of the sample.\n# 1-sample deconvolution.\nprism deconvolute -i sample.corrected.met -o sample.prism.result\n# 2-sample deconvolution.\nprism deconvolute -i sample1.corrected.met sample2.corrected.met -o sample.prism.result\n\n# Scatterplot for visualization of the result.\nprism scatter -i sample.prism.result -o sample.png\n\n# Annotation of fingerprint epiloci for functional characterization of\n# discovered epigenetic subclones.\nprism annotate -i sample.prism.result -o sample.prism.annotated.result \\\n--beds annotation_a.bed annotation_b.bed \\\n--annotation-names ANNOTATION-A ANNOTATION-B\n```\n\n## extract\n\n`prism extract` command extracts viable epiloci from a BAM file.\nIn other words, it extracts genomic regions harboring a sufficient number of mapped reads (>= d) with a sufficient number of CpGs (>= c).\nA resulting file with those epiloci information is generated, whose file extension will be `.met` afterwards.\nTo extract epiloci with default settings (d = 20, c = 4), simply run the command below:\n\n```bash\nprism extract -i sample.bam -o sample.met\n```\n\nIf you want to specify your own cutoffs for the required sequencing depth and the number of CpGs, say, d = 15 and c = 3, run as follows:\n\n```bash\nprism extract -i sample.bam -o sample.met -d 15 -c 3\n```\n\nNote that depending on the reference genome used, you may have to specify `-u/--prepend-chr` option.\nAlso, you should use `-x/--paired` option to inform PRISM that you are using paired-end sequencing data.\nFor a more detailed description about all options, run `prism extract -h`.\n\n## preprocess\n\n`prism preprocess` command corrects for the errors in methylation patterns in order to amplify the number of *fingerprint epiloci* and calibrate for the subclone size estimates.\n\n```bash\nprism preprocess -i sample.met -o sample.corrected.met\n```\n\nYou may benefit from multithreading with `-t/--threads` option.\n\n```bash\nprism preprocess -i sample.met -o sample.corrected.met -t 30\n```\n\nThis step is resource intensive, so by default PRISM tries to pre-filters the epilocus that is not likely to be a fingerprint epilocus.\nThis pre-filtering of course can be turned off by `-f/--no-prefilter` option and this indeed gives a better estimates of subclones.\nHowever, please be warned, depending on your data size, this step will last long.\nTo help you deciding whether or not to apply prefiltering, with 30 threads (`-t 30`) ~200M met file took about 5 hours to be preprocessed without prefiltering.\n\n```bash\nprism preprocess -i sample.met -o sample.corrected.met --no-prefilter -t 30\n```\n\nFor a more detailed description about all options, run `prism preprocess -h`.\n\n## deconvolute\n\n`prism deconvolute` command infers the subclonal composition of the sample. Simply give methylation pattern-corrected epiloci file.\n\n```bash\nprism deconvolute -i sample.corrected.met -o sample.prism.result\n```\n\nAnother feature of PRISM is that it can utilize two or more samples from a single tumor at the same time, and jointly infer subclonal composition. To provoke joint-analysis, specify a list of `corrected.met` files.\n\n```bash\nprism deconvolute -i sample1.corrected.met sample2.corrected.met -o sample.prism.result\n```\n\nFor a more detailed description about all options, run `prism deconvolute -h`.\n\n\n## scatter\n\n`prism scatter` command generates a scatterplot of the PRISM analysis result. \nYou need a result of `prism deconvolute`.\nThe dimension of anlaysis (i.e., the number of samples you gave to `prism deconvolute` command) should not be more than three to visualize it.\nNote that the file extension of output file should be a general one for image files such as png, jpg, or pdf.\n\n```bash\nprism scatter -i sample.prism.result -o sample.png\n```\n\n

\n\n## annotate\n\n`prism annotate` command does functional annotation of the PRISM analysis result.\nIt requires collections of genomic intervals as BED files. Give one or more BED file to `prism annotate`, with representative annotation term for each BED file.\nBasically it generates annotated result, with an additional column having comma-separated terms that the epiloci is annotated to.\n\n```bash\nprism annotate -i sample.prism.result -o sample.prism.annotated.result --beds annotation_a.bed annotation_b.bed --annotation-names ANNOTATION-A ANNOTATION-B\n```\n\nTo extract epiloci with specific annotation term, use the command below.\n\n```bash\ncat sample.prism.annotated.result | grep 'ANNOTATION-A'\n```\n\nAlso, scatterplots with annotation can be generated with `--figure` option.\n\n```bash\nprism annotate -i sample.prism.reslt -o sample.prism.annotated.result --beds annotation_a.bed annotation_b.bed --annotation-names ANNOTATION-A ANNOTATION-B --figure sample.prism.annotated.png\n```\n\n

", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dohlee/prism", "keywords": "", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "subclone-prism", "package_url": "https://pypi.org/project/subclone-prism/", "platform": "", "project_url": "https://pypi.org/project/subclone-prism/", "project_urls": { "Homepage": "https://github.com/dohlee/prism" }, "release_url": "https://pypi.org/project/subclone-prism/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "Methylation Pattern-based, Reference-free Inference of Subclonal Makeup", "version": "1.0.1" }, "last_serial": 5280716, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a5789a787d085b3864736830596fc528", "sha256": "660548f43abcadb97a902976f6da00eede14c7e0b98eebd65e965362165f7f8b" }, "downloads": -1, "filename": "subclone-prism-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a5789a787d085b3864736830596fc528", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1769453, "upload_time": "2019-01-26T17:41:02", "url": "https://files.pythonhosted.org/packages/b0/c0/6c0becb776fc45c60329e76a7d377ee061bc08c38f36d3666a68abd23836/subclone-prism-0.1.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "3ddae6fb844190279afc54116520c7b2", "sha256": "afd37562811c3c3450efd110f1237bba9e15510b4c75e5a24c1f22caf9598c34" }, "downloads": -1, "filename": "subclone-prism-1.0.0.tar.gz", "has_sig": false, "md5_digest": "3ddae6fb844190279afc54116520c7b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 668388, "upload_time": "2019-05-17T06:09:26", "url": "https://files.pythonhosted.org/packages/32/66/20349b5b9f34869012e075ee919a952b539181c12ebd3a69522ce6e52269/subclone-prism-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "7b83db9df78e1be3c691f9ed9011dd7e", "sha256": "f2710091069d568a029afa74b189154edbcd7bc2701358448e7e5e867da0b7ce" }, "downloads": -1, "filename": "subclone-prism-1.0.1.tar.gz", "has_sig": false, "md5_digest": "7b83db9df78e1be3c691f9ed9011dd7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 668388, "upload_time": "2019-05-17T06:15:18", "url": "https://files.pythonhosted.org/packages/bd/b8/ea790f55517d6cf99b81503a10a48a80ed3ed3293ca7832b1d34b7dd50db/subclone-prism-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7b83db9df78e1be3c691f9ed9011dd7e", "sha256": "f2710091069d568a029afa74b189154edbcd7bc2701358448e7e5e867da0b7ce" }, "downloads": -1, "filename": "subclone-prism-1.0.1.tar.gz", "has_sig": false, "md5_digest": "7b83db9df78e1be3c691f9ed9011dd7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 668388, "upload_time": "2019-05-17T06:15:18", "url": "https://files.pythonhosted.org/packages/bd/b8/ea790f55517d6cf99b81503a10a48a80ed3ed3293ca7832b1d34b7dd50db/subclone-prism-1.0.1.tar.gz" } ] }