Skip to content

Dobbs-Lab/GTagHD

Repository files navigation

GTagHD

This is a repository for the GTagHD knock-in tool.

You can run GTagHD online through a web interface here: http://genesculpt.org/gtaghd/

If you already have R and/or RStudio installed, you can jump to here to immmediately start running GTagHD locally.

If you are having issues running GTagHD locally, please check the Troubleshooting section before requesting help.

How to Run GTagHD Locally

You will need to have the ability to install software on the computer you are using to run GTagHD locally; this may require administrator privileges.

1. Download and Install R

2. Download and Install RStudio (optional)

3. Run GTagHD locally

Troubleshooting

GTagHD requires the latest version of R in order to run offline.

Download R for your appropriate operating system:

Windows: https://mirror.las.iastate.edu/CRAN/bin/windows/

You should select the "base" option, or click "install R for the first time".

Mac OS: https://mirror.las.iastate.edu/CRAN/bin/macosx/

Scroll down to the "Files" section, and find the R pkg file that lists your operating system (El Capitan, Mavericks, Snow Leopard, etc). Select the R-3.x.x.pkg file corresponding to your system - pay special attention to the "Important" section under R-3.4.3.pkg if you have "El Capitan"; you may want to consider using R-3.3.3.pkg if you don't want to install additional tools to support running R 3.4.3 on "El Capitan".

Linux/Unix: https://mirror.las.iastate.edu/CRAN/bin/linux/

Find your Unix distro, and folow the instructions in the directory.

Once you have downloaded the R installer, run it to install R. You may be required to enter administrator credentials; if you do not have these credentials, talk to your institution's IT department to have them install the software.

If you need additional help installing R, please check the installation instructions for your operating system:

Windows: https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Installing-R-under-Windows

Mac OS: https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Installing-R-under-macOS

Linux/Unix: https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Installing-R-under-Unix_002dalikes

GTagHD does not require the use of the RStudio development environment, but if you are interested in examining or modifying the GTagHD code, we recommend you do so in RStudio.

You can download RStudio for free here: https://www.rstudio.com/products/rstudio/download/#download

After downloading the RStudio installer, follow the installation instructions. If you have both R and RStudio installed, you should only do the following steps in RStudio.

You can run this RShiny web app in R (or RStudio) by opening up an R or RStudio session.

You can copy and paste the code blocks below into your R/RStudio console to run them.

(Please read this discussion on why you should not generally copy/paste/run code directly from internet pages to your console; you're probably safe on GitHub, but you should not get in the habit of copying and pasting code directly into your console or terminal windows. Paste what you've copied into NotePad or a similar program, and then copy/paste from there to your console once you know the code is safe.)

#Install packages required to run GTagHD; you can also run this code to update these packages

#Install CRAN packages
install.packages(c("shiny", "shinyjs", "Rcpp", "plyr", "stringr", "rlist", "rentrez", "xml2"))

#Install 'Biostrings' package from Bioconductor
source("https://bioconductor.org/biocLite.R")
biocLite("Biostrings")
biocLite("biomaRt")

Run this code every time you want to use the tool, including the first time:

#Load Shiny in the R/RStudio Environment
library(shiny)

#Retrieve, load, and run GTagHD from GitHub
runGitHub("GTagHD", "Dobbs-Lab")

You're all set!