R: Parallel for the pairwise statistics derived from each pair...

type4.p {ParallABEL}R Documentation

Parallel for the pairwise statistics derived from each pair of SNP

Description

Parallel for pairwise statistics derived from each pair of SNP, e.g. linkage disequilibrium characterisation

Usage

type4.p(npro,fun,data,data_f,output_f,...)

Arguments

npro number of processors on compute nodes
fun function name will be processed such as r2fast
data object of snp.data-class
data_f file name that was saved the input object of snp.data-class, the object must be named "data"
output_f a file will be saved the outputs
... further arguments passed to function of fun argument

Author(s)

Unitsa Sangket, Yurii S. Aulchenko and Surakameth Mahasirimongkol

Examples

# Example 1 (summit job on R)
################################################
#clear working space
rm(list = ls())

library(GenABEL)
library(ParallABEL)
data(srdta)
data <- srdta[,] 
npro=2 # npro = number of processors
output_f="output_type4_r2fast_c3" 
fun=r2fast

output.p = type4.p(npro,fun,data,output_f=output_f)

# You can load the output from output_type4_r2fast_c3.Rdata
mpi.quit(save="no")

#################################################

[Package ParallABEL version 0.1-0 Index]