cleanData: Clean data

View source: R/cleanData.R

cleanDataR Documentation

Clean data

Description

This function prepare the data imported from ?import.txt.file for variant filtering.

Usage

cleanData(
  dataName,
  includeIDs = NULL,
  excludeIDs = NULL,
  removeMultiallelicSites = FALSE,
  remove.nocall.pct = 0.2,
  QD.threshold = 5,
  saveRData = FALSE,
  savePath = NULL,
  label = NULL
)

Arguments

dataName

Data imported by ?import.txt.file()

includeIDs

IDs of the subjects included for analyses. This must match IDs used in the imported data file.If left empty, IDs will be extracted from the first to the last

excludeIDs

IDs to be excluded from the data imported by ?import.txt.file()

removeMultiallelicSites

True=remove multi-allelic sites; FALSE=keep multiallelic sites

remove.nocall.pct

Variants with percentage of no calls larger than this value will be removed.

QD.threshold

Variants with QD smaller than this value will be removed.

saveRData

TRUE=Save the returned data frame into an RData file.

savePath

Specify save path. If not specified the data will be saved at the working directory.

label

Specify the label of the saved file.

Value

A data frame of cleaned annotated data.


vivizhou/MDfilter documentation built on May 21, 2022, 2:15 a.m.