Extract and set the information on loci from a gen_tibble
.
Usage
show_loci(.x, ...)
# S3 method for class 'tbl_df'
show_loci(.x, ...)
# S3 method for class 'vctrs_bigSNP'
show_loci(.x, ...)
show_loci(.x) <- value
# S3 method for class 'tbl_df'
show_loci(.x) <- value
# S3 method for class 'vctrs_bigSNP'
show_loci(.x) <- value
Arguments
- .x
a vector of class
vctrs_bigSNP
(usually thegenotype
column of agen_tibble
object), or agen_tibble
.- ...
currently unused.
- value
a data.frame or tibble of loci information to replace the current one.
Value
a tibble::tibble
of information (see gen_tibble
for details
on compulsory columns that will always be present)
Examples
example_gt <- example_gt("gen_tbl")
example_gt %>% show_loci()
#> # A tibble: 6 × 8
#> big_index name chromosome position genetic_dist allele_ref allele_alt chr_int
#> <int> <chr> <chr> <int> <dbl> <chr> <chr> <int>
#> 1 1 rs1 chr1 3 0 A T 1
#> 2 2 rs2 chr1 5 0 T C 1
#> 3 3 rs3 chr1 65 0 C NA 1
#> 4 4 rs4 chr1 343 0 G C 1
#> 5 5 rs5 chr2 23 0 C G 2
#> 6 6 rs6 chr2 456 0 T A 2