This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group | GOI | REF | |
---|---|---|---|
control | 32.37 | 16.05 | |
control | 31.76 | 15.1 | |
control | 31.8 | 15.76 | |
treatment | 30.1 | 18.56 | |
treatment | 29.78 | 15.64 | |
treatment | 29.88 | 14.76 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a dba.count object | |
library("BiocParallel") | |
library("DiffBind") | |
parallel=TRUE | |
BPPARAM=MulticoreParam(4) | |
ATAC_adult_BNST<- dba(sampleSheet = "Adult_ATAC_BNST1.csv", config=data.frame(AnalysisMethod=DBA_DESEQ2, fragmentSize = 0, th=.05),peakFormat="narrow") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(imager) | |
# download data | |
if(!file.exists('./stats.csv')) { | |
download.file('https://raw.githubusercontent.com/MahShaaban/colocr/master/inst/colocr_app/stats_18.09.02_05.15.01.csv', | |
destfile = './stats.csv') | |
} | |
if(!file.exists('./inputs.csv')) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# load required libraries | |
library(tidyverse) | |
# load topology data and add ymin and ymax | |
thik1 <- read_csv('thik_features.csv') | |
thik1 <- thik1 %>% | |
mutate(ymin = as.numeric(as.factor(protein)) -.2, | |
ymax = as.numeric(as.factor(protein)) + .2) | |
# generate and save the figure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' Download Cancer Transcription Factor Targets data | |
#' | |
#' Download a coma separated file of Cistrome Cancer Transcription Factor Targets | |
#' | |
#' @param tf A character string of a transcription factor | |
#' @param file_type A character string of two options; 'cor' correlation to genes or 'rp' regulatory potential to genes | |
#' @param all A logical to whether to get only data for target genes or all genes | |
#' @param dir A character string for the directory to download data to | |
#' | |
#' @return A csv file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' Merge TCGA data | |
#' | |
#' Merge data.frames of TCGA data into one tidy table | |
#' | |
#' @param study_data genetic profiles of a TCGA study | |
#' | |
#' @return A tidy data.frame | |
#' | |
#' @export | |
study_merge <- function(study_data) { |