forked from bigdatagenomics/mango
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jupyterlab extension for Mango widgets (bigdatagenomics#559)
* jupyter lab widgets work, renamed mango-viz to mango-pileup
- Loading branch information
1 parent
54ab864
commit fed7ccc
Showing
84 changed files
with
638 additions
and
351 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Mango Python API Documentation | ||
============================== | ||
Mango Pyspark API Documentation | ||
=============================== | ||
|
||
.. automodule:: bdgenomics.mango | ||
.. automodule:: bdgenomics.mango |
This file contains 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.
This file contains 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.
This file contains 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 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,60 @@ | ||
# bdgenomics.mango.pileup | ||
|
||
bdgenomics.mango.pileup is a Jupyter widget that allows users to view genomic reads, variants and features in a Jupyter notebook or in Jupyter lab version >2.0. | ||
bdgenomics.mango.pileup builds off of [pileup.js](https://github.com/hammerlab/pileup.js). | ||
|
||
## Installation | ||
|
||
### from pip: | ||
|
||
$ pip install bdgenomics.mango.pileup | ||
|
||
#### Enable widgets for Jupyter notebook: | ||
|
||
$ jupyter nbextension enable --py --sys-prefix bdgenomics.mango.pileup # can be skipped for notebook version 5.3 and above | ||
|
||
#### Install widgets for jupyter lab: | ||
|
||
$ jupyter labextension install bdgenomics.mango.pileup | ||
|
||
## Running Examples | ||
|
||
$ First run installation, explained above. | ||
$ cd examples | ||
$ jupyter notebook | ||
|
||
Or run in Jupyter lab: | ||
|
||
$ jupyter lab | ||
|
||
### from Source: | ||
|
||
For a development installation (requires npm (version >= 3.8) and node (version >= 4.0)): | ||
|
||
$ git clone https://github.com/bdgenomics/mango | ||
$ cd mango-pileup | ||
$ rm -r bdgenomics/mango/pileup/static | ||
|
||
Install bdgenomics.mango.pileup: | ||
|
||
$ pip install -e . | ||
$ jupyter nbextension install --py --symlink --sys-prefix bdgenomics.mango.pileup | ||
$ jupyter nbextension enable --py --sys-prefix bdgenomics.mango.pileup] | ||
|
||
Note for developers: the --symlink argument on Linux or OS X allows one to modify the JavaScript code in-place. This feature is not available with Windows. | ||
|
||
|
||
To install the JupyterLab extension, install the Package, the Jupyter widgets extension, and the bdgenomics.mango.pileup extension: | ||
|
||
|
||
$ pip install -e . | ||
$ cd bdgenomics/mango/js/ | ||
$ jupyter labextension install @jupyter-widgets/jupyterlab-manager # install the Jupyter widgets extension | ||
$ jupyter labextension install . | ||
|
||
|
||
#### Testing: | ||
|
||
mango-pileup has a Makefile with a ``test`` command to run tests for python and javascript: | ||
|
||
$ make test |
This file contains 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,33 @@ | ||
# Release on npm | ||
To release a new version of bdgenomics.mango.pileup on npm: | ||
|
||
- Update | ||
- cd bdgenomics/mango/js. | ||
- Update `version` in `package.json`. Commit this change. | ||
- Run `scripts/publish.sh`. | ||
- Run `npm publish`. | ||
- Push to github. | ||
|
||
If you are publishing a beta version, run: | ||
|
||
- `npm publish --tag beta` | ||
|
||
|
||
# Release on PyPI | ||
|
||
To release a new version of bdgenomics.mango.pileup on PyPI: | ||
|
||
Update version in _version.py (set release version, remove 'dev') | ||
Also, update the npm frontend version in _version.py to match (TODO LINK to npm) | ||
Update version in bdgenomics/mango/pileup/js/package.json | ||
make clean | ||
make sdist | ||
git add and git commit | ||
make sdist | ||
twine upload dist/*.tar.gz | ||
git tag -a X.X.X -m 'comment' | ||
|
||
Update _version.py (add 'dev' and increment minor) | ||
git add and git commit | ||
git push | ||
git push --tags |
This file contains 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,5 @@ | ||
{ | ||
"load_extensions": { | ||
"bdgenomics.mango.pileup/extension": true | ||
} | ||
} |
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.
Oops, something went wrong.