
SNPhood
object.counts
extracts count data from a SNPhood
object. The full count data or only a subset can be extracted
by settings the parameters type
, readGroup
and dataset
accordingly. Either the count data
for the unbinned or binned SNP regions can be extracted.
"counts"(object, type = "binned", readGroup = NULL, dataset = NULL, ...)
SNPhood
annotationReadGroups
). If only one read group is defined in the object, this may also be NULL for user conveniance.annotationDatasets
).SNPhood
, enrichment
data(SNPhood.o, package="SNPhood")
str(counts(SNPhood.o))
str(counts(SNPhood.o, readGroup = "paternal", dataset = 1))
str(counts(SNPhood.o, readGroup = c("maternal", "paternal"), dataset = 1))
Run the code above in your browser using DataLab