View source: R/data_preparation.R
prepare.data.BS | R Documentation |
This functions prepares sequencing data sets for a MeDeCom run.
prepare.data.BS(
rnb.set,
work.dir = getwd(),
analysis.name = "analysis",
sample.selection.col = NA,
sample.selection.grep = NA,
ref.ct.column = NA,
pheno.columns = NA,
prepare.true.proportions = FALSE,
true.A.token = NA,
houseman.A.token = NA,
id.column = rnb.getOption("identifiers.column"),
filter.coverage = hasCovg(rnb.set),
min.coverage = 5,
min.covg.quant = 0.05,
max.covg.quant = 0.95,
filter.na = TRUE,
filter.snp = TRUE,
snp.list = NULL,
filter.sex.chromosomes = TRUE,
execute.lump = FALSE
)
rnb.set |
An object of type |
work.dir |
A path to a existing directory, in which the results are to be stored |
analysis.name |
A string representing the dataset for which analysis is to be performed. Only used to create a folder with a descriptive name of the analysis. |
sample.selection.col |
A column name in the phenotypic table of |
sample.selection.grep |
A string used for selecting samples in the column |
ref.ct.column |
Column name in |
pheno.columns |
Vector of column names in the phenotypic table of |
prepare.true.proportions |
Flag indicating if true proportions are either available in |
true.A.token |
String present in the column names of |
houseman.A.token |
Similar to |
id.column |
Sample-specific ID column name in |
filter.coverage |
Flag indicating, if site-filtering based on coverage is to be conducted. |
min.coverage |
Minimum number of reads required in each sample for the site to be considered for adding to MeDeCom. |
min.covg.quant |
Lower quantile of coverages. Values lower than this value will be ignored for analysis. |
max.covg.quant |
Upper quantile of coverages. Values higher than this value will be ignored for analysis. |
filter.na |
Flag indicating if sites with any missing values are to be removed or not. |
filter.snp |
Flag indicating if annotated SNPs are to be removed from the list of sites according to RnBeads' SNP list. |
snp.list |
Path to a file containing positions of known SNPs to be removed from the analysis, if |
filter.sex.chromosomes |
Flag indicating if only somatic probes are to be kept. |
execute.lump |
Flag indicating if the LUMP algorithm is to be used for estimating the amount of immune cells in a particular sample. |
A list with four elements:
quality.filter The indices of the sites that survived quality filtering
Michael Scherer, Pavlo Lutsik
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.