Description Usage Arguments Value Examples
View source: R/sparsenet_enrichment_functions.R
Counts the number of (+,+) and (+,-) interactions in a single network
1 | countIntType(inFile, plusID, minusID)
|
inFile |
(char) path to interaction networks |
plusID |
(char) vector of + nodes |
minusID |
(char) vector of - nodes |
(numeric of length 2) Number of (+,+) interactions, and non-(+,+) interactions (i.e. (+,-) and (-,-) interactions)
1 2 3 4 5 6 7 8 9 | d <- tempdir()
# write PSN
m1 <- matrix(c("P1","P1","P2","P2","P3","P4",1,1,1),byrow=FALSE,ncol=3)
write.table(m1,file=paste(d,"net1.txt",sep=getFileSep()),
sep="\t",
col.names=FALSE,row.names=FALSE,quote=FALSE)
countIntType(paste(d,"net1.txt",sep=getFileSep()),c("P1","P2","P3"),
c("P4","P5"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.