Skip to content

Commit c2cf5ce

Browse files
authored
Merge pull request #72 from marinak-ebi/streamline-mp-chooser
Refactor how `mp_chooser` file is specified
2 parents a690068 + 779ed83 commit c2cf5ce

File tree

8 files changed

+25
-1362
lines changed

8 files changed

+25
-1362
lines changed

Extract details from StatPackets/ExtractPVals.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ DRSummaryAcross = function(x) {
367367

368368

369369
########## Main function
370-
f = function(start, end, file = 'Index_DR101_V1.txt') {
370+
f = function(start, end, file = 'Index_DR101_V1.txt', mp_chooser_file = mp_chooser_file) {
371371
if (is.na(end))
372372
end = start
373373
ofname = paste0('R', '_', start, '-', end, '_pval.tsv')
@@ -421,12 +421,14 @@ f = function(start, end, file = 'Index_DR101_V1.txt') {
421421
stringsAsFactors = FALSE
422422
)
423423
rN = DRrequiredAgeing:::annotationChooser(statpacket = r0,
424-
level = .0001)
424+
level = .0001,
425+
mp_chooser_file = mp_chooser_file)
425426
rW = DRrequiredAgeing:::annotationChooser(
426427
statpacket = r0,
427428
level = .0001,
428429
resultKey = 'Windowed result',
429-
TermKey = 'WMPTERM'
430+
TermKey = 'WMPTERM',
431+
mp_chooser_file = mp_chooser_file
430432
)
431433

432434

@@ -758,7 +760,7 @@ makejobs = function(path = getwd()) {
758760
#makejobs()
759761
#qvalue2AllZips()
760762
#parameter2qvalue(args[1], args[2])
761-
ignore.my.name = f(start = as.numeric(args[1]), end = as.numeric(args[2]),file = args[3])
763+
ignore.my.name = f(start = as.numeric(args[1]), end = as.numeric(args[2]), file = args[3], mp_chooser_file = args[4])
762764

763765

764766

Extract details from StatPackets/ExtractPValsPhenStat.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ makejobs = function(path = getwd()) {
661661
#makejobs()
662662
#qvalue2AllZips()
663663
#parameter2qvalue(args[1], args[2])
664-
ignore.my.name = f(start = as.numeric(args[1]), end = as.numeric(args[2]),file = args[3])
664+
ignore.my.name = f(start = as.numeric(args[1]), end = as.numeric(args[2]), file = args[3])
665665

666666

667667

IMPC annotation pipeline/loader.R

Lines changed: 0 additions & 127 deletions
This file was deleted.

IMPC annotation pipeline/manual_loader.R

Lines changed: 0 additions & 109 deletions
This file was deleted.

0 commit comments

Comments
 (0)