Skip to content

Commit cae95fe

Browse files
committed
not score variant with > 100 bp insertion
1 parent b08d669 commit cae95fe

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

RefFiles/SPiP_libs/SPiP_functions.r

100644100755
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,12 @@ getOutputToSPiPmodel <- function(varID,i,seqPhysio = "", seqMutated = ""){
12151215
}else{
12161216
tryCatch({
12171217
getVariantInfo(as.character(varID))
1218-
tmp <- getAnnotation(seqPhysio, seqMutated)
1218+
if(nchar(ntChange)<106){ # remove mutation with plus 100 bp insertion
1219+
tmp <- getAnnotation(seqPhysio, seqMutated)
1220+
}else{
1221+
message("size mutation beyond 100 bp")
1222+
tmp <- rep("NA",35)
1223+
}
12191224
return(tmp)
12201225
},
12211226
error=function(cond) {

RefFiles/SPiP_libs/SPiP_scores.r

100644100755
File mode changed.

RefFiles/SPiP_libs/SPiP_sequences.r

100644100755
File mode changed.

0 commit comments

Comments
 (0)