Closed hukai916 closed 2 years ago
starts.gRNA <- subset(starts.gRNA, starts.gRNA <= (seq.len - gRNA.size + 1)) starts.gRNA <- subset(starts.gRNA, starts.gRNA > 0)
starts.gRNA can be empty, leading to https://support.bioconductor.org/p/9140582/
Fixed by adding "if (length(starts.gRNA))":
if (length(starts.gRNA)) { if (reverse.subject) { gRNAs.cut <- cbind(seq, paste( subjectname,"_gR", (seq.len - (starts.gRNA + cut.site -1 ) + 1), "r", sep = ""), (seq.len - starts.gRNA + 1), "-", extendedSequence) } else { gRNAs.cut <- cbind(seq, paste(subjectname,"_gR", (starts.gRNA + cut.site - 1), "f", sep = ""), starts.gRNA, "+", extendedSequence) } } else { gRNAs.cut <- "" }
I have done this part via a different route. Thanks though!
starts.gRNA can be empty, leading to https://support.bioconductor.org/p/9140582/
Fixed by adding "if (length(starts.gRNA))":