Skip to content

Commit 71b7783

Browse files
committed
v2025.1
1 parent 82b8a6d commit 71b7783

File tree

3 files changed

+73
-4
lines changed

3 files changed

+73
-4
lines changed

DESCRIPTION

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: msigdf
22
Type: Package
33
Title: MSigDB in a data frame
4-
Version: 2024.1
4+
Version: 2025.1
55
Authors@R: c(
66
person("Stephen", "Turner", email = "vustephen@gmail.com", role = "aut"),
77
person("Toledo", "Enrique", email = "enriquetoledo@gmail.com", role = c("ctb","cre")))
@@ -11,7 +11,9 @@ License: CC0
1111
Encoding: UTF-8
1212
LazyData: true
1313
RoxygenNote: 7.3.2
14-
Depends: R (>= 3.1.2)
14+
Depends:
15+
R (>= 3.5)
1516
Imports: tibble
1617
Suggests: knitr, plyr, tidyverse, rmarkdown, BiocStyle
1718
VignetteBuilder: knitr
19+
LazyDataCompression: xz

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# MSigDF
22

3-
The [Molecular Signatures Database (MSigDB)](http://www.broad.mit.edu/gsea/msigdb/index.jsp) in a tidy data frame.
3+
The [Molecular Signatures Database (MSigDB)](https://www.gsea-msigdb.org/gsea/msigdb/index.jsp) in a tidy data frame.
44

55

66
This is the updated version of the archived repo of [@stephenturner](https://github.com/stephenturner/msigdf/pull/1)
77

88

9-
Current version: [v2024.1.Hs](https://docs.gsea-msigdb.org/#MSigDB/Release_Notes/MSigDB_Latest/) (Aug 2024).
9+
Current version: [v2025.1.Hs](https://docs.gsea-msigdb.org/#MSigDB/Release_Notes/MSigDB_Latest/) (June 2025).
1010

1111
## Installation
1212

examples/msigdf_examples.R

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Example usage of msigdf package with improved and parallel code for human and mouse data
2+
3+
library(tidyverse)
4+
library(msigdf)
5+
6+
# Show first few rows for both human and mouse gene sets
7+
msigdf.human %>% slice_head(n = 5)
8+
msigdf.mouse %>% slice_head(n = 5)
9+
10+
# Filter for a specific KEGG pathway in both human and mouse
11+
msigdf.human %>%
12+
filter(geneset == "KEGG_NON_HOMOLOGOUS_END_JOINING")
13+
14+
msigdf.mouse %>%
15+
filter(geneset == "KEGG_NON_HOMOLOGOUS_END_JOINING")
16+
17+
# Get gene symbols as a named list for Hallmark sets (human) and for mouse
18+
human_hallmark <- msigdf.human %>%
19+
filter(category_code == "hallmark") %>%
20+
select(geneset, symbol) %>%
21+
group_by(geneset) %>%
22+
summarize(symbols = list(symbol), .groups = "drop") %>%
23+
deframe()
24+
25+
mouse_hallmark <- msigdf.mouse %>%
26+
filter(category_code == "hallmark") %>%
27+
select(geneset, symbol) %>%
28+
group_by(geneset) %>%
29+
summarize(symbols = list(symbol), .groups = "drop") %>%
30+
deframe()
31+
32+
# Show first 3 gene sets and their first 3 symbols
33+
purrr::map(human_hallmark[1:3], head, 3)
34+
purrr::map(mouse_hallmark[1:3], head, 3)
35+
36+
# Count gene sets by collection and sub-collection for both species
37+
msigdf.human %>%
38+
count(category_code, category_subcode, sort = TRUE)
39+
40+
msigdf.mouse %>%
41+
count(category_code, category_subcode, sort = TRUE)
42+
43+
# Join with URLs for a specific hallmark set (Notch signaling) in human and mouse
44+
human_notch_url <- msigdf.human %>%
45+
filter(geneset == "HALLMARK_NOTCH_SIGNALING") %>%
46+
distinct(geneset) %>%
47+
left_join(msigdf.urls, by = "geneset") %>%
48+
pull(url)
49+
50+
mouse_notch_url <- msigdf.mouse %>%
51+
filter(geneset == "HALLMARK_NOTCH_SIGNALING") %>%
52+
distinct(geneset) %>%
53+
left_join(msigdf.mouse.urls, by = "geneset") %>%
54+
pull(url)
55+
56+
# Print URLs
57+
print(human_notch_url)
58+
print(mouse_notch_url)
59+
60+
# List KEGG pathways sorted by number of genes (human and mouse)
61+
msigdf.human %>%
62+
filter(category_code == "c2", str_starts(geneset, "KEGG_")) %>%
63+
count(geneset, sort = TRUE)
64+
65+
msigdf.mouse %>%
66+
filter(category_code == "m2", str_starts(geneset, "KEGG_")) %>%
67+
count(geneset, sort = TRUE)

0 commit comments

Comments
 (0)