Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

count_snps

Count the number/proportion of present/missing sites in each sample


Description

Count the number/proportion of present/missing sites in each sample

Usage

count_snps(data, missing = FALSE, prop = FALSE)

Arguments

data

EIGENSTRAT data object.

missing

Count present SNPs or missing SNPs?

prop

Calculate the proportion instead of counts?

Value

A data.frame object with SNP counts/proportions.

Examples

## Not run: snps <- eigenstrat(download_data(dirname = tempdir()))

present_count <- count_snps(snps)
missing_count <- count_snps(snps, missing = TRUE)

present_proportion <- count_snps(snps, prop = TRUE)
missing_proportion <- count_snps(snps, missing = TRUE, prop = TRUE)

## End(Not run)

admixr

An Interface for Running 'ADMIXTOOLS' Analyses

v0.9.1
MIT + file LICENSE
Authors
Martin Petr [aut, cre] (<https://orcid.org/0000-0003-4879-8421>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.