Skip to content

Commit 2a0e871

Browse files
committed
added copy number update
closes #184
1 parent 8b94f17 commit 2a0e871

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/mpnst/01_mpnst_get_omics.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ cnv<-do.call(rbind,lapply(setdiff(combined$CopyNumber,NA),function(x){
157157
subset(!is.na(entrez_id))|>
158158
dplyr::select(entrez_id,log2)|>
159159
dplyr::distinct()|>
160-
dplyr::mutate(copy_number=2^log2)
160+
dplyr::mutate(copy_number=2^log2)|>
161+
dplyr::select(-log2)
161162

162163
res<-long_df|> ##deep del < 0.5210507 < het loss < 0.7311832 < diploid < 1.214125 < gain < 1.422233 < amp
163164
dplyr::mutate(copy_call=ifelse(copy_number<0.5210507,'deep del',

0 commit comments

Comments
 (0)