cmatkhan commited on
Commit
5036080
·
verified ·
1 Parent(s): c033470

Upload pull_gse65682.R with huggingface_hub

Browse files
Files changed (1) hide show
  1. pull_gse65682.R +2 -2
pull_gse65682.R CHANGED
@@ -111,7 +111,7 @@ gse65682_feature_metadata <- anno_u219 |>
111
  ungroup() |>
112
  mutate(across(c(ENSEMBL, UNIPROT), ~ na_if(.x, ""))) |>
113
  rename(feature_id = PROBEID) |>
114
- right_join(tibble(feature_id = your_probes_mars), by = "PROBEID") # guarantee every probe gets a row
115
 
116
  stopifnot(nrow(gse65682_feature_metadata) == length(your_probes_mars))
117
  stopifnot(!any(duplicated(gse65682_feature_metadata$feature_id)))
@@ -124,7 +124,7 @@ gse65682_expr_long <- as_tibble(exprs(gset), rownames = "feature_id") |>
124
 
125
  stopifnot(nrow(gse65682_expr_long) == nrow(exprs(gset)) * ncol(exprs(gset)))
126
  stopifnot(all(unique(gse65682_expr_long$sample_id) %in% gse65682_metadata$sample_id))
127
- stopifnot(all(unique(gse65682_expr_long$PROBEID) %in% gse65682_feature_metadata$PROBEID))
128
 
129
  stopifnot(!any(duplicated(gse65682_metadata$sample_id)))
130
  stopifnot(nrow(gse65682_metadata) == 802)
 
111
  ungroup() |>
112
  mutate(across(c(ENSEMBL, UNIPROT), ~ na_if(.x, ""))) |>
113
  rename(feature_id = PROBEID) |>
114
+ right_join(tibble(feature_id = your_probes_mars), by = "feature_id")
115
 
116
  stopifnot(nrow(gse65682_feature_metadata) == length(your_probes_mars))
117
  stopifnot(!any(duplicated(gse65682_feature_metadata$feature_id)))
 
124
 
125
  stopifnot(nrow(gse65682_expr_long) == nrow(exprs(gset)) * ncol(exprs(gset)))
126
  stopifnot(all(unique(gse65682_expr_long$sample_id) %in% gse65682_metadata$sample_id))
127
+ stopifnot(all(unique(gse65682_expr_long$feature_id) %in% gse65682_feature_metadata$feature_id))
128
 
129
  stopifnot(!any(duplicated(gse65682_metadata$sample_id)))
130
  stopifnot(nrow(gse65682_metadata) == 802)