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

reset

Reset modifications to an EIGENSTRAT object


Description

Set 'exclude' and 'group' modifications of snp and ind files, effectively resetting the dataset into its original state.

Usage

reset(data)

Arguments

data

EIGENSTRAT data object.

Value

EIGENSTRAT data S3 object.

Examples

## Not run: # download an example genomic data set and prepare it for analysis
snps <- eigenstrat(download_data(dirname = tempdir()))

# group individual samples into larger populations, creating a new
# EIGENSTRAT R object
new_snps <- relabel(
    snps,
    European = c("French", "Sardinian"),
    African = c("Dinka", "Yoruba", "Mbuti", "Khomani_San"),
    Archaic = c("Vindija", "Altai", "Denisova")
)

# remove the population grouping in the previous step - this
# results in the same EIGENSTRAT object tht we started with
original_snps <- reset(new_snps)

## 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.