From this comment on #182:
may advise starting with ATRT’s and SMARCB1 deletions
Here, I’m looking at the output of 01-prepare-cn-file.R to see if we recover that information in the segment to gene mapping. The CNVkit SEG file was used for results/annotated_cn.tsv.
`%>%` <- dplyr::`%>%`
# read in the output of `01-prepare-cn-file.R`
annotation_cn <- readr::read_tsv(file.path("results", "annotated_cn.tsv"))
Parsed with column specification:
cols(
gene_symbol = [31mcol_character()[39m,
biospecimen_id = [31mcol_character()[39m,
label = [31mcol_character()[39m,
copy_number = [32mcol_double()[39m
)
# read in the clinical file that has the disease type information
histologies_df <- readr::read_tsv(file.path("..", "..", "data",
"pbta-histologies.tsv"))
Parsed with column specification:
cols(
.default = col_character(),
OS_days = [32mcol_double()[39m,
age_last_update_days = [32mcol_double()[39m,
normal_fraction = [32mcol_double()[39m,
tumor_fraction = [32mcol_double()[39m,
tumor_ploidy = [32mcol_double()[39m
)
See spec(...) for full column specifications.
# get ATRT biospecimen identifiers
atrt_specimens <- histologies_df %>%
dplyr::filter(disease_type_new == "Atypical Teratoid Rhabdoid Tumor") %>%
dplyr::pull(Kids_First_Biospecimen_ID)
# filter the gene-level CN information to ATRT samples and gene symbols
# containing 'SMARC'
annotation_cn %>%
dplyr::filter(biospecimen_id %in% atrt_specimens,
grepl("SMARC", gene_symbol))
Are there any segments that got mapped to SMARCB1 in the file?
sum(annotation_cn$gene_symbol == "SMARCB1")
[1] 0