DOSE icon indicating copy to clipboard operation
DOSE copied to clipboard

information content calculation discordance

Open ieiwk opened this issue 5 years ago • 0 comments

Prerequisites

  • [ ] Have you read Feedback and follow the guide?
    • [ ] make sure your are using the latest release version
    • [ ] read the documents
    • [ ] google your quesion/issue

Describe you issue

  • [ ] Make a reproducible example (e.g. 1)
  • [ ] your code should contain comments to describe the problem (e.g. what expected and actually happened?)

Ask in right place

  • [ ] for bugs or feature requests, post here (github issue)
  • [ ] for questions, please post to Bioconductor or Biostars with tag DOSE

To use the latest DO database, I tried to update the .DOSEEnv[[ 'DOIC']]. I first tried to see if I can correctly calculate ICs by myself, using relations among terms given by .DOSEEnv[[ 'dotbl']]. However I found that my calculations differed from attr( .DOSEEnv[[ 'DOIC']], 'IC'). I did some digging, and finally it seemed that attr( .DOSEEnv[[ 'DOIC']], 'IC') was computed by the function computeIC. I noticed that in computeIC p = cnt / sum( docount). But if I understood correctly, should the sum( docount) be length( docount) if one is to calculate IC? This question also goes for calculations of cnt.

ieiwk avatar Feb 12 '19 23:02 ieiwk