powered by
Estimate missingness for each individual (i.e. the frequency of missing genotypes in an individual).
indiv_missingness(.x, as_counts, block_size, ...)# S3 method for tbl_df indiv_missingness( .x, as_counts = FALSE, block_size = bigstatsr::block_size(nrow(.x), 1), ... )# S3 method for vctrs_bigSNP indiv_missingness( .x, as_counts = FALSE, block_size = bigstatsr::block_size(length(.x), 1), ... )
# S3 method for tbl_df indiv_missingness( .x, as_counts = FALSE, block_size = bigstatsr::block_size(nrow(.x), 1), ... )
# S3 method for vctrs_bigSNP indiv_missingness( .x, as_counts = FALSE, block_size = bigstatsr::block_size(length(.x), 1), ... )
a vector of missingness, one per individuals in the gen_tibble
gen_tibble
a vector of class vctrs_bigSNP (usually the genotype column of a gen_tibble object), or a gen_tibble.
vctrs_bigSNP
genotype
boolean defining whether the count of NAs (rather than the rate) should be returned. It defaults to FALSE (i.e. rates are returned by default).
maximum number of loci read at once.
currently unused.
example_gt <- load_example_gt("gen_tbl") example_gt %>% indiv_missingness() # For missingness as counts: example_gt %>% indiv_missingness(as_counts = TRUE)
Run the code above in your browser using DataLab