sidbdri / enrichment_rshiny

Small Shiny app to perform Fisher's exact test for enrichment on gene sets and plot Venn diagrams.
0 stars 0 forks source link

Effect of empty lines on Venn Diagram #8

Closed lweasel closed 4 years ago

lweasel commented 4 years ago

If I use the following gene lists (separated by newlines obvs):

Query: a b c d Target: a b e f Background: a b c e g h

Then I get the (correct) contingency table:

 [,1] [,2]

[1,] 2 1 [2,] 1 2

and the correct Venn diagram (we'll see if add this image actually works!)

image

But if I add an empty newline to the end of the Reference list, then the contingency table is still "correct" but the empty line has been interpreted as an extra ID in the Venn diagram, i.e. a 2 has changed to a 3:

image

Could we ignore empty lines in both cases?

lweasel commented 4 years ago

Ok, those pictures didn't work right, which doesn't help. In the first picture, the "3" should be a "2".

lweasel commented 4 years ago

Sorry for the confusion!