{ "info": { "author": "Michael Imelfort", "author_email": "mike@mikeimelfort.com", "bugtrack_url": null, "classifiers": [], "description": "888888b. 88888888888 \n 888 \"88b 888 \n 888 .88P 888 \n 8888888K. 8888b. 88888b.d88b. 888 888 888 88888b. .d88b. 888d888 \n 888 \"Y88b \"88b 888 \"888 \"88b 888 888 888 888 \"88b d8P Y8b 888P\" \n 888 888 .d888888 888 888 888 888 888 888 888 888 88888888 888 \n 888 d88P 888 888 888 888 888 888 Y88b 888 888 d88P Y8b. 888 \n 8888888P\" \"Y888888 888 888 888 888 \"Y88888 88888P\" \"Y8888 888 \n 888 888 \n Y8b d88P 888 \n \"Y88P\" 888 \n \n\n# Overview\n\nAbility to work out the orientation and insert size of a paired read data file\nCan estimate relative orientation and gap between pairs of contigs in the bam file (Useful for scaffolding) \n\n# Installation\n\nuse pip:\n\n```sh\n$ pip install BamTyper\n```\n# Usage\n##As a library:\n###Get the type of the reads:\n #!/usr/bin/env python\n from bamtyper.utilities import BamParser as BTBP\n BP = BTBP()\n bam_types = BP.getTypes(bamFiles)\n\n Where:\n bamFiles - a list of BAM filenames\n \n Returns:\n bam_types - a dict containing information about the insert size and \n relative orientation of reads in the bam file\n { bam1 : (type, ins, stdev), ... }\n Where:\n type - orientation type:\n 0 : OUT : <--- --->\n 1 : SAME : ---> --->\n 2 : IN : ---> <---\n ins - estimated insert size (of original DNA fragment)\n stdev - standard deviation of insert size \n\n###Get linking pairs:\n #!/usr/bin/env python\n from bamtyper.utilities import BamParser as BTBP\n BP = BTBP()\n (links, ref_lengths, coverages) = BP.getLinks(bamFiles, doCoverage=True)\n \n Where:\n bamFiles - a list of BAM filenames\n \n Returns:\n links - a dict containing information about links between two contigs\n {c1: (c2, num_links, link_type, gap), ... }\n Where:\n num_links - Number of paired reads confirming the link\n link_type - Relative orientation of the two contigs (Start and End)\n SS, SE, ES, EE or ERROR\n gap - Estimated gap between te two contigs\n \n coverages - a dict containing the FRAGMENT coverage of each contig n the bam file(s)\n {c1 : (cov1, cov2, ..., covN), ... }\n \n ref_lengths - a dict containing the lengths of all contigs\n {c1 : len, ... }\n \n Notes:\n bamtyper will automatically work out the orientation and insert size of the \n reads in each bam file and base it's estimations of link_type and gap on this \n\n##On the command line:\n\n bamtyper type - Parse BAM files and determine reads type\n \n $ bamtyper type bamfile.bam\n \n Determining OT for BAM 'bamfile'\n Orientation: IN Insert: 301, Stdev: 29\n \n bamtyper links - Parse BAM files and get linking reads\n\n Usage 1:\n\n $ bamtyper links bamfile.bam \n\n 1.\n contig2 , [ contig1 , 39 , SE , 69 ]\n contig1 , [ contig2 , 39 , ES , 69 ]\n \n implies a layout which looks like:\n \n ---1--> 69bp ---2-->\n\n 2.\n contig3 , [ contig2 , 3 , SS , 58 ]\n contig2 , [ contig3 , 3 , SS , 58 ] , [ contig1 , 4 , EE , 45 ]\n contig1 , [ contig2 , 4 , EE , 45 ]\n\n implies a layout which looks like:\n \n ---1--> 45bp <--2--- 58bp ---3-->\n\n Usage 2: report FRAGMENT coverage too!\n\n $ bamtyper links bamfile1.bam bamfile2.bam -c\n\n contig3 , [ contig2 , 3 , SS , 58 ]\n contig2 , [ contig3 , 3 , SS , 58 ] , [ contig1 , 4 , EE , 45 ]\n contig1 , [ contig2 , 4 , EE , 45 ]\n contig3 0.6206 0.5234\n contig2 0.6558 0.0123\n contig1 0.6523 0.5634\n\n Where:\n contig3 0.6206 0.5234\n \n Reports 0.6206 fragments per base in bamfile1 and 0.5234 in bamfile2\n If these were 100bp reads then this would imply\n coverages of 62x and 52x respectively\n \n# Administration\n\nProject home page, info on the source tree, documentation, issues and how to contribute, see http://github.com/minillinim/BamTyper\n\nThis software is currently unpublished.\n\nCopyright \u00a9 2012 Michael Imelfort. See LICENSE.txt for further details.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/BamTyper/", "keywords": null, "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "BamTyper", "package_url": "https://pypi.org/project/BamTyper/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/BamTyper/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/BamTyper/" }, "release_url": "https://pypi.org/project/BamTyper/0.2.6/", "requires_dist": null, "requires_python": null, "summary": "Working with paired reads in BAM format", "version": "0.2.6" }, "last_serial": 816587, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "b8b0bc55d277037fe36691bf89e3bad0", "sha256": "94ba1b333fbbb681d0aaadaff9106f05278716f8d513fa0d99fbc06ccc678f38" }, "downloads": -1, "filename": "BamTyper-0.0.1.tar.gz", "has_sig": false, "md5_digest": "b8b0bc55d277037fe36691bf89e3bad0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13164, "upload_time": "2012-10-16T23:04:06", "url": "https://files.pythonhosted.org/packages/f4/c2/cc2e0ead52b58d59539c8e09489a7c46b8734e288dc68c9982d8d5f25a20/BamTyper-0.0.1.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "e16996686df999bf2111592096a2513a", "sha256": "3c0ead16a590915af7c34411abe9c30cb406a7c7593c6e3515e0aeb5ce9168d9" }, "downloads": -1, "filename": "BamTyper-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e16996686df999bf2111592096a2513a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18685, "upload_time": "2012-10-18T04:21:03", "url": "https://files.pythonhosted.org/packages/8c/94/cbaf298fbca6faafe0ef64e9eddf888128fd425ff929eb1008cf110d5285/BamTyper-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "4ee0e89e8376b3fe5f32b12211ee4e83", "sha256": "8fcda8b67236f63657f0c1434066d240c9f4210ceffc4f057ec4337bd3493f73" }, "downloads": -1, "filename": "BamTyper-0.1.1.tar.gz", "has_sig": false, "md5_digest": "4ee0e89e8376b3fe5f32b12211ee4e83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20250, "upload_time": "2012-10-19T03:44:59", "url": "https://files.pythonhosted.org/packages/37/7a/9b21c9eaef3741c65e8d1039be09cee531963735680a7500e99ff4bd9878/BamTyper-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "9702cd57f2b30faa3ed6976d9d812c32", "sha256": "16a07c16dccc31006a3e7f9b852a2a79ae7c0f46357dc28006fe97b205771981" }, "downloads": -1, "filename": "BamTyper-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9702cd57f2b30faa3ed6976d9d812c32", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20270, "upload_time": "2012-10-19T06:32:50", "url": "https://files.pythonhosted.org/packages/f4/2f/a8329a79d39d966e5c78019784689f1225fdbd2c9cfb481fe26eb97feedd/BamTyper-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "98efd2b58187c09e847bc32b4387209f", "sha256": "e25dd62aeac22080767b690115da612f9d6591e60f79c5236e119ad72c3707df" }, "downloads": -1, "filename": "BamTyper-0.1.3.tar.gz", "has_sig": false, "md5_digest": "98efd2b58187c09e847bc32b4387209f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20438, "upload_time": "2012-10-19T16:11:06", "url": "https://files.pythonhosted.org/packages/56/4d/b7a01907d3bfca71a9b746cdb3f86e93dfe04d9f056a42aae3f550ac2db1/BamTyper-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "effa1e2f107ccc15c47ae22966ce4600", "sha256": "88cfb07886890bf25d46b61e639607ad2f38c0fa2fdcabc47a7cbcc879757c48" }, "downloads": -1, "filename": "BamTyper-0.1.4.tar.gz", "has_sig": false, "md5_digest": "effa1e2f107ccc15c47ae22966ce4600", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20614, "upload_time": "2012-10-28T07:06:16", "url": "https://files.pythonhosted.org/packages/aa/40/bc72a3029bd2e33f1fffb8f67e32b36ae2b79ecb7340be2e3e229314db0e/BamTyper-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "b55bfb52da2a0ced8c66430620b2d8bd", "sha256": "32b7d5b5fc0d73132fe94148c4fb9805b30a3434764eb4814626e2405c91c4d2" }, "downloads": -1, "filename": "BamTyper-0.1.5.tar.gz", "has_sig": false, "md5_digest": "b55bfb52da2a0ced8c66430620b2d8bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20602, "upload_time": "2012-10-30T02:11:25", "url": "https://files.pythonhosted.org/packages/88/89/e3ab4e3ff362bb6470d3348fc36196fee2a313a0e79014a00e68056216d7/BamTyper-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "857b2ac22f190b72860ea1f4c35b1ba1", "sha256": "157c5beef5ae0ae2f8754c28e18e1821a7d81fc0d5d5f4dff168a224f1df3462" }, "downloads": -1, "filename": "BamTyper-0.1.6.tar.gz", "has_sig": false, "md5_digest": "857b2ac22f190b72860ea1f4c35b1ba1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20644, "upload_time": "2012-10-30T05:44:52", "url": "https://files.pythonhosted.org/packages/0c/5c/f91c3bc1930cc3ba7ea8c5748116dd42b49c118682057db0fbcd48ed84e4/BamTyper-0.1.6.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "f1e360d839f1f80490f581c52cf060c6", "sha256": "1829451b342906f7845c1ed4730671e0eb119d48b1b6a36d6c8b03b7825340fc" }, "downloads": -1, "filename": "BamTyper-0.2.0.tar.gz", "has_sig": false, "md5_digest": "f1e360d839f1f80490f581c52cf060c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24653, "upload_time": "2012-11-09T02:33:01", "url": "https://files.pythonhosted.org/packages/a2/14/34618909043652838dcfd72b19aa95b9ae536272ad4572c4394a0110d2eb/BamTyper-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "71d28a96bb806af4ee2ba1fed55f48e0", "sha256": "fc84b9a1cc3394f39da6cbb7e2afeb0c60c56a23b6d847556bb2ba1ffa0a7f38" }, "downloads": -1, "filename": "BamTyper-0.2.1.tar.gz", "has_sig": false, "md5_digest": "71d28a96bb806af4ee2ba1fed55f48e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24669, "upload_time": "2013-01-04T01:24:05", "url": "https://files.pythonhosted.org/packages/b5/d3/31e6e0a390cbebeb466d99f15fcab6251de2f977fd58a2e85a185106547c/BamTyper-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "db70520f69a4e10e525af94ae5b7a40b", "sha256": "7f29bcae601cd02c3ad93080ca05db9ba5ba4d922e7ee24a5f934b450a8da203" }, "downloads": -1, "filename": "BamTyper-0.2.2.tar.gz", "has_sig": false, "md5_digest": "db70520f69a4e10e525af94ae5b7a40b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25087, "upload_time": "2013-01-14T02:02:49", "url": "https://files.pythonhosted.org/packages/da/dd/b022795cf19d4fd95cb8674378cfc73346ab231f07c1107c5d942d321bbd/BamTyper-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "0d3cfe38848370dbacf2228c0099dd3b", "sha256": "87f01c0c3629455a4061698ecb018201718cc9ef370c15cfc9a201a93131ba17" }, "downloads": -1, "filename": "BamTyper-0.2.3.tar.gz", "has_sig": false, "md5_digest": "0d3cfe38848370dbacf2228c0099dd3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26071, "upload_time": "2013-05-05T06:24:58", "url": "https://files.pythonhosted.org/packages/f0/4c/ff6cac798c9abbb746d29044a35eba1182c2a520eb122fa60ba7fe124c82/BamTyper-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "fbfe5e174ec0e4f39fabb112880d618f", "sha256": "6b891e84d863234f3daebe0cf0fab6f1f9408b9fbc76188e26836dbb6800d0d4" }, "downloads": -1, "filename": "BamTyper-0.2.4.tar.gz", "has_sig": false, "md5_digest": "fbfe5e174ec0e4f39fabb112880d618f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26176, "upload_time": "2013-05-06T01:39:26", "url": "https://files.pythonhosted.org/packages/1d/df/c7becc1244eaa7a2316212c18ef268d03117cc5861a7f8d7702ba9d45ba3/BamTyper-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "f9152ee5d9e4f6c427a6643bdd2db633", "sha256": "4f55537df5e16dd8810bb485d9c2e24aa422ee14ee17fa6942efc6e1fd87f848" }, "downloads": -1, "filename": "BamTyper-0.2.5.tar.gz", "has_sig": false, "md5_digest": "f9152ee5d9e4f6c427a6643bdd2db633", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26738, "upload_time": "2013-07-11T13:32:06", "url": "https://files.pythonhosted.org/packages/dc/af/b7bbb6836a471ba555eb7de88b712d3929b5da3452721217460b2e83fc81/BamTyper-0.2.5.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "369d1b7ba2d64cc0db19c4549ed1059a", "sha256": "30cca8d36a845f6a8cd89250f859872c3690fd1c5633ac2e172f9bd2dad1e962" }, "downloads": -1, "filename": "BamTyper-0.2.6.tar.gz", "has_sig": false, "md5_digest": "369d1b7ba2d64cc0db19c4549ed1059a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26729, "upload_time": "2013-07-16T13:20:16", "url": "https://files.pythonhosted.org/packages/a2/d2/85898bf6bd4b88a10e754b68d988a4bcfdbddc508cc99d1beb893567f181/BamTyper-0.2.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "369d1b7ba2d64cc0db19c4549ed1059a", "sha256": "30cca8d36a845f6a8cd89250f859872c3690fd1c5633ac2e172f9bd2dad1e962" }, "downloads": -1, "filename": "BamTyper-0.2.6.tar.gz", "has_sig": false, "md5_digest": "369d1b7ba2d64cc0db19c4549ed1059a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26729, "upload_time": "2013-07-16T13:20:16", "url": "https://files.pythonhosted.org/packages/a2/d2/85898bf6bd4b88a10e754b68d988a4bcfdbddc508cc99d1beb893567f181/BamTyper-0.2.6.tar.gz" } ] }