Coder Social home page Coder Social logo

rcy3_nix's Introduction

wikipathways2ndex

Convert pathways from WikiPathways to CX format and export to NDEx.

Installation

Just install Nix. Then when you run ./export.R the first time, all required dependencies will be installed for you.

Usage

  1. Clone and enter this repo:
git clone https://github.com/wikipathways/wikipathways2ndex.git
cd wikipathways2ndex

Temporary: until the updated version (>= 3.3.7-7) of the WikiPathways app for Cytoscape is put into production, do this:

bash ./install_dev_wikipathways_app.sh
  1. Create an account at NDEx if you don't have one. Then set your NDEx username and password (perhaps in ~/.profile):
export NDEX_USER_UUID="userid-for-your-ndex-account"
export NDEX_USER="username-for-your-ndex-account"
export NDEX_PWD="password-for-your-ndex-account"

If you don't have permissions to edit the NDEx Network Sets specified in wikipathways2ndex.R, you'll need to change to one you can edit.

  1. Execute: ./export.R AnalysisCollection ndex ./output-dir

To see more options, run ./export.R --help

To put job running and detach:

screen -R
./export.R AnalysisCollection ndex ./output-dir
# Ctrl+a
# d

Now you can leave. To check up on the job and then close the screen:

screen -R
# look at what's going on. if the job is complete, you can kill the screen:
# Ctrl+a
# K

Development

Run tests: ./test/test.sh

Further Details

We used xvfb-run as a dummy display to enable running Cytoscape in headless mode. Should we use something other than xvfb-run? xf86videodummy is maybe supposed to be the replacement for xvfb. nix-env -iA nixos.xorg.xf86videodummy It's also possible to use xpra like xvfb-run nix-env -iA nixos.xpra

Interesting example of using R or R in X.

rcy3_nix's People

Contributors

ariutta avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.