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!)
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:
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
and the correct Venn diagram (we'll see if add this image actually works!)
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:
Could we ignore empty lines in both cases?