Return QC information to assess loci (MAF, missingness and HWE test).
Usage
qc_report_loci(.x, ...)
# S3 method for class 'tbl_df'
qc_report_loci(.x, ...)
# S3 method for class 'grouped_df'
qc_report_loci(.x, ...)
Arguments
- .x
a
gen_tibble
object.- ...
currently unused the HWE test.
Examples
example_gt <- example_gt("grouped_gen_tbl")
example_gt %>% qc_report_loci()
#> # A tibble: 6 × 4
#> snp_id maf missingness hwe_p
#> <chr> <dbl> <dbl> <dbl>
#> 1 rs1 0.5 0 1.5
#> 2 rs2 0.417 0.143 1.5
#> 3 rs3 0.0714 0 1.5
#> 4 rs4 0.25 0.143 1.5
#> 5 rs5 0.417 0.143 1.5
#> 6 rs6 0.25 0.143 1.5