Skip to content

Commit

Permalink
version 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
cstubben committed Aug 19, 2024
1 parent 4057ae3 commit fb3461a
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 363 deletions.
6 changes: 5 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
Package: hciR
Title: RNA-seq workflows at HCI
Version: 1.7
Version: 1.8
Author: Chris Stubben
Maintainer: Chris Stubben <[email protected]>
Depends:
R (>= 2.10)
Imports:
dplyr,
readr,
readxl,
tidyr,
tibble,
magrittr,
Expand All @@ -30,5 +33,6 @@ License: GPL-3
Encoding: UTF-8
Description: This package simplifies the R code in a differential expression analysis for markdown reports. The package includes functions to run DESeq2 using sample and count tibbles as input, get annotated DESeq results for all pairwise comparisons and create interactive plots and other visualizations.
LazyData: true
LazyDataCompression: xz
biocViews: Software
RoxygenNote: 7.3.1
3 changes: 0 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export(as_tbl)
export(check_contrasts)
export(deseq_from_tibble)
export(drop_empty_columns)
export(enricher_all)
export(extract_samples)
export(fgsea_all)
export(filter_counts)
Expand All @@ -20,11 +19,9 @@ export(palette255)
export(plot_biotypes)
export(plot_counts)
export(plot_dist)
export(plot_enricher)
export(plot_fgsea)
export(plot_filter)
export(plot_genes)
export(plot_gsea)
export(plot_interactions)
export(plot_ma)
export(plot_pca)
Expand Down
95 changes: 0 additions & 95 deletions R/enricher_all.R

This file was deleted.

5 changes: 3 additions & 2 deletions R/plot_counts.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#' @author Chris Stubben
#'
#' @examples
#' plot_counts(pasilla$count, "FBgn0033635", c("type","condition"), title = "Prip")
#' x <- top_counts(pasilla$results, pasilla$rlog, top=12)
#' plot_counts(x, "condition")
#' @export

plot_counts <- function(x, intgroup, n=25, geom="jitter", ylab = "Log2 counts", reorder, ncol=NULL, scales="fixed", ...){
Expand All @@ -32,7 +33,7 @@ plot_counts <- function(x, intgroup, n=25, geom="jitter", ylab = "Log2 counts",
x1 <- x1[, 1:n]
}
y <- data.frame(s1[, intgroup, drop=FALSE], x1)
z <- tidyr::gather(y, -all_of(intgroup), key="gene2", value = "count")
z <- tidyr::gather(y, -dplyr::all_of(intgroup), key="gene2", value = "count")
## reorder?
if(!missing(reorder)) z[[1]] <- factor(z[[1]], levels = reorder)

Expand Down
68 changes: 0 additions & 68 deletions R/plot_enricher.R

This file was deleted.

52 changes: 0 additions & 52 deletions R/plot_gsea.R

This file was deleted.

3 changes: 2 additions & 1 deletion R/plot_interactions.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#' @param ylab y-axis label
#' @param scaled scale counts
#' @param n total number of genes to plot
#' @param max_scale maximum values for scaled values in case of outliers
#' @param reorder level names to reorder factor levels on x-axis
#' @param \dots additional options like ncol or nrow passed to facet_wrap
#'
Expand All @@ -14,7 +15,7 @@
#' @author Chris Stubben
#'
#' @examples
#' x <- top_counts( pasilla$res, pasilla$rlog, top=25)
#' x <- top_counts( pasilla$results, pasilla$rlog, top=25)
#' # no interaction from single or paired end as expected
#' plot_interactions(x, c("condition", "type"))
#' @export
Expand Down
4 changes: 2 additions & 2 deletions R/read_deseq.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ read_deseq <- function(file, object="results"){
names(res) <- gsub("_vs_", " vs. ", wk[n])
for(i in seq_along(n)) {
message("Loading ", names(res)[i])
res[[i]] <- read_excel(file, sheet= n[i])
res[[i]] <- readxl::read_excel(file, sheet= n[i])
}
} else{
s1 <- readxl::read_excel(file, sheet="samples")
message("Loading ", object, " worksheet")
r1 <- read_excel(file, sheet= object)
r1 <- readxl::read_excel(file, sheet= object)
## delete gene_name and biotype
n2 <- which(colnames(r1) %in% c("gene_name", "biotype"))
if(length(n2) !=2) message("Note: Gene name and biotype columns are missing?")
Expand Down
Binary file modified data/pasilla.rda
Binary file not shown.
52 changes: 0 additions & 52 deletions man/enricher_all.Rd

This file was deleted.

3 changes: 2 additions & 1 deletion man/plot_counts.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fb3461a

Please sign in to comment.