Description Author(s) See Also Examples
This class stores the contents of the deepSNV test. It is typically initialized with deepSNV
.
This class has the following slots:
The P-values of the test.
A matrix with the nucleotide counts in the test experiment. The column names of the nucleotide counts are A, T, C, G, - for the positivie strand and a, t, c, g, _ for the reverse.
A matrix with the nucleotide counts in the control experiment. The column names must be the same as for the test.
A data.frame
with the genomic coordinates chr and pos, and other columns, if desired.
A matrix with the nucleotide-specific Dirichlet prior
The pseudo count if used)
A string with the alternative used in the test.
A character vector with the nucleotides tested.
A data.frame
with columns chr, start, and stop.
A list with two entries test and control storing the filenames (if the object was initialized from two bam-files).
The method for combining p-values as a character string.
The statistical model, either bin for binomial, or betabin for beta-binomial
If the model is beta-binomial, the first parameter for the beta-binomial model, which is shared across sites.
The last function call to deepSNV.
The log likelihood of the data under the null hypothesis. (Excluding zeros on the opposite site under a one-sided test.)
Moritz Gerstung
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Short example with 2 SNVs at frequency ~10%
regions <- data.frame(chr="B.FR.83.HXB2_LAI_IIIB_BRU_K034", start = 3120, stop=3140)
ex <- deepSNV(test = system.file("extdata", "test.bam", package="deepSNV"), control = system.file("extdata", "control.bam", package="deepSNV"), regions=regions, q=10)
show(ex) # show method
plot(ex) # scatter plot
summary(ex) # summary with significant SNVs
ex[1:3,] # subsetting the first three genomic positions
tail(test(ex, total=TRUE)) # retrieve the test counts on both strands
tail(control(ex, total=TRUE))
## Not run: Full example with ~ 100 SNVs. Requires an internet connection, but try yourself.
# regions <- data.frame(chr="B.FR.83.HXB2_LAI_IIIB_BRU_K034", start = 2074, stop=3585)
# HIVmix <- deepSNV(test = "http://www.bsse.ethz.ch/cbg/software/deepSNV/data/test.bam", control = "http://www.bsse.ethz.ch/cbg/software/deepSNV/data/control.bam", regions=regions, q=10)
data(HIVmix) # attach data instead..
show(HIVmix)
plot(HIVmix)
head(summary(HIVmix))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.