Skip to content

Commit

Permalink
Update plotting.R
Browse files Browse the repository at this point in the history
Removed plot print
  • Loading branch information
rpalaganas committed Jan 17, 2024
1 parent 3f37b53 commit 7f43d38
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions R/plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,6 @@ pdVolcano <- function(result,
axis.title=element_text(size=14),
legend.text = element_text(size=12))

plt <- cowplot::plot_grid(unweightedvolcano, weightedvolcano, ncol = 2, align = "h")
print(plt)

#return a list of genes that can be used as input to fgsea
difexdf <- subset(mean_stats, Color == paste("Enriched in", metadata$reference_matrix) | Color == paste("Enriched in", metadata$test_matrix))
vec <- difexdf$estimate
Expand All @@ -295,7 +292,8 @@ pdVolcano <- function(result,
fgseavecs = list(unweightedvec = vec,
weightedvec = weighted_vec),
meta_data = metadata,
plt = plt)
plt = list(differential_expression = unweightedvolcano,
weighted_differential_expression = weightedvolcano))
return(vol_result)
}

Expand Down

0 comments on commit 7f43d38

Please sign in to comment.