2021-10-19 13:39:55 +02:00
|
|
|
% Generated by roxygen2: do not edit by hand
|
2021-11-03 14:17:39 +01:00
|
|
|
% Please edit documentation in R/preset.R
|
2021-10-19 13:39:55 +02:00
|
|
|
\name{preset}
|
|
|
|
|
\alias{preset}
|
|
|
|
|
\title{Create a new preset.}
|
|
|
|
|
\usage{
|
2021-11-03 14:17:39 +01:00
|
|
|
preset(
|
2022-01-17 19:52:51 +01:00
|
|
|
reference_gene_ids,
|
2021-12-16 13:01:44 +01:00
|
|
|
methods = all_methods(),
|
|
|
|
|
species_ids = geposan::species$id,
|
2022-05-30 13:49:52 +02:00
|
|
|
gene_ids = geposan::genes$id,
|
|
|
|
|
species_requirement = 0.25,
|
|
|
|
|
gene_requirement = 0.5
|
2021-11-03 14:17:39 +01:00
|
|
|
)
|
2021-10-19 13:39:55 +02:00
|
|
|
}
|
|
|
|
|
\arguments{
|
2022-01-17 19:52:51 +01:00
|
|
|
\item{reference_gene_ids}{IDs of reference genes to compare to.}
|
|
|
|
|
|
2021-12-16 13:01:44 +01:00
|
|
|
\item{methods}{List of methods to apply.}
|
2021-10-19 13:39:55 +02:00
|
|
|
|
2021-11-03 14:17:39 +01:00
|
|
|
\item{species_ids}{IDs of species to include.}
|
2021-10-19 13:39:55 +02:00
|
|
|
|
2021-11-03 14:17:39 +01:00
|
|
|
\item{gene_ids}{IDs of genes to screen.}
|
2022-05-30 13:49:52 +02:00
|
|
|
|
|
|
|
|
\item{species_requirement}{The proportion of species a gene has to have
|
|
|
|
|
orthologs in in order for the gene to qualify.}
|
|
|
|
|
|
|
|
|
|
\item{gene_requirement}{The proportion of genes that a species has to have
|
|
|
|
|
in order for the species to be included in the analysis.}
|
2021-10-19 13:39:55 +02:00
|
|
|
}
|
|
|
|
|
\value{
|
|
|
|
|
The preset to use with \code{\link[=analyze]{analyze()}}.
|
|
|
|
|
}
|
|
|
|
|
\description{
|
|
|
|
|
A preset is used to specify which methods and inputs should be used for an
|
|
|
|
|
analysis. Note that the genes to process should normally include the
|
2021-11-18 12:30:19 +01:00
|
|
|
reference genes to be able to assess the results later. The genes will be
|
2022-05-30 13:49:52 +02:00
|
|
|
filtered based on how many species have data for them. Afterwards, species
|
|
|
|
|
that still have many missing genes will also be excluded. See the different
|
|
|
|
|
method functions for the available methods: \code{\link[=clustering]{clustering()}}, \code{\link[=correlation]{correlation()}},
|
|
|
|
|
\code{\link[=neural]{neural()}}, \code{\link[=adjacency]{adjacency()}} and \code{\link[=species_adjacency]{species_adjacency()}}.
|
2021-10-19 13:39:55 +02:00
|
|
|
}
|