Skip to content

Commit

Permalink
fix meta bug in 06 notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
sjspielman committed Nov 8, 2024
1 parent 4d44715 commit 93636b1
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ author: "Maud PLASCHKA"
date: "`r Sys.Date()`"
params:
scpca_project_id: "SCPCP000006"
sample_id: "SCPCS000184"
sample_id: "SCPCS000179"
seed: 12345
output:
html_document:
Expand Down Expand Up @@ -286,9 +286,10 @@ wrapper_explore_hmm <- function(infercnv_obj, cnv_threshold = 1) {
theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust = 1))
#### CNV score
meta <- [email protected] |>
mutate(has_cnv_score = rowSums(meta[, grepl("has_cnv_chr", colnames(meta))])) |>
mutate(has_cnv_score = case_when(
meta <- [email protected]
meta <- meta |>
dplyr::mutate(has_cnv_score = rowSums(meta[, grepl("has_cnv_chr", colnames(meta))])) |>
dplyr::mutate(has_cnv_score = dplyr::case_when(
has_cnv_score > cnv_threshold ~ "CNV",
has_cnv_score <= cnv_threshold ~ "no CNV"
))
Expand Down

0 comments on commit 93636b1

Please sign in to comment.