View source: R/qc_report_loci.R
qc_report_loci | R Documentation |
Return QC information to assess loci (MAF, missingness and HWE test).
qc_report_loci(.x, ...)
## S3 method for class 'tbl_df'
qc_report_loci(.x, ...)
## S3 method for class 'grouped_df'
qc_report_loci(.x, ...)
.x |
a |
... |
currently unused the HWE test. |
a tibble with 3 elements: maf, missingness and hwe_p
# Create a gen_tibble of lobster genotypes
bed_file <-
system.file("extdata", "lobster", "lobster.bed", package = "tidypopgen")
example_gt <- gen_tibble(bed_file,
backingfile = tempfile("lobsters"),
quiet = TRUE
)
# Get a QC report for the loci
example_gt %>% qc_report_loci()
# Group by population to calculate HWE within populations
example_gt <- example_gt %>% group_by(population)
example_gt %>% qc_report_loci()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.