-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pairwise #15
Conversation
R/getInteractingGenes.R
Outdated
mode=c("residual","DE"),optParams=NULL, | ||
reconstruction=NULL,hotspots=NULL, | ||
getInteractingGenes <- function(data, spPatterns, refPattern="Pattern_1", | ||
mode=c("DE","residuals"), optParams=NULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
important: "residual"
or "residuals"
?
R/getInteractingGenes.R
Outdated
} else if (is.matrix(patternPairs)) { | ||
if (ncol(patternPairs) != 2) | ||
stop("patternPairs matrix must have 2 columns.") | ||
} else if(is.character(patternPairs)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: is this is valid use case? I could not imagine when someone would want to format c('a','b','c','d')
as
> matrix(c, ncol=2)
[,1] [,2]
[1,] "a" "c"
[2,] "b" "d"
R/getInteractingGenes.R
Outdated
patternPairs <- matrix(patternPairs, ncol=2) | ||
else | ||
stop("patternPairs must either be a 2-column matrix | ||
or a list of vectors.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
..or a character vector?
results[[ii]] <- result | ||
} | ||
} | ||
for (ii in seq(1,length(results))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: maybe seq_len(results)
? seq(1,0)
yields [1] 1 0
… getPairWiseInteractingGenes
Added functions and code to support pairwise getInteractingGenes call.