@@ -37,9 +37,6 @@ mt_samps <- filter(samples_df, model_type == "xenograft derived organoid") #
37
37
manifest <- synTableQuery(" select * from syn53503360" )$ asDataFrame() %> %
38
38
rename(common_name = Sample )
39
39
40
- print(" manifest" )
41
- print(manifest )
42
-
43
40
# Build sample tables
44
41
pdx_data <- manifest %> %
45
42
select(common_name , starts_with(" PDX" )) %> %
@@ -51,7 +48,6 @@ pdx_data <- manifest %>%
51
48
Proteomics = PDX_Proteomics ) %> %
52
49
filter(! is.na(improve_sample_id ))
53
50
54
-
55
51
tumor_data <- manifest %> %
56
52
select(common_name , starts_with(" Tumor" )) %> %
57
53
left_join(tumor_samps , by = " common_name" ) %> %
@@ -62,7 +58,7 @@ tumor_data <- manifest %>%
62
58
mutate(Proteomics = " " ) %> %
63
59
filter(! is.na(improve_sample_id ))
64
60
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)
66
62
select(common_name , starts_with(" PDX" )) %> %
67
63
left_join(mt_samps , by = " common_name" ) %> %
68
64
select(improve_sample_id , common_name , model_type ,
@@ -89,7 +85,7 @@ study_label <- function(type) {
89
85
90
86
# Helper to pick metadata based on sample ID and column
91
87
pick_meta <- function (id , column ) {
92
- # column {"Proteomics","RNASeq","Mutations","CopyNumber"}
88
+ # columns are {"Proteomics","RNASeq","Mutations","CopyNumber"}
93
89
if (any(tumor_data [[column ]] == id , na.rm = TRUE )) {
94
90
sdf <- tumor_data %> % filter(.data [[column ]] == id ) %> % slice(1 )
95
91
} else if (any(mt_data [[column ]] == id , na.rm = TRUE )) {
0 commit comments