pre3.call.mach
, only it provides an easier way to set function input parameters. This is the only .batch function that does NOT run on all files. Since MaCH computation on each chromosome takes too long, it is faster to process chromosomes in parallel, rather than sequentially. This function imputes all missing values, for details, see pre3.call.mach
. NOTE: In this implementation, do NOT run "with Hapmap" - so do NOT provide phases and legend files.
pre3.call.mach.batch(dir.file, dir.ref = "", dir.out, prefix.dat, prefix.ped,
prefix.phase = "", prefix.legend = prefix.phase, prefix.out = "result",
key.dat = "", key.ped = "", key.phase = "", key.legend = "", ending.dat = ".dat",
ending.ped = ".ped", ending.phase = ".phase", ending.legend = "legend.txt",
chrom.num, num.iters = 2, num.subjects = 200, step2.subjects = 50, empty = "0/0",
resample = FALSE, mach.loc = "/software/mach1")
pre3.call.mach
num.subjects
> 0 then the num.subjects
will be appended to the prefix name.
num.subjects
entries produced by previous runs of this algorithm with same .dat, .ped, and num.subjects
parameters. By default, if the subjects have been sampled before, they are re-used.pre3.call.mach
for details. This is the same program as pre3.call.mach
, only it provides an easier way to set function input parameters. Recall that pre3.call.mach
function requires users to specify names of .ped, .dat, .phase, and .legend for each chromosome - these files normally would have exactly same names across all chromosomes, and would only differ by the chromosome number. Thus after running pre3.call.mach
, for chromosome 1, and in order to run next chromosome (say, chrom "2"), user would need to change this chromosome number in 4 places: from "1" to "2" in .ped, .dat, .phase, and .legend. This function allows user to just change one variable chrom.num
, from "1" to "2", and all the other files will be obtained automatically.This is the only .batch function that does NOT run on all files. Since MaCH computation on each chromosome takes too long, it is faster to process chromosomes in parallel, rather than sequentially. Thus if your dataset is large, then it is recommended to run this function on different computers/nodes for different chromosomes.
pre2.remove.genos
, pre2.remove.genos.batch
,
pre3.call.mach
, pre4.combine.case.control
,
pre4.combine.case.control.batch
print("See the demo 'gendemo'.")
Run the code above in your browser using DataLab