Skip to content

Commit

Permalink
Merge pull request #60 from msk-access/develop
Browse files Browse the repository at this point in the history
Bug Fix
  • Loading branch information
rhshah authored May 21, 2021
2 parents 9808f2f + 76f0db3 commit 4fe2b3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/CNA_processing.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' @export
CNA_processing = function(
master.ref,results.dir,
dmp.dir = '/juno/work/access/production/resources/cbioportal/current/mskimpact/'
dmp.dir = '/juno/work/access/production/resources/cbioportal/current/msk_solid_heme/'
){
# # test input section -----------------------------------------------------------
# master.ref = fread('/juno/work/bergerm1/bergerlab/zhengy1/access_data_analysis/data/example_master_file.csv')
Expand Down
10 changes: 8 additions & 2 deletions reports/template.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ if ("timepoint" %in% colnames(metadata)) {
metadata <- metadata[,c("cmo_sample_id_plasma", "sex", "collection_date", "timepoint")]
timepoints <- unique(metadata$timepoint)
timepointcolors <- brewer.pal(length(timepoints), "Paired")
colorcount <- length(timepoints)
getPalette = colorRampPalette(brewer.pal(12, "Paired"))
timepointcolors <- getPalette(colorcount)
names(timepointcolors) <- timepoints
} else {
metadata <- metadata[,c("cmo_sample_id_plasma", "sex", "collection_date")]
Expand Down Expand Up @@ -337,6 +339,10 @@ subplot(fig1,fig2,nrows=2,shareX=TRUE, heights=c(0.2,0.7), which_layout=1)
```

```{r adjustedvaf-linear, fig.height=4, eval=has_dmp}
sample="{{PATIENT_ID}}"
filename = paste(sample,"_clona.csv")
path = getwd()
file_path = file.path(path,filename)
clonal <- subset(final, final$clonality=="CLONAL")
if (nrow(clonal)>0) {
Expand All @@ -348,7 +354,7 @@ if (nrow(clonal)>0) {
if (length(unique(clonal$VarName))>1) {
write.csv(clonal, '/Users/charlesmurphy/Desktop/mskcc-analyses/210205_Project_11442/analyses/210222_initial/patient_reports/clonal.csv')
write.csv(clonal, file_path)
clonal_mean <- data.frame(
clonal[,c("vaf", "adjustedvaf", "collection_date", "cmo_sample_id_plasma")] %>%
Expand Down

0 comments on commit 4fe2b3f

Please sign in to comment.