-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path04_QoRTs_plots.R
32 lines (22 loc) · 1.03 KB
/
04_QoRTs_plots.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
###############################
#QoRTs plots
###############################
# done after running the QoRTs program on STAR output
# line to start interactive job on great lakes
# srun --nodes=1 --ntasks-per-node=1 --mem-per-cpu=4GB --pty /bin/bash
library(openxlsx)
meta <- read.xlsx("/nfs/turbo/bakulski1/Datasets/Loch-Caruso/446-SH/THP experiment sample IDs.xlsx")
#get all the folders from QoRTs
folders <- list.dirs(path='/nfs/turbo/bakulski1/People/johndou/THP1/QoRTs/',recursive=T)
folders <- folders[-1]
#format variables and check folders order same as meta
names(folders) <- gsub('.*Sample_','',folders)
meta$folder <- paste('/',meta$Sample.ID, sep='')
decoder <- data.frame(unique.ID=meta$folder,
group.ID=meta$Treatment,
sample.ID=meta$Sample.ID)
library(QoRTs)
library(png)
res <- read.qc.results.data('/nfs/turbo/bakulski1/People/johndou/THP1/QoRTs/', decoder=decoder)
#
makeMultiPlot.all(res, outfile.dir='/nfs/turbo/bakulski1/People/johndou/THP1/QoRTs/',plot.device.name='pdf')