R/getBackground.R

Defines functions getBackground

Documented in getBackground

getBackground <-
function(type="gene_miRNA"){
      if(!exists("k2ri")) k2ri<-initializeK2ri()
	  if(type=="gene"||type=="gene_miRNA"){
	  geneBackground<-GetK2riData("BGGene") 
	  newBackground<-geneBackground
	  }
	
	  if(type=="miRNA"||type=="gene_miRNA"){
	  miRNABackground<-GetK2riData("BGMiRNA")
	  newBackground<-miRNABackground
	  }

	  if(type=="gene_miRNA"){
	  newBackground<-union(geneBackground,miRNABackground)
	  }
	  
	 return(newBackground)
}

Try the SubpathwayGMir package in your browser

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

SubpathwayGMir documentation built on May 2, 2019, 2:39 a.m.