Calculates the weight W of a set of genes, defined as the weighted difference between their total coverage and coverage overlap.
Parameters: |
|
---|---|
Returns: | weight W |
Example:
>>> h = { "g1" : [3, 4, 5], "g2" : [1, 2, 3], "g3" : [5, 6, 7]}
>>> gset = ["g1", "g2", "g3"]
>>> W(h, gset, 2)
5