Skip to content

Commit

Permalink
Fix bug in build_browser_hub
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirsouza committed Apr 9, 2024
1 parent 732c1e8 commit 4f6374e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/build_browser_hub.R
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,12 @@ build_browser_hub = function(regions_bed = GAMBLR.data::grch37_ashm_regions,
left_join(maf_data_i, ., join_by(Tumor_Sample_Barcode == sample_id))
dplyr::select(maf_data_i, -all_of(splitColumnName)) %>%
split(maf_data_i[[splitColumnName]])
}, maf_data, these_samples_metadata)
}, maf_data, these_samples_metadata, SIMPLIFY = FALSE)
track_names = lapply(maf_data, names)
these_samples_metadata = mapply(function(these_samples_metadata_i, track_names_i){
split(these_samples_metadata_i, these_samples_metadata_i[[splitColumnName]]) %>%
"["(track_names_i)
}, these_samples_metadata, track_names)
}, these_samples_metadata, track_names, SIMPLIFY = FALSE)
}else{
maf_data = lapply(maf_data, list)
track_names = lapply(these_seq_types, function(x) list("all"))
Expand Down

0 comments on commit 4f6374e

Please sign in to comment.