R/getSingleLayerGraphIDs.R

Defines functions `getSingleLayerGraphIDs`

`getSingleLayerGraphIDs` <- 
function(graphIDs, edgeM, remove=TRUE, filterGraphIDs=NULL, directed=FALSE, UP=TRUE) { 
	singleLayerGraphIDs <- lapply(graphIDs, .getSingleGraphIDs, edgeM, filterGraphIDs=filterGraphIDs, directed=directed, UP=UP)
	names(singleLayerGraphIDs) <- as.character(graphIDs)
	if (remove) singleLayerGraphIDs <- singleLayerGraphIDs[which(sapply(singleLayerGraphIDs, length) != 0)]
	if (length(singleLayerGraphIDs) > 0) return(singleLayerGraphIDs)
	else return(NULL)
}

Try the GeneAnswers package in your browser

Any scripts or data that you put into this service are public.

GeneAnswers documentation built on Nov. 8, 2020, 4:53 p.m.