-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebsite_2.R
More file actions
27 lines (22 loc) · 980 Bytes
/
website_2.R
File metadata and controls
27 lines (22 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
library(multiMiR)
predicted_dbs <- c("diana_microt", "elmmo", "microcosm", "miranda", "mirdb", "pictar", "pita", "targetscan")
mirna <- "mmu-miR-187-3p"
# Initialize a counter for the total number of targets
total_targets <- 0
# Loop through each database and count the targets
for (db in predicted_dbs) {
example5 <- get_multimir(org = "mmu",
mirna = mirna,
table = db,
summary = FALSE, # set summary to FALSE to get the full data
use.tibble = TRUE)
if (!is.null(example5@data) && nrow(example5@data) > 0) {
num_targets <- nrow(example5@data)
total_targets <- total_targets + num_targets
print(paste("Database:", db, "- Targets found:", num_targets))
} else {
print(paste("Database:", db, "- No targets found."))
}
}
# Print the total number of targets
print(paste("Total number of targets across all databases:", total_targets))