find.outliers: This identifies all of the SNPs outside of the smoothed...

Description Usage Arguments Value Examples

View source: R/fsthet.R

Description

This identifies all of the SNPs outside of the smoothed quantiles in the dataset.

Usage

1
find.outliers(df, boot.out, ci.df = NULL, file.name = NULL)

Arguments

df

Provide the dataframe with Ht and Fst values.

boot.out

Bootstrap output. You must provide this.

ci.df

List of confidence intervals. You may provide this in addition to bootstrap output to save a small amount of time.

file.name

You may provide a file name to output the outliers to a csv file. Otherwise, the function will only return the outliers.

Value

out

A list of the outlier loci

Examples

1
2
3
4
5
6
7
8
9
  
  ## Not run: 
    gfile<-system.file("extdata", "example.genepop.txt",package = 'fsthet')
    gpop<-my.read.gpop(gfile)
    fsts<-calc.actual.fst(gpop)
    boot.out<-as.data.frame(t(replicate(10, fst.boot(gpop))))
    outliers<-find.outliers(fsts,boot.out)
  
## End(Not run)

fsthet documentation built on March 21, 2018, 1:04 a.m.