{ "info": { "author": "Sean Davis", "author_email": "sdavis2@mail.nih.gov", "bugtrack_url": null, "classifiers": [ "Topic :: Scientific/Engineering :: Bio-Informatics" ], "description": "Overview\n============\nNext-generation sequencing of tumor/normal pairs provides a good opportunity to examine large-scale copy number variation in the tumor relative to the normal sample. In practice, this concept seems to extend even to exome-capture sequencing of pairs of tumor and normal. This library consists of a single script, ngCGH, that computes a pseudo-CGH using simple coverage counting on the tumor relative to the normal.\n\nI have chosen to use a fixed number of reads in the normal sample as the \"windowing\" approach. This has the advantage of producing copy number estimates that should have similar variance at each location. The algorithm will adaptively deal with inhomogeneities across the genome such as those associated with exome-capture technologies (to the extent that the capture was similar in both tumor and normal). The disadvantage is that the pseudo-probes will be at different locations for every \"normal control\" sample. \n \n\nInstallation\n=============\nThere are several possible ways to install ngCGH. \n\ngithub\n-------\nIf you are a git user, then simply cloning the repository will get you the latest code.\n\n::\n\n git clone git://github.com/seandavi/ngCGH.git\n\nAlternatively, click the `Download `_ button and get the tarball or zip file.\n\nIn either case, change into the resulting directory and::\n\n cd ngCGH\n python setup.py install\n\nFrom PyPi\n-------------------\nIf you have easy_install in place, this should suffice for installation:\n\n::\n\n easy_install ngCGH\n\n\n\n\nUsage\n=====\nUsage is very simple:\n\n::\n\n usage: ngCGH [-h] [-w WINDOWSIZE] [-o OUTFILE] [-l LOGLEVEL] [-r REGIONS]\n\t\t [-t PROCESSES]\n\t\t normalbam tumorbam\n\n positional arguments:\n normalbam The name of the bamfile for the normal comparison\n tumorbam The name of the tumor sample bamfile\n\n optional arguments:\n -h, --help show this help message and exit\n -w WINDOWSIZE, --windowsize WINDOWSIZE\n\t\t\t The number of reads captured from the normal sample\n\t\t\t for calculation of copy number (default: 1000)\n -o OUTFILE, --outfile OUTFILE\n\t\t\t Output filename, default (default: None)\n -l LOGLEVEL, --loglevel LOGLEVEL\n\t\t\t Logging Level, 1-30 with 1 being maximal logging and\n\t\t\t 30 being errors only [20] (default: 20)\n -r REGIONS, --regions REGIONS\n\t\t\t regions to which analysis should be restricted, either\n\t\t\t a bed file name or a single region in format chrN:XXX-\n\t\t\t YYY (default: None)\n -t PROCESSES, --threads PROCESSES\n\t\t\t parallelize over regions (or chromosomes) (default: 1)\n\n\nOutput\n======\nThe output format is also very simple:\n\n::\n\n chr1 4851 52735 1000 854 -0.025120\n chr1 52736 59251 1000 812 -0.097876\n chr1 59251 119119 1000 876 0.011575\n chr1 119120 707038 1000 1087 0.322924\n chr1 707040 711128 1000 1016 0.225472\n chr1 711128 711375 1000 1059 0.285275\n chr1 711375 735366 1000 919 0.080709\n chr1 735368 798455 1000 972 0.161600\n\nColumns 1-3 describe the chromosome, start, and end for each pseudo-probe. The fourth column is the number of reads in the normal sample in the window while the fifth column represents the reads *in the same genomic window* from the tumor. The last column contains the median-centered log2 ratio between tumor and normal.\n\n\nConvert from ngCGH to BioDiscovery Nexus\n----------------------------------------\nIncluded in the release is a script, convert2nexus, that takes as input the filename of a file created by ngCGH and converts it into a file that the Nexus CGH software from BioDiscovery can load for further analysis. The format looks like this:\n\n::\n\n Name Chromosome Start End PALZGU.cgh\n chr1_10004 chr1 10004 15735 -2.087921\n chr1_15736 chr1 15736 69385 -2.670936\n chr1_69386 chr1 69386 521687 -0.428244\n chr1_523537 chr1 523537 726959 0.080269\n chr1_726959 chr1 726959 808542 0.223047\n chr1_808546 chr1 808546 809138 -1.186761\n\nI presented a webinar on using ngCGH with `BioDiscovery Nexus `_ that you can `view here `_.\n\n.. note::\n\n The file format generated above can be loaded into Biodiscovery Nexus using the \"Multi1\" data type.\n\n\nConvert from Complete Genomics to BioDiscovery Nexus\n----------------------------------------------------\nThere is now plenty of Complete Genomics data floating around. We are often interested in visualizing the somatic CNV data in Biodiscovery nexus. There is a script, cgi2nexus that takes a file typically named as \"SomaticCnvDetailsDiploidBeta*\" and converts to the file format noted above. Bzip2 (typical from CGI) are uncompressed on-the-fly.\n\nSegmenting output\n-------------------------\nThe cgh2seg script uses some sane defaults (at least for exomes) to the Circular Binary Segmentation algorithm as implemented in the DNAcopy Bioconductor package. The segmented results are centered around the mode of the density of the segmented values on a per-probe basis. The script will write the \"Centrality parameter\" to stderr when it completes.\n\nThe file format is:\n\n:: \n\n ID chrom loc.start loc.end num.mark seg.mean\n 09 chr1 367695 82438842 2279 0.546541374526925\n 09 chr1 82778033 93082545 206 0.077841374526925\n 09 chr1 93205647 103965955 188 -0.913458625473075\n 09 chr1 104000621 104166584 4 -0.216558625473075\n 09 chr1 104342470 110014374 109 -0.948958625473075\n 09 chr1 110024223 110058480 4 -1.38295862547308\n\n\nMethods\n============\nThe pseudo-cgh algorithm employed by ngCGH takes as input two appropriately matched BAM files, typically from a tumor and a matched normal. Genomic windows are defined by reading blocks of a fixed number of reads (default 1000 reads) in the normal sample. Within each defined genomic window, the number of reads in the tumor is quantified. For each genomic window, a ratio is made between the number of reads in the tumor and the number of reads in the normal. Finally, a log2 transformation is applied to each ratio and the entire vector of the results is then centered by subtracting the median.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/seandavi/ngCGH", "keywords": "", "license": "GPL-2", "maintainer": null, "maintainer_email": null, "name": "ngCGH", "package_url": "https://pypi.org/project/ngCGH/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ngCGH/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/seandavi/ngCGH" }, "release_url": "https://pypi.org/project/ngCGH/0.4.4/", "requires_dist": null, "requires_python": null, "summary": "Pseudo-cgh of next-generation sequencing data", "version": "0.4.4" }, "last_serial": 947847, "releases": { "0.1.1dev": [], "0.1.2dev": [ { "comment_text": "", "digests": { "md5": "ab82012df0cd50eb458cd37daf438c73", "sha256": "cf252ddf2b2b432653ab6d4040ccaffc3047a8b6e5469c83cd9d52b062cb3319" }, "downloads": -1, "filename": "ngCGH-0.1.2dev.tar.gz", "has_sig": false, "md5_digest": "ab82012df0cd50eb458cd37daf438c73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3790, "upload_time": "2011-04-08T14:36:22", "url": "https://files.pythonhosted.org/packages/f3/e2/ef0316edb6d693e79e5718a8c332c28d089fe1f46aac47ceef3a6a5e6e3c/ngCGH-0.1.2dev.tar.gz" } ], "0.1.3dev": [ { "comment_text": "", "digests": { "md5": "82258970fbc4e406754d4bbaaa03a027", "sha256": "9797ce08a3dcc8fd42a6213504eb6b7dc7b6a7c050cd0bf83657fb7ef1aa937a" }, "downloads": -1, "filename": "ngCGH-0.1.3dev.tar.gz", "has_sig": false, "md5_digest": "82258970fbc4e406754d4bbaaa03a027", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4421, "upload_time": "2011-04-22T10:17:47", "url": "https://files.pythonhosted.org/packages/fe/50/94f074d0425873776e6fff8c2cb4fdc4515d82f7eb5a28b02d5d633e77d0/ngCGH-0.1.3dev.tar.gz" } ], "0.1.4dev": [ { "comment_text": "", "digests": { "md5": "0a269891207ee09fc440f4a5fa7e257b", "sha256": "c645560b751fdec7d1a975a9b7a213e54a7cac7a9d1251d50132a5cd9a995d6d" }, "downloads": -1, "filename": "ngCGH-0.1.4dev.tar.gz", "has_sig": false, "md5_digest": "0a269891207ee09fc440f4a5fa7e257b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5701, "upload_time": "2011-04-22T16:07:01", "url": "https://files.pythonhosted.org/packages/c1/89/df053fa4e3bc6cd8676641987ff970ac42482caf7d17f68dc079a052eb3d/ngCGH-0.1.4dev.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "ea4b9f9e21e43bf1b7b92ddbb821268a", "sha256": "e68334b2f7ed9b5ae43bd330edee15465c59a0d5bdc02de321fae8995aaf0eb4" }, "downloads": -1, "filename": "ngCGH-0.1.5.tar.gz", "has_sig": false, "md5_digest": "ea4b9f9e21e43bf1b7b92ddbb821268a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5684, "upload_time": "2011-08-31T20:28:30", "url": "https://files.pythonhosted.org/packages/20/10/8029ac57db2446a1fa9a1cdecf70a6e20ab6caba4068544b12f59e95d4c4/ngCGH-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "df2ea395ccf92a6d0f8834b9eb9b6963", "sha256": "5efb78f3e9f6e5131c116dd9465e1455b262932b8c1564036e71aa1a49ef63b4" }, "downloads": -1, "filename": "ngCGH-0.1.6.tar.gz", "has_sig": false, "md5_digest": "df2ea395ccf92a6d0f8834b9eb9b6963", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6166, "upload_time": "2011-09-02T15:16:06", "url": "https://files.pythonhosted.org/packages/5c/9f/eece93f1e6b700d1cc125afd60d2efdbebc23f57538e08215ed6dfa71998/ngCGH-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "04acfb934040c7e4170762d05bc97134", "sha256": "15a01946f4803818e276e4fc22161b42a0c80abf6a707085cc484747c48ec7cd" }, "downloads": -1, "filename": "ngCGH-0.1.7.tar.gz", "has_sig": false, "md5_digest": "04acfb934040c7e4170762d05bc97134", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6170, "upload_time": "2011-09-02T18:29:21", "url": "https://files.pythonhosted.org/packages/67/16/43bf7cb16a03e43ae47643fe6ee49c2e77909e2667143dcb36869f53c9d1/ngCGH-0.1.7.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "6c44e31958d01e4ccd65abb2dbd6789f", "sha256": "602c7374b29957a94eb39a973052e4b5de61b44ede424feb57d29dc28b4a5c92" }, "downloads": -1, "filename": "ngCGH-0.2.0.tar.gz", "has_sig": false, "md5_digest": "6c44e31958d01e4ccd65abb2dbd6789f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6365, "upload_time": "2012-05-08T23:22:11", "url": "https://files.pythonhosted.org/packages/a5/90/6006ac76e060ba9e555085d49149f3b0fd0d4a22b351692e81ce3e1244ee/ngCGH-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "269ac67a066ca68e119e650d7892160d", "sha256": "97458b85f34c2b5552b357b4d34a94b5cebd5f9f1590e1e6e23a4e6fe25003e2" }, "downloads": -1, "filename": "ngCGH-0.3.0.tar.gz", "has_sig": false, "md5_digest": "269ac67a066ca68e119e650d7892160d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6989, "upload_time": "2012-08-20T18:01:08", "url": "https://files.pythonhosted.org/packages/f6/ba/db8d6169a0977ada647cafc6abb7f6daa6454676dd1f912cf34da2f37b5b/ngCGH-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "b156e1025a9f4bf8c869efa0b2e46dfe", "sha256": "18d3780940b598e0f1c999fc2a30efa809ef67cd76eb657f8419c0ff56b8a457" }, "downloads": -1, "filename": "ngCGH-0.3.1.tar.gz", "has_sig": false, "md5_digest": "b156e1025a9f4bf8c869efa0b2e46dfe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6567, "upload_time": "2012-12-17T19:40:20", "url": "https://files.pythonhosted.org/packages/61/57/ba0a27f3dc98b5e367f1e79b187d41dab78bac96e9106f2b6e4d557c867e/ngCGH-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "44b4567203ac8e7cbffae7df3222405d", "sha256": "053680c21666caaed70c529403164b3aeec1a8e2dad50182dfb478e28fd0f324" }, "downloads": -1, "filename": "ngCGH-0.4.0.tar.gz", "has_sig": false, "md5_digest": "44b4567203ac8e7cbffae7df3222405d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7608, "upload_time": "2013-06-12T19:16:59", "url": "https://files.pythonhosted.org/packages/8c/48/cef346036522d74ce8c706f3b19150fdd6bdc03d04d08133ab1c208973fc/ngCGH-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "8896f9fbfbe51824a057f2cbbda73be4", "sha256": "ea830135afee0d4fa28edffa1ab8894b65cf1ab5176b288139f8ae9e334e88ea" }, "downloads": -1, "filename": "ngCGH-0.4.1.tar.gz", "has_sig": false, "md5_digest": "8896f9fbfbe51824a057f2cbbda73be4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7391, "upload_time": "2013-09-17T10:46:18", "url": "https://files.pythonhosted.org/packages/62/5b/bebf638ffd6186a3136ad0b3fee72ee3b5de5be41dad68f373dc2d9c3395/ngCGH-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "01394c2340e8e9077caf848afe9c50ed", "sha256": "119e3a56759bd8e790c30d3aee48c15fed22c2616cae8f5eb2442b7f0ef9ea0f" }, "downloads": -1, "filename": "ngCGH-0.4.2.tar.gz", "has_sig": false, "md5_digest": "01394c2340e8e9077caf848afe9c50ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7252, "upload_time": "2013-09-17T12:00:01", "url": "https://files.pythonhosted.org/packages/ea/ab/b3fcd221570411453f55b398a8a34db2a1a78ace2796502fff6266108909/ngCGH-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "740933c45636332aac38048a53b9bb0c", "sha256": "ec7df636dc47a48c7d955b278d4493625d23234ce13242a2be7d23d8a1c0c5fe" }, "downloads": -1, "filename": "ngCGH-0.4.3.tar.gz", "has_sig": false, "md5_digest": "740933c45636332aac38048a53b9bb0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7196, "upload_time": "2013-12-16T20:56:27", "url": "https://files.pythonhosted.org/packages/da/06/6d913cf521f84eff0d2b2c9b3df4424a9686514410d4704721fa6d1b8088/ngCGH-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "fad2de2cb68991b75e0e04a7906981da", "sha256": "c70dc6ce02909eca974329c942a8c1a9326f0d12a6cf6e2e7eebcdb578a068e7" }, "downloads": -1, "filename": "ngCGH-0.4.4.tar.gz", "has_sig": false, "md5_digest": "fad2de2cb68991b75e0e04a7906981da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7186, "upload_time": "2013-12-18T14:42:15", "url": "https://files.pythonhosted.org/packages/a5/4d/ad321b8149233d58c2386d45a05d1baa01ed519c469d8e6f239343f215d8/ngCGH-0.4.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fad2de2cb68991b75e0e04a7906981da", "sha256": "c70dc6ce02909eca974329c942a8c1a9326f0d12a6cf6e2e7eebcdb578a068e7" }, "downloads": -1, "filename": "ngCGH-0.4.4.tar.gz", "has_sig": false, "md5_digest": "fad2de2cb68991b75e0e04a7906981da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7186, "upload_time": "2013-12-18T14:42:15", "url": "https://files.pythonhosted.org/packages/a5/4d/ad321b8149233d58c2386d45a05d1baa01ed519c469d8e6f239343f215d8/ngCGH-0.4.4.tar.gz" } ] }