Description:
These are internal functions.
PARn calculates population attributable risk (PAR) for a list of frequencies and relative risks (RRs).
HapDesign and HapFreqSE both accept a haplo.em object to derieve a design/dosage matrix and standard error of haplotype frequency estimates. The former is appropriate for haplotype trend regression (HTR), e.g., within the generalized linear model (GLM) framework to be equivllant to a formal approach as implemented in the package haplo.stats and hap.score. However, they are expected to be compatible with objects from gc.em() gc.em and hap.em. The two functions are included as courtesy of Prof Andrea Foulkes from the useR!2008 tutorial.
a2g gives allele-to-genotype conversion.
chr_pos_a1_a2 produces SNPID format.
circos.cnvplot produces circos plot of CNVs
circos.cis.vs.trans.plot gives circos plot of cis/trans classification
circos.mhtplot generates circos Manhattan plot with gene annotation
cis.vs.trans.classification classifies hits, usually SNPs with associate id and (b)ase-(p)air position, to be cis or trans according to a panel which contains id, chr, start, end, gene variables.
cnvplot is a cutomised function to plot CNVs genomewide
cs is for calculation of credible set.
g2a returns two alleles according to a genotype identifier.
g2a.c is the C version of g2c.
gc.control is used by gc.em().
gc.lambda estimates the genomic control inflation statistic (lambda)
gcode is as a2g.
grec2g is undocumented.
h2G is a utility function for heritability
h2GE is a utility function for heritability involving gene-environment interaction
h2l is a utility function for converting observed heritability to its counterpart under liability threshold model
hap.control is used by hap.em().
hap.score.glm, hap.score.podds are used by hap.score().
invlogit, inverse logit transformation.
inv_chr_pos_a1_a2 is the inverse function of chr_pos_a1_a2.
invnormal, inverse normal transformation.
is.miss is undocumented.
KCC calculates disease prevalences in cases and controls for a given genotype relative risk, allele frequency and prevalencen of the disease in the whole population. It is used by tscc and pbsize2.
k obtains 1st and 2nd order culumants for correlation coefficient.
log10p is log10(p) for a normal deviate
logp is log(p) for a normal deviate
m2plem is an experimental function for PLEM format.
mhtplot2d is for 2D Manhattan plot
miamiplot is for Miami plot.
micombine is used to combine imputation results.
plem2m is also experimental for PLEM format.
ReadGRM is a function to read GCTA grm.gz and grm.id file
ReadGRMPLINK is a function to read PLINK PI_HAT as a genomic relationship matrix
ReadGRMPCA is a function to read .eigenval and .eigenvec files from gcta –pca
ReadGRMBin is a function to read GCTA grm.bin files, modified from GCTA documentation
revhap recovers the allele indices for a given haplotype ID in a multiallelic system.
revhap.i is similar to revhap.
snptest_sample generates a sample file for SNPTEST.
solve.skol is a function used by tscc.
toETDT a function used to experiment with ETDT.
ungcode recovers alleles from genotype(s).
VR is a utility function for calculating variance of a ratio
WriteGRM is a utility function to write GCTA grm.gz and grm.id files
WriteGRMBin is a utility function to write GCTA grm.bin files
WriteGRMSAS is a utility function to write a GRM object to SAS PROCs MIXED/GLIMMIX ldata
x2 is a simple chi-squared test of two proportions.
z is a normal z-test of two proportions used by tscc.