createBaseline creates and initialize a Baseline object.
createBaseline(description = "", db = data.frame(), regionDefinition = createRegionDefinition(), testStatistic = "", regions = NULL, numbOfSeqs = matrix(), binomK = matrix(), binomN = matrix(), binomP = matrix(), pdfs = list(), stats = data.frame())character providing general information regarding the
sequences, selection analysis and/or object.data.frame containing annotation information about
the sequences and selection results.character indicating the statistical framework
used to test for selection. For example, "local" or
"focused" or "imbalance".character vector defining the regions the BASELINe
analysis was carried out on. For "CDR" and "FWR"
or "CDR1", "CDR2", "CDR3", etc. If NULL
then regions will be determined automatically from regionDefinition.matrix of dimensions r x c containing the number of
sequences or PDFs in each region, where:
r = number of rows = number of groups or sequences.
c = number of columns = number of regions.matrix of dimensions r x c containing the number of
successes in the binomial trials in each region, where:
r = number of rows = number of groups or sequences.
c = number of columns = number of regions.matrix of dimensions r x c containing the total
number of trials in the binomial in each region, where:
r = number of rows = number of groups or sequences.
c = number of columns = number of regions.matrix of dimensions r x c containing the probability
of success in one binomial trial in each region, where:
r = number of rows = number of groups or sequences.
c = number of columns = number of regions.list of matrices containing PDFs with one item for each
defined region (e.g. "CDR" and "FWR"). Matrices have dimensions
r x c dementions, where:
r = number of rows = number of sequences or groups.
c = number of columns = length of the PDF (default 4001).data.frame of BASELINe statistics,
including: selection strength (Sigma), 95% confidence
intervals, and P values.Baseline object.
Baseline object. The testStatistic indicates the statistical framework used to test for selection.
For example,
local = CDR_R / (CDR_R + CDR_S).
focused = CDR_R / (CDR_R + CDR_S + FWR_S).
immbalance = CDR_R + CDR_s / (CDR_R + CDR_S + FWR_S + FWR_R)
For focused the regionDefinition must only contain two regions. If more
than two regions are defined, then the local test statistic will be used.
For further information on the frame of these tests see Uduman et al. (2011).
# Creates an empty Baseline object
createBaseline()
Run the code above in your browser using DataLab