R/detectionCallAnnotation.R

Defines functions detectionCallAnnotation

Documented in detectionCallAnnotation

detectionCallAnnotation <- function(species="hg", binsize=2000) {
	if (species=="hg"){
		exonfile <- "hg19_exon.txt"
		irfile <- "hg19_integenic_region.txt"
	}
	if (species == "mm"){
		exonfile <- "mm9_exon.txt"
		irfile <- "mm9_integenic_region.txt"
	}
	
	if ((file.exists(exonfile) == FALSE) || (file.exists(irfile) == FALSE)){

		print("Source files specified doesn't exist!")

	} 

	else 

	{
	
		.C("detectionCallAnnotation", as.character(exonfile), as.character(irfile), as.character(species), as.integer(binsize), PACKAGE="Rsubread")
	
	}
	
	NULL

}

Try the Rsubread package in your browser

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

Rsubread documentation built on March 17, 2021, 6:01 p.m.