GithubHelp home page GithubHelp logo

install_gistic's Introduction

Install GISTIC2 by one line code

I have written two Chinese blogs for telling readers how to install GISTIC 2.0 (a famous software for copy number analysis) step by step. Recently I realize the installation steps can be implemented automatically, so I write this program.

Now, you can directly run GISTIC on hiplot platform, try it at https://hiplot.cn/advance/gistic2.

Update:

  • 2021-08-09: add an option to preprocess.R to output data to custom file.
  • 2021-04-02: add R script to clean overlap segments.
  • 2020-10-26: update README to add Hiplot link and singularity example link.
  • 2020-10-14: run GISTIC with Docker is supported as an entrypoint.
  • 2020-03-08: add system check

Install from script (Linux Only)

  1. Download GISTIC 2.0 from ftp://ftp.broadinstitute.org/pub/GISTIC2.0
  2. Download this repository.
git clone https://github.com/ShixiangWang/install_GISTIC
cd install_GISTIC
chmod u+x install_GISTIC2.sh
  1. Run script.

This program is a pure bash script and can be run in the following way.

./install_GISTIC2.sh args1 args2

# args1: the path to GISTIC_x_x_xx.tar.gz file
# args2: the install directory, must be absolute path, not relative path
  1. Check example script to see how to run GISTIC.

Install from docker

Two ways:

docker pull shixiangwang/gistic

Build the image by yourself.

git clone https://github.com/ShixiangWang/install_GISTIC
cd install_GISTIC
sudo docker build -t gistic:latest .

Run docker image

Click example script to see how to run GISTIC in Docker.

Run the following command to go into Docker interactive terminal.

sudo docker run -it --rm --entrypoint bash shixiangwang/gistic

If you are using singularity, check this example to see how to run GISTIC.

Note

unset DISPLAY should be added to run script for avoiding X11 related errors.

This program is tested and currently only support GISTIC 2.0.23, any suggestion or pull request is welcome.

Q & A

  1. How to handle error related to "overlap".

You can clean the overlap segments byself firstly or use my written R script preprocess.R.

# Usage: Rscript preprocess.R input.seg [minimal_prob, default 0]
#
# Example: Rscript preprocess.R input.seg 5
# Filter segments with less than 5 probes and then clean overlap segments
# by weighted multiplication

Citation

If you want to thank my work, please cite my recent paper and add the link to this GitHub repo.

Antigen presentation and tumor immunogenicity in cancer immunotherapy response prediction, eLife. https://doi.org/10.7554/eLife.49020

LICENSE

MIT © 2019-2020 Shixiang Wang

install_gistic's People

Contributors

shixiangwang avatar

Watchers

 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.