print bstr class object

# S3 method for bstr
print(x, ..., n = 6L, l_name = 20L, l_seq = 40L)

Arguments

x

x

...

...

n

number of printing elements

l_name

max length of name

l_seq

max length of sequence

Examples

dstr_rand_seq(10, 20, seed = 1)
#> class: dstr,bstr,character #> number of sequences: 10 #> [1] no name 1 : CCGTATTGGAAAGCTCGTCT 20 #> [2] no name 2 : TAGACCACTCCGCATGTAGC 20 #> [3] no name 3 : TGTGGTACGGCTCAAACGGC 20 #> [4] no name 4 : TCCCGCCTATCTCCCTTCTT 20 #> [5] no name 5 : CGCCTAGAAAAAGTTTCCTG 20 #> [6] no name 6 : GCCTGAACTGTGCCAAGACG 20
astr_rand_seq(10, 20, seed = 1)
#> class: astr,bstr,character #> number of sequences: 10 #> [1] no name 1 : GIPXFWXQQCFERKTMSYIT 20 #> [2] no name 2 : XFQDGKAKWIMPMEVRTDSK 20 #> [3] no name 3 : VQTNNTAMSRMWLGCDHMQK 20 #> [4] no name 4 : XHLHQGMTCWIVIIMWWKTY 20 #> [5] no name 5 : LRKHSFRDGEGCQWTTLKVP 20 #> [6] no name 6 : QIGYQFDMXPYSILEASDLQ 20
test1 <- dstr_rand_seq(1, 20, seed = 1) test2 <- dstr_rand_seq(1, 21, seed = 1) print(test1, l_seq = 20L)
#> class: dstr,bstr,character #> number of sequences: 1 #> [1] no name 1 : CCGTATTGGAAAGCTCGTCT 20
print(test2, l_seq = 20L)
#> class: dstr,bstr,character #> number of sequences: 1 #> [1] no name 1 : CCGTATTG....CTCGTCTT 21
print(test1, l_name = 9L)
#> class: dstr,bstr,character #> number of sequences: 1 #> [1] no name 1: CCGTATTGGAAAGCTCGTCT 20
print(test1, l_name = 8L)
#> class: dstr,bstr,character #> number of sequences: 1 #> [1] no na...: CCGTATTGGAAAGCTCGTCT 20
dstr_rand_seq(10, 20, seed = 1) %>% print(n = 20L)
#> class: dstr,bstr,character #> number of sequences: 10 #> [1 ] no name 1 : CCGTATTGGAAAGCTCGTCT 20 #> [2 ] no name 2 : TAGACCACTCCGCATGTAGC 20 #> [3 ] no name 3 : TGTGGTACGGCTCAAACGGC 20 #> [4 ] no name 4 : TCCCGCCTATCTCCCTTCTT 20 #> [5 ] no name 5 : CGCCTAGAAAAAGTTTCCTG 20 #> [6 ] no name 6 : GCCTGAACTGTGCCAAGACG 20 #> [7 ] no name 7 : TCCATCGAAGGAAGTGGGTG 20 #> [8 ] no name 8 : GGACGCAGATGGCCGAGACA 20 #> [9 ] no name 9 : CTCTTCACGCGTTCCTGGGT 20 #> [10] no name 10 : CATGTATGTGGCATCGATCT 20