├── petlx ├── test │ ├── __init__.py │ └── bio │ │ ├── __init__.py │ │ ├── test_tabix.py │ │ └── test_gff3.py ├── __init__.py └── bio │ ├── __init__.py │ ├── tabix.py │ └── gff3.py ├── requirements.txt ├── rtfd_requirements.txt ├── MANIFEST.in ├── test_requirements.txt ├── fixture ├── test.bed.gz ├── sample.vcf.gz ├── test.bed.gz.tbi ├── sample.vcf.gz.tbi ├── sample.sorted.gff.gz ├── test_noheader.bed.gz ├── sample.sorted.gff.gz.tbi ├── test_noheader.bed.gz.tbi └── sample.vcf ├── docstage ├── 0.1 │ ├── objects.inv │ ├── _static │ │ ├── file.png │ │ ├── minus.png │ │ ├── plus.png │ │ ├── pygments.css │ │ ├── sidebar.js │ │ ├── default.css │ │ └── doctools.js │ ├── _sources │ │ ├── todo.txt │ │ └── index.txt │ ├── searchindex.js │ ├── _modules │ │ ├── index.html │ │ └── petlx.html │ ├── search.html │ ├── todo.html │ ├── genindex.html │ ├── py-modindex.html │ └── index.html ├── 0.2 │ ├── objects.inv │ ├── _static │ │ ├── file.png │ │ ├── minus.png │ │ ├── plus.png │ │ ├── pygments.css │ │ ├── sidebar.js │ │ └── default.css │ ├── _sources │ │ ├── array.txt │ │ ├── xlsx.txt │ │ ├── gff3.txt │ │ ├── interval.txt │ │ └── index.txt │ ├── .buildinfo │ ├── searchindex.js │ ├── _modules │ │ └── index.html │ ├── search.html │ ├── py-modindex.html │ ├── xlsx.html │ ├── genindex.html │ ├── gff3.html │ └── index.html ├── 0.2.1 │ ├── objects.inv │ ├── _static │ │ ├── file.png │ │ ├── minus.png │ │ ├── plus.png │ │ ├── pygments.css │ │ ├── sidebar.js │ │ └── default.css │ ├── _sources │ │ ├── array.txt │ │ ├── xlsx.txt │ │ ├── gff3.txt │ │ ├── interval.txt │ │ └── index.txt │ ├── searchindex.js │ ├── _modules │ │ └── index.html │ ├── search.html │ ├── py-modindex.html │ ├── xlsx.html │ ├── genindex.html │ ├── gff3.html │ └── index.html └── index.html ├── .gitignore ├── .settings └── org.eclipse.core.resources.prefs ├── .pydevproject ├── .project ├── release.txt ├── README.rst ├── README.txt ├── docs ├── bio.rst ├── push.rst ├── index.rst ├── Makefile └── make.bat ├── TODO.rst ├── tox.ini ├── LICENSE.txt ├── setup.py └── examples └── bio.py /petlx/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | petl>=1.0.0 2 | -------------------------------------------------------------------------------- /rtfd_requirements.txt: -------------------------------------------------------------------------------- 1 | petl>=1.0.0 2 | numpydoc==0.5 3 | -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | include *.txt 2 | recursive-include docs *.txt 3 | 4 | -------------------------------------------------------------------------------- /test_requirements.txt: -------------------------------------------------------------------------------- 1 | nose 2 | petl>=1.0.0 3 | pyvcf 4 | pysam 5 | -------------------------------------------------------------------------------- /fixture/test.bed.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/fixture/test.bed.gz -------------------------------------------------------------------------------- /fixture/sample.vcf.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/fixture/sample.vcf.gz -------------------------------------------------------------------------------- /fixture/test.bed.gz.tbi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/fixture/test.bed.gz.tbi -------------------------------------------------------------------------------- /docstage/0.1/objects.inv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/docstage/0.1/objects.inv -------------------------------------------------------------------------------- /docstage/0.2/objects.inv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/docstage/0.2/objects.inv -------------------------------------------------------------------------------- /fixture/sample.vcf.gz.tbi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/fixture/sample.vcf.gz.tbi -------------------------------------------------------------------------------- /docstage/0.2.1/objects.inv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/docstage/0.2.1/objects.inv -------------------------------------------------------------------------------- /fixture/sample.sorted.gff.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/fixture/sample.sorted.gff.gz -------------------------------------------------------------------------------- /fixture/test_noheader.bed.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/fixture/test_noheader.bed.gz -------------------------------------------------------------------------------- /docstage/0.1/_static/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/docstage/0.1/_static/file.png -------------------------------------------------------------------------------- /docstage/0.1/_static/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/docstage/0.1/_static/minus.png -------------------------------------------------------------------------------- /docstage/0.1/_static/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/docstage/0.1/_static/plus.png -------------------------------------------------------------------------------- /docstage/0.2/_static/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/docstage/0.2/_static/file.png -------------------------------------------------------------------------------- /docstage/0.2/_static/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/docstage/0.2/_static/minus.png -------------------------------------------------------------------------------- /docstage/0.2/_static/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/docstage/0.2/_static/plus.png -------------------------------------------------------------------------------- /docstage/0.2.1/_static/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/docstage/0.2.1/_static/file.png -------------------------------------------------------------------------------- /docstage/0.2.1/_static/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/docstage/0.2.1/_static/minus.png -------------------------------------------------------------------------------- /docstage/0.2.1/_static/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/docstage/0.2.1/_static/plus.png -------------------------------------------------------------------------------- /fixture/sample.sorted.gff.gz.tbi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/fixture/sample.sorted.gff.gz.tbi -------------------------------------------------------------------------------- /fixture/test_noheader.bed.gz.tbi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petl-developers/petlx/HEAD/fixture/test_noheader.bed.gz.tbi -------------------------------------------------------------------------------- /petlx/test/bio/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import absolute_import, print_function, division 3 | 4 | 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *.pyc 3 | *.csv 4 | *.h5 5 | docs/_build 6 | build 7 | MANIFEST 8 | dist 9 | .idea 10 | tmp 11 | .tox/ 12 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | #Thu Jul 12 14:25:12 BST 2012 2 | eclipse.preferences.version=1 3 | encoding//docs/conf.py=utf-8 4 | -------------------------------------------------------------------------------- /docstage/0.2.1/_sources/array.txt: -------------------------------------------------------------------------------- 1 | .. py:module:: petlx.array 2 | 3 | Arrays (numpy) 4 | ============== 5 | 6 | .. autofunction:: toarray 7 | -------------------------------------------------------------------------------- /docstage/0.2/_sources/array.txt: -------------------------------------------------------------------------------- 1 | .. py:module:: petlx.array 2 | 3 | Arrays (numpy) 4 | ============== 5 | 6 | .. autofunction:: toarray 7 | -------------------------------------------------------------------------------- /docstage/0.2.1/_sources/xlsx.txt: -------------------------------------------------------------------------------- 1 | .. py:module:: petlx.xlsx 2 | 3 | Excel files (openpyxl) 4 | ====================== 5 | 6 | .. autofunction:: fromxlsx 7 | 8 | -------------------------------------------------------------------------------- /docstage/0.2/_sources/xlsx.txt: -------------------------------------------------------------------------------- 1 | .. py:module:: petlx.xlsx 2 | 3 | Excel files (openpyxl) 4 | ====================== 5 | 6 | .. autofunction:: fromxlsx 7 | 8 | -------------------------------------------------------------------------------- /petlx/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import, print_function, division 2 | 3 | 4 | __version__ = '1.0.3' 5 | 6 | 7 | import petlx.push 8 | import petlx.bio 9 | -------------------------------------------------------------------------------- /petlx/bio/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import absolute_import, print_function, division 3 | 4 | 5 | # activate all extensions 6 | import petlx.bio.gff3 7 | import petlx.bio.tabix 8 | import petlx.bio.vcf 9 | -------------------------------------------------------------------------------- /docstage/0.2.1/_sources/gff3.txt: -------------------------------------------------------------------------------- 1 | .. py:module:: petlx.gff3 2 | 3 | GFF3 Utilities 4 | ============== 5 | 6 | .. autofunction:: fromgff3 7 | .. autofunction:: gff3lookup 8 | .. autofunction:: gff3join 9 | .. autofunction:: gff3leftjoin 10 | 11 | 12 | -------------------------------------------------------------------------------- /docstage/0.2/_sources/gff3.txt: -------------------------------------------------------------------------------- 1 | .. py:module:: petlx.gff3 2 | 3 | GFF3 Utilities 4 | ============== 5 | 6 | .. autofunction:: fromgff3 7 | .. autofunction:: gff3lookup 8 | .. autofunction:: gff3join 9 | .. autofunction:: gff3leftjoin 10 | 11 | 12 | -------------------------------------------------------------------------------- /docstage/0.2/.buildinfo: -------------------------------------------------------------------------------- 1 | # Sphinx build info version 1 2 | # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. 3 | config: 838d05eca36104e4441c195bd01dfea1 4 | tags: fbb0d17656682115ca4d033fb2f83ba1 5 | -------------------------------------------------------------------------------- /docstage/0.1/_sources/todo.txt: -------------------------------------------------------------------------------- 1 | 0.2 2 | --- 3 | 4 | - some sort of interval tree lookup and/or join using bx-python - intervallookup, intervallookupone, intervalrecordlookup, intervalrecordlookupone, intervaljoin 5 | - fromgff3, unpackgff3info 6 | - fromvcf41, meltvcfsampledata, unpackvcfinfo, ... 7 | 8 | -------------------------------------------------------------------------------- /docstage/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
49 | from petlx.xlsx import fromxlsx
50 | 56 | Please activate JavaScript to enable the search 57 | functionality. 58 |
59 |61 | From here you can search these documents. Enter your search 62 | words into the box below and click "search". Note that the search 63 | function will automatically search for all of the words. Pages 64 | containing fewer words won't appear in the result list. 65 |
66 | 71 | 72 |56 | Please activate JavaScript to enable the search 57 | functionality. 58 |
59 |61 | From here you can search these documents. Enter your search 62 | words into the box below and click "search". Note that the search 63 | function will automatically search for all of the words. Pages 64 | containing fewer words won't appear in the result list. 65 |
66 | 71 | 72 |56 | Please activate JavaScript to enable the search 57 | functionality. 58 |
59 |61 | From here you can search these documents. Enter your search 62 | words into the box below and click "search". Note that the search 63 | function will automatically search for all of the words. Pages 64 | containing fewer words won't appear in the result list. 65 |
66 | 71 | 72 |
|
57 |
|
64 |
| 59 | p | ||
| 63 | | 64 | petlx | 65 | |
| 68 | | 69 | petlx.array | 70 | |
| 73 | | 74 | petlx.gff3 | 75 | |
| 78 | | 79 | petlx.interval | 80 | |
| 83 | | 84 | petlx.xlsx | 85 | |
| 59 | p | ||
| 63 | | 64 | petlx | 65 | |
| 68 | | 69 | petlx.array | 70 | |
| 73 | | 74 | petlx.gff3 | 75 | |
| 78 | | 79 | petlx.interval | 80 | |
| 83 | | 84 | petlx.xlsx | 85 | |
Extract a table from a sheet in an Excel (.xlsx) file.
60 |N.B., the sheet name is case sensitive, so watch out for, e.g., ‘Sheet1’.
61 |The package openpyxl is required. Instructions for installation can be found at 62 | https://bitbucket.org/ericgazoni/openpyxl/wiki/Home or try pip install openpyxl.
63 |Extract a table from a sheet in an Excel (.xlsx) file.
60 |N.B., the sheet name is case sensitive, so watch out for, e.g., ‘Sheet1’.
61 |The package openpyxl is required. Instructions for installation can be found at 62 | https://bitbucket.org/ericgazoni/openpyxl/wiki/Home or try pip install openpyxl.
63 || 59 | | 64 | |
| 72 | |
|
75 |
| 84 | | 89 | |
|
98 |
|
102 |
|
109 |
| 59 | | 64 | |
| 72 | |
|
75 |
| 84 | | 89 | |
|
98 |
|
102 |
|
109 |
Extract feature rows from a GFF3 file.
56 |57 | New in version 0.2.
58 |Build a GFF3 feature lookup based on interval trees. See also 64 | petlx.interval.facetintervallookup().
65 |66 | New in version 0.2.
67 |Join with a table of GFF3 features. See also petlx.interval.intervaljoin().
73 |74 | New in version 0.2.
75 |Left join with a table of GFF3 features. See also petlx.interval.intervalleftjoin().
81 |82 | New in version 0.2.
83 |Extract feature rows from a GFF3 file.
56 |57 | New in version 0.2.
58 |Build a GFF3 feature lookup based on interval trees. See also 64 | petlx.interval.facetintervallookup().
65 |66 | New in version 0.2.
67 |Join with a table of GFF3 features. See also petlx.interval.intervaljoin().
73 |74 | New in version 0.2.
75 |Left join with a table of GFF3 features. See also petlx.interval.intervalleftjoin().
81 |82 | New in version 0.2.
83 |petlx is a collection of extensions to petl, a tentative 49 | Python module for extracting, transforming and loading tables of data.
50 |For an overview of all functions in the package, see the 57 | Index.
58 |This module is available from the Python Package Index. On Linux distributions you 61 | should be able to do easy_install petlx or pip install 62 | petlx. On Windows or Mac you can download manually, extract and run 63 | python setup.py install.
64 |Extract a table from a sheet in an Excel (.xlsx) file.
71 |Note that the package openpyxl is required. Instructions for installation 72 | can be found at https://bitbucket.org/ericgazoni/openpyxl/wiki/Home.
73 |N.B., the sheet name is case sensitive, so watch out for, e.g., ‘Sheet1’.
74 |petlx is a collection of extensions to petl, a tentative 53 | Python module for extracting, transforming and loading tables of data.
54 |For an overview of all functions in the package, see the 61 | Index.
62 |This module is available from the Python Package Index. On Linux distributions you 65 | should be able to do easy_install petlx or pip install 66 | petlx. On Windows or Mac you can download manually, extract and run 67 | python setup.py install.
68 |petlx is a collection of extensions to petl, a tentative 53 | Python module for extracting, transforming and loading tables of data.
54 |For an overview of all functions in the package, see the 61 | Index.
62 |This module is available from the Python Package Index. On Linux distributions you 65 | should be able to do easy_install petlx or pip install 66 | petlx. On Windows or Mac you can download manually, extract and run 67 | python setup.py install.
68 |