Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
cstubben committed Jan 22, 2025
1 parent 14a791c commit b198e04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot_fgsea.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ plot_fgsea <- function(x, trim=70, sets, nes=TRUE, cluster_row=FALSE, cluster_c
z <- dplyr::select(y, contrast, pathway, NES) %>%
tidyr::spread(contrast, NES)
}else{
z <- dplyr::select(y, contrast, pathway, ES) %>%
z <- dplyr::select(y, contrast, pathway, ES) %>%
tidyr::spread(contrast, ES)
}
if(!missing(sets)){
Expand Down
2 changes: 2 additions & 0 deletions R/read_featureCounts.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ read_featureCounts <- function( path=".", pattern, reshape=TRUE, stats=FALSE){
fc <- read_sample_files(path, pattern, col_names=c("status", "count"), skip=1)
if(reshape){
fc <- dplyr::filter(fc, count!=0) %>% tidyr::spread(status, count)
#fix for Autoanalysis
fc$sample <- gsub("_Hg38|_GRCm39", "", fc$sample )
# add option to sort HCI samples as X1, X2, ..., X10, X11
fc <- fc[ order_samples(fc$sample), ]
}
Expand Down

0 comments on commit b198e04

Please sign in to comment.