Skip to content

GMOD/GenomeFeaturesPythonWidget

 
 

Repository files navigation

genomefeatures

Genome Features Widget Library

Installation

For a development installation (requires npm, non-root):

sudo apt-get install curl git python3 python3-pip sudo
sudo pip3 install jupyter
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash  # install nvm / node
nvm i 8

Install Component (we are using local in dev):

git clone https://github.com/GMOD/GenomeFeatureComponent 
cd GenomeFeatureComponent
npm i
npm run build

Install Widget (not as root!!, will use external dependency, eventually):

cd ..
git clone https://github.com/nathandunn/genomefeatures.git
cd genomefeatures
pip3 install -e .
jupyter nbextension install --py --symlink --sys-prefix genomefeatures
jupyter nbextension enable --py --sys-prefix genomefeatures

Using python3 load notebook jupyter notebook:

from genomefeatures import *
HelloWorld()

To update only the JS:

pip3 install -e .

And then reload the current book.

To install on production (when ready) use pip:

pip3 install genomefeatures
jupyter nbextension enable --py --sys-prefix genomefeatures

About

Jupyter Notebook widget that will automatically launch genome widgets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 44.5%
  • Python 33.1%
  • Jupyter Notebook 11.8%
  • CSS 5.3%
  • Dockerfile 4.6%
  • Shell 0.7%