sample.membership: Sample membership

Description Usage Arguments Value

Description

This function returns the membership of samples in a Structure object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
sample.membership(x, threshold, ...)

## S3 method for class 'StructureReplicate'
sample.membership(x)

## S3 method for class 'StructureResults'
sample.membership(x, threshold = NULL, ...)

## S3 method for class 'StructureAnalysis'
sample.membership(x, threshold = NULL, ...)

## S3 method for class 'StructureCollection'
sample.membership(x, threshold = NULL,
  k = x@best, ...)

Arguments

x

StructureReplicate, StructureResults, StructureAnalysis.

threshold

numeric threshold to assign samples to populations. If NULL then probabilities for each population are returned. Defaults to NULL.

...

not used.

k

numeric number of populations to assume. Defaults to the best number according to Evanno's method.

Value

integer.


jeffreyhanson/structurer documentation built on May 19, 2019, 4:01 a.m.