Skip to content

Commit 65e2f01

Browse files
committed
Should be ready
1 parent b3824fb commit 65e2f01

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

build/mpnst/01_combined_omics.R

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ mt_samps <- filter(samples_df, model_type == "xenograft derived organoid") #
3737
manifest <- synTableQuery("select * from syn53503360")$asDataFrame() %>%
3838
rename(common_name = Sample)
3939

40-
print("manifest")
41-
print(manifest)
42-
4340
# Build sample tables
4441
pdx_data <- manifest %>%
4542
select(common_name, starts_with("PDX")) %>%
@@ -51,7 +48,6 @@ pdx_data <- manifest %>%
5148
Proteomics = PDX_Proteomics) %>%
5249
filter(!is.na(improve_sample_id))
5350

54-
5551
tumor_data <- manifest %>%
5652
select(common_name, starts_with("Tumor")) %>%
5753
left_join(tumor_samps, by = "common_name") %>%
@@ -62,7 +58,7 @@ tumor_data <- manifest %>%
6258
mutate(Proteomics = "") %>%
6359
filter(!is.na(improve_sample_id))
6460

65-
mt_data <- manifest %>% #Note, this is the same as pdx_data but I think we default to "xenograft derived organoid" if present.
61+
mt_data <- manifest %>% #Note, this is the same as pdx_data but I think we default to "xenograft derived organoid" if present (based on original files)
6662
select(common_name, starts_with("PDX")) %>%
6763
left_join(mt_samps, by = "common_name") %>%
6864
select(improve_sample_id, common_name, model_type,
@@ -89,7 +85,7 @@ study_label <- function(type) {
8985

9086
# Helper to pick metadata based on sample ID and column
9187
pick_meta <- function(id, column) {
92-
# column {"Proteomics","RNASeq","Mutations","CopyNumber"}
88+
# columns are {"Proteomics","RNASeq","Mutations","CopyNumber"}
9389
if (any(tumor_data[[column]] == id, na.rm = TRUE)) {
9490
sdf <- tumor_data %>% filter(.data[[column]] == id) %>% slice(1)
9591
} else if (any(mt_data[[column]] == id, na.rm = TRUE)) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy