fastGWAS_ColSums: Get colsums needed for fast GWAS

View source: R/fastGWASDS.R

fastGWAS_ColSumsR Documentation

Get colsums needed for fast GWAS

Description

Get colsums needed for fast GWAS

Usage

fastGWAS_ColSums(
  table1,
  type,
  do.par = FALSE,
  n.cores = NULL,
  means = NULL,
  pheno = NULL,
  geno = NULL
)

Arguments

table1

numeric vector To be squared or multiplied to genoData, depending on type

type

character ["square_vect"] to square and sum table1 or ["GWASsums"] to get all the colsums needed for fast GWAS

do.par

bool Whether to use parallelization on the servers, to do so the servers have to have the package doParallel installed and run on a POSIX OS (Mac, Linux, Unix, BSD); Windows is not supported. This parallelization computes in parallel each genoData object, therefore it is only useful when the genoData is divided by chromosome.

n.cores

numeric Numbers of cores to use when do.par is TRUE. If NULL the number of cores used will be the maximum available minus one.

means

numeric vector of geno means by individual

pheno

PhenoInfoTable Pheno data

geno

GenotypeBlockIterator Genotype information

Value

numeric vectors


isglobal-brge/dsOmics documentation built on Nov. 11, 2024, 4:18 a.m.