Your first 3-set Venn
Load three sets, inspect exact/inclusive regions, compare Elements and edit the figure.
Start tutorialVennScope Learn · v0.16
A compact course for researchers, students, analysts and anyone who wants to understand sets, Venn diagrams, UpSet plots, similarity measures, overlap statistics and biological identifiers before interpreting a figure.
These lessons explain established mathematical, statistical and biological concepts used in set analysis. They do not disclose VennScope's proprietary source code, internal implementation architecture, optimisation choices or deployment details.
Module 01 · Foundations
A set is a collection of distinct elements. In VennScope an element can be a gene symbol, accession number, sample identifier, category, keyword or any other value that can be compared for membership.
| Notation | Meaning |
|---|---|
| A ∪ B | Union: elements in A, B or both. |
| A ∩ B | Intersection: elements present in both A and B. |
| |A| | Cardinality: number of distinct elements in A. |
| A \ B | Elements in A that are not in B. |
Module 02 · Venn diagrams
Venn diagrams use overlapping closed shapes to represent relationships among sets. John Venn developed the diagrammatic system in the nineteenth century; modern use extends from logic and mathematics to education, biology and general data analysis.
For two or three sets, Venn diagrams are intuitive because every possible membership region can be shown clearly. With many sets, the number of possible intersections increases rapidly and circle-based layouts become difficult to read.
Exact A ∩ B means elements that belong to A and B and to no other displayed set. Inclusive A ∩ B means elements shared by A and B regardless of whether they also occur in additional sets.
Module 03 · Multi-set comparison
UpSet plots represent intersections using a matrix of set-membership combinations and bars for intersection sizes. They are usually easier to interpret than a many-circle Venn diagram once the number of sets grows beyond three or four.
The important scientific quantities are the membership combinations and their counts. The visual geometry is a representation of those values; it should not be mistaken for a spatial measurement.
Module 04 · Similarity
Different similarity coefficients answer slightly different questions. No single coefficient is universally best.
Jaccard(A,B) = |A ∩ B| / |A ∪ B|
Dice(A,B) = 2|A ∩ B| / (|A| + |B|)
Overlap coefficient(A,B) = |A ∩ B| / min(|A|, |B|)
Jaccard penalises non-shared elements through the union. Dice gives shared elements twice the weight in the numerator. The overlap coefficient reaches 1 when the smaller set is completely contained in the larger set.
Module 05 · Statistical overlap
A p-value for overlap asks whether the observed overlap is unusual relative to a defined population of possible elements. Without a background universe, that probability model is incomplete.
For gene lists, the appropriate universe is often the set of genes that could realistically have been observed in the experiment, not automatically every known gene in a database.
The hypergeometric distribution describes sampling without replacement from a finite population. For set overlap, an upper-tail probability can quantify how surprising it is to observe at least the measured overlap under a random-membership model.
P(X ≥ k) = Σ [ C(K,x) C(N−K,n−x) / C(N,n) ]
Here N is the universe size, K is the size of one set in the universe, n is the size of the other set, and k is the observed overlap.
Fisher's exact test evaluates association in a 2×2 contingency table while conditioning on the margins. VennScope reports a two-sided Fisher p-value alongside the one-sided hypergeometric enrichment probability.
An odds ratio above 1 indicates enrichment of co-membership relative to the chosen universe; below 1 indicates depletion. Confidence intervals express uncertainty in that estimate.
Module 06 · Multiple testing
A p-value is not the probability that a hypothesis is true. It is a probability calculated under a specified null model. When many hypotheses are tested, the chance of obtaining small p-values by chance increases.
The Benjamini–Hochberg procedure controls the expected false discovery rate (FDR) under its assumptions. VennScope reports BH-adjusted q-values across the displayed family of pairwise Fisher tests.
q(i) = min over j≥i of [ m × p(j) / j ], bounded at 1
Statistical significance is not the same as biological importance, effect size or reproducibility. Interpret the p/q-value together with set sizes, odds ratio, study design and domain knowledge.
Module 07 · Why a t-test is different
A t-test compares numerical measurements between groups under a model of means and variability. A plain list of identifiers only says whether an element is present in a set; it does not provide replicate measurements or quantitative abundance values.
Therefore VennScope does not apply a t-test to ordinary set lists. A future quantitative-analysis module can support appropriate tests after users provide an abundance matrix and sample metadata.
Module 08 · Biological identifiers
| Identifier | What it represents |
|---|---|
| Gene symbol | A human-readable gene name/symbol; for human genes HGNC maintains approved nomenclature. |
| HGNC ID | A stable identifier assigned by the HUGO Gene Nomenclature Committee for human genes. |
| NCBI Gene ID | A stable numeric identifier used by NCBI Gene. |
| Ensembl Gene ID | An Ensembl stable identifier for a gene feature. |
| Ensembl Transcript ID | An Ensembl stable identifier for a transcript; one gene can have multiple transcripts. |
| Ensembl Protein ID | An Ensembl stable identifier for a translated protein product. |
| UniProtKB accession | A stable accession used to identify a UniProtKB protein entry. |
| RefSeq accession | An NCBI accession for a curated/reference sequence record; nucleotide and protein accessions are distinct classes. |
| NCBI Taxonomy ID | A numeric identifier for an organism/taxon, such as 9606 for Homo sapiens. |
Mappings can be one-to-one, one-to-many, many-to-one or unavailable. For example, collapsing protein identifiers to a gene level can merge several protein products. VennScope therefore treats mapping as an explicit workflow and preserves the original identifiers.
Module 09 · Tutorials
Load three sets, inspect exact/inclusive regions, compare Elements and edit the figure.
Start tutorialSee why UpSet is a clearer representation when intersection structure becomes complex.
Start tutorialDefine a universe and interpret Fisher, hypergeometric, odds-ratio and BH-adjusted results.
Start tutorialEdit typography and margins, review figure information and export a publication package.
Start tutorialReferences & primary resources
The Learn material is educational and is not a substitute for study-specific statistical or bioinformatics advice.