Learn R Programming

mappoly (version 0.3.3)

filter_missing: Filter missing genotypes

Description

Excludes markers or individuals based on their proportion of missing data

Usage

filter_missing(
  input.data,
  type = c("marker", "individual"),
  filter.thres = 0.2,
  inter = TRUE
)

Arguments

input.data

an object of class mappoly.data

type

one of the following options: 'marker'filter out markers based on their percentage of missing data (default) 'individual'filter out individuals based on their percentage of missing data Please notice that removing individuals with certain amount of data can change some marker parameters (such as depth), and can also change the estimated genotypes for other individuals. So be careful when removing individuals.

filter.thres

maximum percentage of missing data (default = 0.2)

inter

if TRUE, expects user-input to proceed with filtering

Author

Marcelo Mollinari, mmollin@ncsu.edu

Examples

Run this code
plot(tetra.solcap)
dat.filt.mrk <- filter_missing(input.data = tetra.solcap,
                               type = "marker", 
                               filter.thres = 0.1,
                               inter = TRUE)
plot(dat.filt.mrk)

Run the code above in your browser using DataLab