-
Notifications
You must be signed in to change notification settings - Fork 0
/
cov.r
25 lines (20 loc) · 813 Bytes
/
cov.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
library(data.table)
library(GenomicRanges)
options(width = 400)
setwd('/ifs/depot/resources/dmp/data_20150226/mskdata/interval-lists/VERSIONS')
list.files('cv5')
scan('cv3/genelist', character()) # 341
scan('cv5/genelist', character()) # 410
scan('cv6/genelist', character()) # 468
bd = fread('cv3/picard_baits.interval_list', skip='tiled', header=F)
setnames(bd, c('chr', 'start', 'end', 'strand', 'name'))
bd[, ww := end - start + 1]
sum(bd$ww) # 1656966
bd = fread('cv5/picard_baits.interval_list', skip='tiled', header=F)
setnames(bd, c('chr', 'start', 'end', 'strand', 'name'))
bd[, ww := end - start + 1]
sum(bd$ww) # 1847924
bd = fread('cv6/picard_baits.interval_list', skip='target', header=F)
setnames(bd, c('chr', 'start', 'end', 'strand', 'name'))
bd[, ww := end - start + 1]
sum(bd$ww) # 2077695