Skip to content

Commit

Permalink
set separate variables for both subjects
Browse files Browse the repository at this point in the history
  • Loading branch information
skanwal committed Jul 12, 2024
1 parent 617b0bb commit 2498f59
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions inst/scripts/compare_piedb.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ require(glue)
require(tibble)
require(tidyr)

dev <- readr::read_csv("~/UMCCR/data/wts/RNAsum/reference_update_comp/SBJ04426/dev/genes.expr.perc.csv")
pro <- readr::read_csv("~/UMCCR/data/wts/RNAsum/reference_update_comp/SBJ04426/pro/genes.expr.perc.csv")
dev <- readr::read_csv("~/UMCCR/data/wts/RNAsum/reference_update_comp/SBJ04187/dev/genes.expr.perc.csv")
pro <- readr::read_csv("~/UMCCR/data/wts/RNAsum/reference_update_comp/SBJ04187/pro/genes.expr.perc.csv")
SBJ04426_dev <- readr::read_csv("~/UMCCR/data/wts/RNAsum/reference_update_comp/SBJ04426/dev/genes.expr.perc.csv")
SBJ04426_pro <- readr::read_csv("~/UMCCR/data/wts/RNAsum/reference_update_comp/SBJ04426/pro/genes.expr.perc.csv")
SBJ04187_dev <- readr::read_csv("~/UMCCR/data/wts/RNAsum/reference_update_comp/SBJ04187/dev/genes.expr.perc.csv")
SBJ04187_pro <- readr::read_csv("~/UMCCR/data/wts/RNAsum/reference_update_comp/SBJ04187/pro/genes.expr.perc.csv")
cancer_genes <- readr::read_tsv("~/UMCCR/research/data/cancer_gene_list/somatic_panel-v24.03.0.tsv")

# now explore expression differences in reference and patient columns
# between dev and prod.
df <- dplyr::left_join(dev, pro, by = "Gene", suffix = c(".dev", ".pro")) |>
SBJ04426_df <- dplyr::left_join(SBJ04426_dev, SBJ04426_pro, by = "Gene", suffix = c(".dev", ".pro")) |>
dplyr::mutate(
# Ref_equal = `KIRP (TCGA).dev` == `KIRP (TCGA).pro`,
# Ref_equal = `PANCAN (TCGA).dev` == `PANCAN (TCGA).pro`,
Expand All @@ -31,4 +31,4 @@ df <- dplyr::left_join(dev, pro, by = "Gene", suffix = c(".dev", ".pro")) |>
datatable()

# plot Ref_diff values
hist(df$Ref_diff, breaks = 100)
hist(SBJ04426_df$Ref_diff, breaks = 100)

0 comments on commit 2498f59

Please sign in to comment.