# Consider two sets of sequences
# query1 AGACCTAA CCC
# target1 AAGACCTAA CC
# query2 GGGTGTAA CCACCC
# target2 GGTGTAA CCAC
# Despite having different frames, query1 and query2 and clearly
# match to target1 and target2, respectively.
# One could consider splitting based on a common core sequence,
# e.g. a common TAA stop codon.
split_search(query=c( "AGACCTAACCC", "GGGTGTAACCACCC"),
target=c("AAGACCTAACC", "GGTGTAACCAC"),
query_split=c(8, 8),
target_split=c(9, 7),
edge_trim=0,
max_distance=0)
Run the code above in your browser using DataLab