You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sRNACharP.nf
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -337,9 +337,15 @@ process createAttributeTable{
337
337
#!/usr/bin/env Rscript
338
338
339
339
selectClosestORF <- function(m, up = TRUE){
340
-
# if there is only one close ORF, return it
340
+
# There is only one close ORF
341
341
if (nrow(m) < 2) {
342
-
return(m)
342
+
if (m[,"Distance"] == -1 && m[,7] == ".") { ## there is no close Feature Replicon == . and BedTools has returned -1 as distance, then make distance 1000
343
+
tmp <-m
344
+
tmp[,"Distance"] <- 1000
345
+
return(tmp)
346
+
} else {
347
+
return(m)
348
+
}
343
349
}
344
350
#order by distance
345
351
o <- order(abs(m[,"Distance"]), decreasing = FALSE)
0 commit comments