Learn R Programming

mappoly (version 0.2.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 (default), it plots markers or individuals vs. frequency of missing data

Examples

Run this code
# NOT RUN {
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