If we want to select elements that have some mutually exclusive variables/set what would be the best way to do so?
For instance:
These variables describe the positions of methylation. Some of them are exclusive (if one position is in a shelf it is not in an intron).
In this case the data doesn't show it up, but the shelf, promoter, island, shore and 1to5kb are mutually exclusive.
Similarly the intron, exon, exonintronboundary, intronexonboundary.
Probably a combination of combn with a function making use of any(A & B).
If we want to select elements that have some mutually exclusive variables/set what would be the best way to do so?
For instance: These variables describe the positions of methylation. Some of them are exclusive (if one position is in a shelf it is not in an intron).
If these are encoded in a matrix (like it would in BaseSet), how could one find those that are mutually exclusive?
In this case the data doesn't show it up, but the shelf, promoter, island, shore and 1to5kb are mutually exclusive. Similarly the intron, exon, exonintronboundary, intronexonboundary.
Probably a combination of
combn
with a function making use ofany(A & B)
.