R/getSpecificMut.R

Defines functions getSpecificMut

Documented in getSpecificMut

#' get specific Mutation data for multiple genes
#' @usage
#' getSpecificMut()
#'
#' @return a a dataframe with specific mutation informations
#' @export
#'
#' @examples
#' load(paste(path.package("canceR"),"/data/ucec_tcga_pubGSEA1021.RData", sep=""))
#' \dontrun{
#' getSpecificMut()
#' }
#' 
getSpecificMut <- function(){
    
    
    tclRequire("BWidget")
    tclRequire("Tktable")
    
    
        testCheckedCaseGenProf()
    
    
        
        Lchecked_Studies <- myGlobalEnv$lchecked_Studies_forCases
        Lchecked_Cases <- length(myGlobalEnv$curselectCases)
        Lchecked_GenProf <- length(myGlobalEnv$curselectGenProfs)
        ###########################################################
        MutData=0
        MutData_All <-NULL
        MutDataSub<-0
        MutDataSub_All <- NULL
        
        for(c in 1:Lchecked_Cases){
            
            GenProf<-myGlobalEnv$GenProfsRefStudies[myGlobalEnv$curselectGenProfs[c]]
            Case<- myGlobalEnv$CasesRefStudies[myGlobalEnv$curselectCases[c]]
            MutData <- getMutationData(myGlobalEnv$cgds,Case, GenProf, myGlobalEnv$GeneList)
            
            if(length(MutData[,1])==0){
                msgNoMutData=paste("No Mutation Data are Available for\n", myGlobalEnv$CasesStudies[myGlobalEnv$curselectCases[c]+1])
                tkmessageBox(message=msgNoMutData, title= paste(myGlobalEnv$StudyRefCase[c],myGlobalEnv$CasesStudies[myGlobalEnv$curselectCases[c]+1], myGlobalEnv$GenProfsStudies[myGlobalEnv$curselectCases[c]+1], sep=": "))
                
                
            } else{
                
                dialogSpecificMut(MutData, c)
                
                
                
            }
            
        }
    
}
Bioconductor-mirror/canceR documentation built on June 1, 2017, 5:24 a.m.