-
Notifications
You must be signed in to change notification settings - Fork 6
Update codebase to python 3 #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b504e74
Upgrade code to python 3
alexbarrera 2613d3a
Moderate refactor needed to create an installable package
alexbarrera 3edda08
Drop attempt to support Python 2
alexbarrera a1b0684
Resolve review comments from Thomas
alexbarrera c1e5e23
Add version to pymongo requirement
alexbarrera b777788
Add version to pymongo requirement
alexbarrera File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) 2021 Alejandro Barrera | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| [build-system] | ||
| requires = [ | ||
| "setuptools>=42", | ||
| "wheel" | ||
| ] | ||
| build-backend = "setuptools.build_meta" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| jinja2 >=2.8 | ||
| nbformat >=4.0.1 | ||
| numpy >=1.10.4 | ||
| pandas >=0.17.1 | ||
| xlrd >=1.0.0 | ||
| ruamel.yaml >=0.11.11 | ||
| pymongo >=3.4.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| [metadata] | ||
| name = ggr-cwl-ipynb-gen | ||
| version = 0.5.0 | ||
| author = Alejandro Barrera | ||
| author_email = alejandro.barrera@duke.edu | ||
| description = IPython notebook generator for GGR CWL processing pipelines of genomic data | ||
| long_description = file: README.md | ||
| long_description_content_type = text/markdown | ||
| url = https://github.com/ReddyLab/ggr-cwl-ipynb-gen | ||
| project_urls = | ||
| Bug Tracker = https://github.com/ReddyLab/ggr-cwl-ipynb-gen/issues | ||
| Source = https://github.com/ReddyLab/ggr-cwl-ipynb-gen/ | ||
|
|
||
| classifiers = | ||
| Development Status :: 3 - Alpha | ||
| Intended Audience :: Science/Research | ||
| Topic :: Scientific/Engineering :: Bio-Informatics | ||
| License :: OSI Approved :: MIT License | ||
| Programming Language :: Python :: 3 | ||
| Programming Language :: Python :: 3.6 | ||
| Programming Language :: Python :: 3.7 | ||
| Programming Language :: Python :: 3.8 | ||
| Programming Language :: Python :: 3.9 | ||
|
|
||
| [options] | ||
| packages = find: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| #!/usr/bin/env python3 | ||
| """Description: | ||
| Setup script for ggr-cwl-ipynb-gen | ||
| IPython Notebook generator for processing genomic data from GGR project, in CWL | ||
|
|
||
| This code is free software; you can redistribute it and/or modify it | ||
| under the terms of the BSD License (see the file LICENSE included with | ||
| the distribution). | ||
| """ | ||
| import sys | ||
| if sys.version_info[0] == 2: | ||
| sys.exit("Sorry, Python 2 is not supported anymore. Please check and old branch (pre 2021)") | ||
| from setuptools import setup, find_packages | ||
|
|
||
| setup( | ||
| long_description_content_type='text/markdown', | ||
| url='https://github.com/alexbarrera/ggr-cwl-ipynb-gen', | ||
| keywords='cwl, bioinformatics, development', | ||
| scripts=[ | ||
| "ggr_cwl_ipynb_gen/ggr-cwl-ipynb-gen.py", | ||
| "chipdb_upload/data_upload.py", | ||
| ], | ||
| include_package_data=True, | ||
| py_modules=["ggr_cwl_ipynb_gen"], | ||
| python_requires='>=3.1', | ||
| install_requires=[ | ||
| 'jinja2 >=2.8', | ||
| 'nbformat >=4.0.1', | ||
| 'numpy >=1.10.4', | ||
| 'pandas >=0.17.1', | ||
| 'xlrd >=1.0.0', | ||
| 'ruamel.yaml >=0.11.11', | ||
| 'setuptools', | ||
| 'pymongo >=3.4.0' | ||
| ], # Optional | ||
| data_files=[ | ||
| ('templates', ['ggr_cwl_ipynb_gen/templates/cwl_json_gen.j2']), | ||
| ('templates', ['ggr_cwl_ipynb_gen/templates/cwl_slurm_array_gen.j2']), | ||
| ('templates', ['ggr_cwl_ipynb_gen/templates/data_upload.j2']), | ||
| ('templates', ['ggr_cwl_ipynb_gen/templates/download_fastq_files.j2']), | ||
| ('templates', ['ggr_cwl_ipynb_gen/templates/generate_plots.j2']), | ||
| ('templates', ['ggr_cwl_ipynb_gen/templates/generate_qc_cell.j2']), | ||
| ('templates', ['ggr_cwl_ipynb_gen/templates/merge_lanes_fastq.j2']), | ||
| ('templates', ['ggr_cwl_ipynb_gen/templates/ungzip_fastq_files.j2']), | ||
| ] | ||
|
|
||
| ) | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.