importPandaMatlab: Panda Matlab importer

Description Usage Arguments Value Examples

View source: R/helper.R

Description

Imports the files from the exportPanda.m file.

Usage

1
importPandaMatlab(dir = getwd(), celldata = "celldata.dat")

Arguments

dir

Working directory to search for the numeric files.

celldata

Name of the 'celldata.dat' file.

Value

Two column vector of "regulator" and "target"

Examples

1
2
3
4
5
6
7
8
9
# determine gene degree
 pandaFiles = importPandaMatlab()
 indegree <- ddply(pandaFiles[,2:ncol(pandaFiles)], .(targer), numcolwise(sum))
 row.names(indegree) <- indegree[,1]
 indegree <- indegree[,-1]
 # to export the file
 networkfiles = list.files(pattern="numeric")
 write.table(indegree,paste("indegree_",networkfiles,sep=""),
             sep="\t",quote=F,row.names=T,col.names=T)

singha53/pandaR documentation built on May 29, 2019, 10:07 p.m.