Description Usage Arguments Value
View source: R/data_preparation.R
This functions prepares sequencing data sets for a MeDeCom run.
1 2 3 4 5 6 7 8 9 | 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_SOMATIC = TRUE)
|
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_SOMATIC |
Flag indicating if only somatic probes are to be kept. |
A list with four elements:
quality.filter The indices of the sites that survived quality filtering
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.