Description Usage Arguments Value See Also Examples
twas
returns a model fit from two data sets from different
subjects: one set of transcriptome data and the other of trait
data. twas
iteratively fits the trait data to the subjects
in the transcriptome data and vice versa, until convergence.
1 2 3 4 |
transcriptome |
a data frame of expression levels for one or more genes. Each row is a subject. There is one ID column and the remaining columns are genes. Expression values are non-negative integers. |
traits |
a data frame of one or more traits. Each row is a subject. There is one ID column and the remaining columns are traits. Trait values are numeric. |
tx.genotypes |
a data frame of genotypes for the transcriptome
subjects. Each row is a subject. There is one ID column with the
same name as used in |
trait.genotypes |
a data frame of genotypes for the trait
subjects. Each row is a subject. There is one ID column with the
same name as used in |
gene |
a character identifying the column in
|
trait.names |
a character vector of one or more column names
in |
markers |
a character vector of the names of the markers to
use for analysis. Defaults to the shared marker names in
|
LD.reduction |
a logical scalar or a function to perform LD
reduction. If true, then the SNPRelate package will be used on the
genotypes of the two data sets for the specified
|
tx.id.col |
the index or name of the column containing the
subject ID in the |
trait.id.col |
the index or name of the column containing the
subject ID in the |
tx.max |
an integer representing the maximum possible
transcript count value to model. The default is the maximum
observed value in |
rounds |
an integer for the maximum number of EM steps. Default is 1000. |
epsilon |
a numeric for the EM stopping condition. If the
absolute difference is less than |
tiny.weights |
a numeric. Any weights that are less than or
equal to |
show.progress |
a logical indicating whether to display progress
during EM iterations. If the |
A list object containing the fit expression levels and trait values for all subjects in a single data frame (data), each model parameter (gamma, beta, eta), and the variance and p-value of the test statistic for each parameter.
twas.tx
, twas.traits
and
twas.gene.markers
for examples of the necessary
data formats.
1 2 3 4 | twas(twas.tx$transcriptome, twas.traits$traits,
twas.tx$genotypes, twas.traits$genotypes,
gene="LRRC16A", trait.names="logIL6",
markers=twas.gene.markers$LRRC16A)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.