Consider the read start in the Cys location
This commit is contained in:
parent
e4189cab01
commit
2058fc96d7
|
@ -110,8 +110,9 @@ get_cys_coordinates <- function(alignment) {
|
||||||
insertion <- unlist(Biostrings::insertion(alignment))
|
insertion <- unlist(Biostrings::insertion(alignment))
|
||||||
deletion <- unlist(Biostrings::deletion(alignment))
|
deletion <- unlist(Biostrings::deletion(alignment))
|
||||||
delta_coordinates <- handle_indels(insertion, deletion, cys, alignment)
|
delta_coordinates <- handle_indels(insertion, deletion, cys, alignment)
|
||||||
cys_start <- cys$start + delta_coordinates$start
|
read_start <- unlist(start(Biostrings::Views(alignment)))
|
||||||
cys_end <- cys$end + delta_coordinates$end
|
cys_start <- cys$start + delta_coordinates$start + read_start - 1
|
||||||
|
cys_end <- cys$end + delta_coordinates$end + read_start
|
||||||
return(list("start" = cys_start, "end" = cys_end))
|
return(list("start" = cys_start, "end" = cys_end))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue