preGSf90

How do OPTIONs work?

OPTIONs for G

OPTION whichG x

    Specifies how G is created. The variable x can be:

    1: G=ZZ'/k ; as in VanRaden 2008 (default)

    2: Amin et al; Leuttenger et al; using MMP subroutines with Z = M*sqrt(w) => ZWZ'/k

    3: As 3 with modification UAR from Yang et al 2010

OPTION whichfreq x

    Specifies what frequencies are used to create G. The variable x can be:

    0: Read from file as specified in option FreqFile

    1: 0.5

    2: Current calcuated from genotypes(default)

OPTION FreqFile file

    Reads frequency from a file, for example based on allele frequencies calculated by estfreq.f90 (VanRaden, 2009)

    Format : snp, freq

OPTION whichScale x

    Specifies how G is scaled. The variable x can be:

    1: 2sum(p(1-p) - VanRaden 2008 (default)

    2: Trace(ZZ')/n - Legarra 2009, Hayes 2009

    3: Correction - Gianola et al 2009

OPTION maxsnps x

    Set the maximum length of string for reading marker data from file, only necessary if greater than default (400,000)

OPTION weightedG x

    Reads weight from file to create weighted G = ZDZ'

Quality Control for G

OPTION minfreq x

    Specifies how G is created. The variable x can be:

OPTION callrate x

    Specifies what frequencies are used to create G. The variable x can be:

OPTION callrateAnim x

    Reads frequency from a file, for example based on allele frequencies calculated by estfreq.f90 (VanRaden, 2009)

OPTION monomorphic x

    Specifies how G is scaled. The variable x can be:

OPTION hxe x

    Set the maximum length of string for reading marker data from file, only necessary if greater than default (400,000)

OPTION high_correlation x

    Check for high correlated locus, by default this QC is not run optional parameter x set the maximum difference in allele frequency to check pair of locus, if no value 0.025 is used. A pair of locus is consider high correlated if the genotypes were all the same (0-0, 1-1, 2-2) or the opposite (0-2, 1-1, 2-0) (Wiggans et al 2009 JDS)

OPTION verify_parentage x

    Verify parent-progeny Mendelian conflicts. Write report to file. Gen_conflicts. Option x could be:

    0: No action

    1: Only detect

    2: Detect and search for an alternate parent; no change to any file. Not yet implemented

    3: Detect and elminate animals with conflicts (default)

OPTION exclusion_threshold x

    Number of parent-progeny exclusions as precentage all SNP for determining wrong relationship (default = 2)

OPTION exclusion_threshold_snp x

    Number of parent-progeny exclusions for each locus as precentage all genotyped animals to exclude an SNP from the analysis (default = 10)

OPTION excludeCHR n1 n2 n3 ...

    Exclude chromosomes n1 n2 n3 ... Map file need to be provided. See OPTION chrinfo

OPTION sex_chr x

    Chromosomes greater than n are consider not autosomes.

    Checks for parent-progeny Mendeliand and HWE exclude sex chromosomes.

Map file need to be provided. See OPTION chrinfo.

OPTION thrWarnCorAG x

    Set the threshold to issue a warning if cor(A22,G) < x (default 0.5)

OPTION thrStopCorAG x

    Set the threshold to Stop the analysis if cor(A22,G) < x (default 0.3)

OPTION thrCorAG x

    Set the threshold to calculate corr(A22,G) for only A22 >= x (default 0.02)

Options for H

Options include different weights to to create GimA22i as

    tau inv(alpha G + beta A22 + gamma I + delta) - omega inv(A22)

    where the parameters are to scale the genomic info to be compatioble with the pedigree info, to make matrices invertible in the presence of clones, and to control bias. The defaults are:

    tau=1 alpha =0.95 beta = 0.05 gamma=0 delta=0 omega=1

Options to change these defaults are specified as:

OPTION TauOmega tau omega

OPTION AlphaBeta alpha beta

OPTION GammaDelta gamma delta

OPTION tunedG x

Scale G based on A22. The variable x can be (default=2):

    0: No scaling

    1: Mean(diag(G))=1, mean(offdiag(G))=0

    2: Mean(diag(G))=mean(diag(A22)), mean(offdiag(G))=mean(offdiag(A22))

    3: Mean(G)=mean(A22)

    4: Rescale G as in Powell et al. (2010) or Vitezica et al. (2011); same as adjustment by Fst

Miscellaneous options

OPTION nthreads x

    Specify number of Threads to be used with MKL-OpenMP

OPTION nthreadsiod x

    Specify number of Threads to be used with MKL-OpenMP.Option used if Matrix-Vector multiplication in pcg are done with MKL subroutines.

OPTION graphics s

    Allows to generate Gnuplot graphics. Avoid using in batch programs. If present optional parameter s, set the time in seconds to show the plot.

OPTION plotsnp x

    Control the values of SNP effects to use in Manhatan plots

    1: Plot regular SNP effects: abs(val)

    2: Plot standarized SNP effecst: abs(val/sd) (default)

OPTION SNP_moving_average file

    Solutions for SNP effects will be by moving averege of 30 adjacents SNPs. Optional parameter n set new windows size to calculate average.

OPTION chrinfo file

    Read SNP map information to do GWAS in postGSf90, mandatory columns (numeric) are: snp number, chr, position. Other alphanumeric field are optional, and if option saveCleanSNPs is present fields are output. First line in file corresponds to firs SNP in genotype file, etc. No specific order is neccessary.

OPTION msg x

    Set level of verbose 0 none

OPTION whichMatVecMult x

    Control del method to multiply matrix-vector in blup90iod2 iterations

    1: mult from FSPAK90

    2: dsymv from LAPACK ( default, require link with MKL/ATLAS,etc, if not matmul will be used)

    3: dgemv as before

    4: dsymm as before

    5: dgemm as before

    6: matmul for timing comparison

Save and Read file options

OPTION saveHinv

    Save H inverse matrix in Hinv.txt form: i,j,val with IDs renumbered by RENUMF90

OPTION saveHinvOrig

    As above but with original IDs

OPTION saveDiagGOrig

    Save diagonal of G matrix in DiagGOrig.txt form: id, val with original IDs

OPTION saveGOrig

    Save G matrix in G_Orig.txt form: id_i, id_j, val with original IDs

OPTION saveA22Orig

    Save A22 matrix in A22_Orig.txt form: id_i, id_j, val with original IDs

OPTION saveAscii

    Save files as ASCII (default=binary)

OPTION savePLINK

    Save Genotyped in PLINK format; files: toPLINK.ped and toPLINK.map

OPTION readG file

OPTION readGInverse file

OPTION readA22 file

OPTION readA22Inverse file

OPTION readGmA22 file

OPTION readGimA22i file

OPTION saveA22

OPTION saveA22Inverse

OPTION saveG all

    If optional all is present, all intermediate matrices for G are saved

OPTION saveA22Inverse

OPTION saveGIncerse

OPTION saveGmA22Inverse

OPTION saveGmA22

OPTION creaeG 0 or 1 (create)

OPTION creaeGInverse 0 or 1 (create)

OPTION creaeA22 0 or 1 (create)

OPTION creaeA22Inverse 0 or 1 (create)

OPTION creaeGmA22 0 or 1 (create)

OPTION creaeGimA22i 0 or 1 (create)

Need more examples?