R/DivergenceHOMO.R

DivergenceHOMO<-function(nameTF){
    require("MEET")
    homodivergence<-new.env()
    data("HomoDivergence",envir=homodivergence)
	model<-new("Model")
    if (is.na(summary(names(get(ls(envir=homodivergence)[1],envir=homodivergence))==nameTF)["TRUE"])=="TRUE"){
        print("Transcription Factor not included")
        model<-NULL
    }else{

        r<-slot(model,"model")<-get(ls(envir=homodivergence)[1],envir=homodivergence)[[nameTF]]
        r$model$Transcriptionfactor<-r$Transcriptionfactor    
        slot(model,"model")<-r$model
    }


    return(model)
    
}

Try the MEET package in your browser

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

MEET documentation built on May 2, 2019, 1:45 p.m.