8000 GitHub - robertaboukhalil/ginkgo: Cloud-based single-cell copy-number variation analysis tool · GitHub
[go: up one dir, main page]

Skip to content
robertaboukhalilPublic

About

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

Topics

Resources

Stars

53 stars

Watchers

10 watching

Forks

Repository files navigation

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

Binning data:

  • Binning data for hg19 is included in this repository under ginkgo/genomes/hg19, so there is nothing to download:

    • genomes/hg19/original: the default bins
    • genomes/hg19/pseudoautosomal: the same bins with the chrY pseudoautosomal regions masked (the "Mask Y-chr pseudoautosomal regions" option)
    • Variable and fixed bins at 10kb, 25kb, 50kb, 100kb, 175kb, 250kb, 500kb, 1Mb, 2.5Mb, 5Mb and 10Mb
    • Variable bins are for 150bp reads mapped with bowtie, e.g. variable_500000_150_bowtie. They also work for shorter reads, with slightly less even coverage in repetitive regions.
  • The original download server (labshare.cshl.edu) is no longer available, so the hg19 bins above were rebuilt with the scripts in ginkgo/genomes/scripts. The following are not currently available:

    • hg19 bins for other read lengths (48, 76, 101bp) or for bwa
    • Bad bins files (the "Mask bad bins" option)
    • Other genomes (hg18, mm9, mm10, rheMac7, rheMac8, rn5, dm3)
  • To build bins for another genome or read length, see genomes/scripts/README.md

About

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

Topics

Resources

Stars

53 stars

Watchers

10 watching

Forks

Used by

Contributors

Languages

0