filter.samples {DOQTL} | R Documentation |
This function reads in "x.txt", "y.txt", "geno.txt" and "call.rate.batch.txt" from the user specified input directory and removes samples with a call rate less than the supplied threshold (default = 0.9). It then writes the files out to "x.filt.txt", "y.filt.txt", "geno.filt.txt" and "call.rate.batch.filt.txt".
filter.samples(path = ".", thr = 0.9)
path |
Character, the full path to the directory where the files reside. |
thr |
Numeric, call rate threshold below which samples will be removed. Default = 0.9. |
data.frame with the sample IDs and call rates of the removed samples. The intensity and genotype files are written to the input directory.
Daniel Gatti
extract.raw.data
, batch.normalize
## Not run: filter.samples(path = "/tmpdir/output") ## End(Not run)