Return reverse complement sequences

dstr_rev_comp(dstrobj)

dstr_rev_comp_fast(dstrobj)

Arguments

dstrobj

dstr object

Examples

temp <- dstr_rand_seq(3, 10, "[atgcATGC]", seed = 1) c(temp, compl = dstr_rev_comp(temp))
#> class: bstr,character #> number of sequences: 6 #> [1] no name 1 : GGatCttccA 10 #> [2] no name 2 : CCcTgTctTg 10 #> [3] no name 3 : tCcCGTATgG 10 #> [4] compl.no name 1 : TggaaGatCC 10 #> [5] compl.no name 2 : cAagAcAgGG 10 #> [6] compl.no name 3 : CcATACGgGa 10
# Fast and memory efficient verstion of dstr_rev_comp with # case conversion c(temp, compl = dstr_rev_comp_fast(temp))
#> class: bstr,character #> number of sequences: 6 #> [1] no name 1 : GGatCttccA 10 #> [2] no name 2 : CCcTgTctTg 10 #> [3] no name 3 : tCcCGTATgG 10 #> [4] compl.no name 1 : TGGAAGATCC 10 #> [5] compl.no name 2 : CAAGACAGGG 10 #> [6] compl.no name 3 : CCATACGGGA 10