filterGT | R Documentation |
Filter markers or samples that have too many missing values
filterGT(geno, min_markers = 5, min_samples = 3)
## S4 method for signature 'matrix,numeric,numeric'
filterGT(geno, min_markers = 5, min_samples = 3)
## S4 method for signature 'GRanges,numeric,numeric'
filterGT(geno, min_markers = 5, min_samples = 3)
geno |
the genotype data.frame of markers by samples from output of
function |
min_markers |
the minimum number of markers for a sample to be kept |
min_samples |
the minimum number of samples for a marker to be kept |
This function takes the geno
data.frame and filter the data.frame by
the provided cut-offs.
The filtered genotype matrix
Ruqian Lyu
data(snp_geno_gr)
corrected_geno <- filterGT(snp_geno_gr, min_markers = 30,min_samples = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.