Git Product home page Git Product logo

bianshuhui / ginkgo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robertaboukhalil/ginkgo

0.0 1.0 0.0 103.08 MB

Cloud-based single-cell copy-number variation analysis tool

Home Page: qb.cshl.edu/ginkgo

License: BSD 2-Clause "Simplified" License

Makefile 0.10% Shell 7.29% PHP 38.64% Dockerfile 0.62% WDL 1.59% C++ 6.84% Python 0.12% CSS 6.10% HTML 0.58% JavaScript 26.96% R 10.68% Perl 0.48%

ginkgo's Introduction

Ginkgo

Ginkgo is a cloud-based single-cell copy-number variation analysis tool.

Launch Ginkgo: qb.cshl.edu/ginkgo

Usage

  • Step 0: Upload .bed files
  • Step 1: Choose analysis parameters
  • Step 2: Compute Copy Number Profiles, and a Phylogenetic Tree
  • Step 3: Analyze Individual Cells

Setup Ginkgo on your own server

Requirements:

  • PHP >=5.2
  • R >= 3.0.0
  • R Packages:
    • ctc
    • DNAcopy
    • inline
    • gplots
    • scales
    • plyr
    • ggplot2
    • gridExtra
    • fastcluster
    • heatmap3

WARNING Version 3.0.0 (Mar 28, 2016) of gplots introduced a bug in heatmap.2 that makes it calculate dendrograms even when Rowv or Colv is set to FALSE so that Ginkgo will run for a very long time. The solution is to use an older version of gplots or use fixed version from: https://github.com/ChristophH/gplots. This can be installed using the commands below

remove.packages('gplots'); 
library('devtools'); 
install_github("ChristophH/gplots")

Install Ginkgo:

Type make in the ginkgo/ directory

Server Configuration:

  • /etc/php.ini

    • upload_tmp_dir: make sure this directory has write permission
    • upload_max_filesize: set to >2G since .bam files can be large
  • ginkgo/includes/fileupload/server/php/UploadHandler.php

    • In constructor, on line 43 and 44:
      • upload_dir = [FULL_PATH_TO_UPLOADS_DIR] . $_SESSION["user_id"] . '/'
      • upload_url = [FULL_URL_TO_UPLOADS_DIR] . $_SESSION["user_id"] . '/'
  • ginkgo/bootstrap.php

    • Change DIR_ROOT, DIR_UPLOADS and URL_ROOT
  • ginkgo/scripts/analyze.sh

    • Change home variable to where the ginkgo/ folder is located
  • ginkgo/scripts/process.R

    • Change main_dir variable to the folder where ginkgo/scripts is located
  • ginkgo/scripts/reclust.R

    • Change main_dir variable to the folder where ginkgo/scripts is located
  • ginkgo/scripts/analyze-subset.R

    • Set the folder to where ginkgo/scripts is located
    • Set the folder to where ginkgo/genomes is located (warning: test this carefully if your ginkgo/uploads folder is a symlink)
  • Make sure the uploads directory has the correct write permissions

Download data files:

ginkgo's People

Contributors

robertaboukhalil avatar mschatz avatar jherrero avatar tgarvin avatar jpritt avatar

Watchers

bsh 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.