perc.snp values missing in both case.ped AND control.ped files will be removed.
pre2.remove.genos(file.dat, case.ped, control.ped, dir.dat, dir.out,
dir.warning = dir.out, perc.snp = 10, perc.patient = 20, empty = "0/0",
num.nonsnp.col = 5)
M SNP1
M SNP2 - Space separated
- No header
- Column 1: consists of "M"
- Column 2: character SNP names
file.dat and file.ped can be found.
dir.out.
num.nonsnp.col=5, for PLINK it is 6 (due to extra disease status column).
perc.snp values missing in both case.ped AND control.ped files will be removed.
All patients that have more than perc.patient values missing will have their IDs written into "warning.case.ped and control.ped files in dir.out directory, and optionally the warning files in dir.warning directory.
The following files will be saved after the program is run:
-.removed.dat - the .dat file containing only the SNPs that were not removed, will be placed in dir.out directory - .removed.ped - the CASE .ped file without columns that contain too many missing values based on the thresholds perc.snp; in dir.out directory - .removed.ped - the CONTROL .ped file without columns that contain too many missing values based on the thresholds perc.snp; in dir.out directory
- warning.
pre1.plink2mach, pre1.plink2mach.batch,
pre2.remove.genos.batch, pre3.call.mach,
pre3.call.mach.batch
print("See the demo 'gendemo'.")
Run the code above in your browser using DataLab