Description Usage Arguments Value Author(s) See Also Examples
View source: R/genomic_region_subgroup_specificity.R
Find subgroup specific regions
1 | subgroup_specific_genomic_regions(gr, subgroup, present = 0.7, absent = 0.3, type = NULL)
|
gr |
a |
subgroup |
subgroup information which corresponds to samples in |
present |
how to define a common region that is specifically present in one subgroup. The subgroup specificity is calculated based on the precent matrix stored in |
absent |
how to define a common region is specifically absent in one subgroup. Format is same as |
type |
It uses a string containing 1 and 0 to represent types of specificity. E.g. '1100' means present in subgroup 1 and 2 while absent in subgroup 3 and 4. By default, it will output all combination of subgroup specificities. |
This function splits the original gr
into a list in which each element
contains regions corresponding to different subgroup specificity.
Zuguang Gu <z.gu@dkfz.de>
The returned value can be sent to heatmap_subgroup_specificity
to visualize the specificity.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# following two calls are basically the same
subgroup_specific_genomic_regions(gr, subgroup,
present = 0.7, absent = 0.3)
subgroup_specific_genomic_regions(gr, subgroup,
present = function(x) mean(x) >= 0.7,
absent = function(x) mean(x) <= 0.3)
## End(Not run)
NULL
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.