Skip to content

Commit

Permalink
version 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelleman committed Dec 17, 2019
1 parent 71a8c45 commit 548230e
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions SPiPv0.5.r
Original file line number Diff line number Diff line change
Expand Up @@ -1755,10 +1755,8 @@ getOutput <- function(){
mutInPBareaBPP = getBPParea(varPos,transcript,genome)
}

varType <<- varType
tmpTableSeqNoPhyMut = tmpTableSeq[tmpTableSeq$Physio!="Yes" & tmpTableSeq$seqType == "Mut",]

chr <- chr
strand <- sens
gNomen <- varPos[1]
NearestSS <- SstypePhy
Expand All @@ -1773,12 +1771,7 @@ getOutput <- function(){
}else{
print("erreur varpos")
}
RegType <- RegType
seqPhysio <- seqPhysio
seqMutated <- seqMutated
SPiCEproba <- SPiCEproba
SPiCEinter_2thr <- SPiCEinter_2thr
deltaMES <- deltaMES
gene <- as.character(dataRefSeq$V13[dataRefSeq$V4==transcript])
mutInPBarea <- mutInPBareaBPP
deltaESRscore <- ESRscore

Expand Down Expand Up @@ -1824,10 +1817,7 @@ getOutput <- function(){
if(nrow(tmpTableSeqPhyMut)>0){
probaSSPhysioMut <- tmpTableSeqPhyMut$proba[1]
classProbaSSPhysioMut <- tmpTableSeqPhyMut$classProba[1]
}else{
probaSSPhysioMut <- 0
classProbaSSPhysioMut <- "No"
}
}
}else{
posCryptMut <- 0
sstypeCryptMut <- "No site"
Expand All @@ -1849,7 +1839,7 @@ getOutput <- function(){
Interpretation <- interpretation
InterConfident <- getPredConfident(interpretation, RegType, distSS, SstypePhy)

result <<- c(Interpretation, InterConfident, chr, strand, gNomen, seqPhysio, seqMutated, NearestSS, DistSS, RegType,
result <<- c(Interpretation, InterConfident, chr, strand, gNomen, varType, ntChange, transcript, gene, NearestSS, DistSS, RegType, seqPhysio, seqMutated,
SPiCEproba, SPiCEinter_2thr, deltaMES, mutInPBarea, deltaESRscore, posCryptMut, sstypeCryptMut, probaCryptMut,
classProbaCryptMut, nearestSStoCrypt, nearestPosSStoCrypt, nearestDistSStoCrypt, posCryptWT, probaCryptWT,
classProbaCryptWT, posSSPhysio, probaSSPhysio, classProbaSSPhysio, probaSSPhysioMut, classProbaSSPhysioMut)
Expand Down Expand Up @@ -2000,9 +1990,10 @@ if(!is.null(data)){
rawResult = mcmapply(FUN = SPiP, data[,"varID"],1:nrow(data), mc.cores = threads, mc.preschedule = TRUE)
message(paste("\n",sub("CET",":",Sys.time(),fixed=T),"Write results..."))

colNames <- paste(c(columNames, "Interpretation", "InterConfident", "chr", "strand", "gNomen", "seqPhysio", "seqMutated", "NearestSS",
"distSS", "RegType", "SPiCEproba", "SPiCEinter_2thr", "deltaMES", "mutInPBarea", "deltaESRscore", "posCryptMut", "sstypeCryptMut",
"probaCryptMut", "classProbaCryptMut", "nearestSStoCrypt", "nearestPosSStoCrypt", "nearestDistSStoCrypt", "posCryptWT", "probaCryptWT",
colNames <- paste(c(columNames, "Interpretation", "InterConfident", "chr", "strand", "gNomen", "varType", "ntChange",
"transcript", "gene", "NearestSS", "DistSS", "RegType", "seqPhysio", "seqMutated",
"SPiCEproba", "SPiCEinter_2thr", "deltaMES", "mutInPBarea", "deltaESRscore", "posCryptMut", "sstypeCryptMut", "probaCryptMut",
"classProbaCryptMut", "nearestSStoCrypt", "nearestPosSStoCrypt", "nearestDistSStoCrypt", "posCryptWT", "probaCryptWT",
"classProbaCryptWT", "posSSPhysio", "probaSSPhysio", "classProbaSSPhysio", "probaSSPhysioMut", "classProbaSSPhysioMut"),collapse="\t")

if(printHead){output<-file(outputFile,"a")}else{output<-file(outputFile,"w")}
Expand Down

0 comments on commit 548230e

Please sign in to comment.