Skip to content

Commit eb6940b

Browse files
Fixed legacy and naming issues in cross, DE and QC functions
1 parent 71c5703 commit eb6940b

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

R/DEfuns.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ DEanalysis_edger <- function(
7575
if(is.na(edger$common.dispersion)){ # if there are no replicates
7676
edger.noreps <- edgeR::DGEList(counts = expression.matrix, group = condition)
7777
edger.noreps <- edgeR::calcNormFactors(edger.noreps)
78-
edger.noreps <- edgeR::estimateDisp(edger.noreps, tagwise=FALSE)
78+
edger.noreps <- edgeR::estimateGLMCommonDisp(edger.noreps,method="deviance",robust=TRUE,subset=NULL)
7979
edger$common.dispersion <- edger.noreps$common.dispersion
8080
edger$trended.dispersion <- edger.noreps$trended.dispersion
8181
edger$tagwise.dispersion <- edger.noreps$tagwise.dispersion

R/QCpanel.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ QCpanelServer <- function(id, expression.matrix, metadata, anno){
164164
filename = function() { input[['plotMAFileName']] },
165165
content = function(file) {
166166
device <- function(..., width, height) grDevices::png(..., width = width, height = height, res = 300, units = "in")
167-
ggsave(file, plot = qc.ma.plot(), device = device)
167+
ggsave(file, plot = ma.plot(), device = device)
168168
}
169169
)
170170
})

R/cross_plot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ cross_plot = function(
131131

132132
if(add.labels.custom){
133133
genes.to.rename <- genes.to.label[names(genes.to.label) != ""]
134-
genes.to.label <- df$gene_name[(match(genes.to.label, c(df$gene_name, df$gene_id)) - 1) %% nrow(df) + 1]
134+
# genes.to.label <- df$gene_name[(match(genes.to.label, c(df$gene_name, df$gene_id)) - 1) %% nrow(df) + 1]
135135
genes.to.label <- unique(genes.to.label[!is.na(genes.to.label)])
136136
genes.to.rename <- genes.to.rename[genes.to.rename %in% genes.to.label]
137137
df.label <- dplyr::filter(df, gene_name %in% genes.to.label)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ e83–e83.
1919

2020
<img src="vignettes/figures/workflow.png" alt="drawing" width="500"/>
2121

22-
*Workflow diagram of the **bulkAnalyseR** pipeline. The input comprises a processed (i.e. normalised, noise corrected) expression matrix. Using **bulkAnalyseR** all standard steps related to differential expression analyses are handled seamlesley. The pairwaise comparison of differential expression outputs is also possible (using cross-plots and upset plots). Lastly, localised Gene Regulatory Networks can be created.*
22+
*Workflow diagram of the **bulkAnalyseR** pipeline. The input comprises a processed (i.e. normalised, noise-corrected) expression matrix. Using **bulkAnalyseR**, all standard steps related to differential expression analyses are handled seamlessley. The pairwaise comparison of differential expression outputs is also possible (using cross plots and upset plots). Finally, localised Gene Regulatory Networks can be created.*
2323

2424
## Preprocessing step
2525

@@ -75,7 +75,7 @@ By default, the app will look like this:
7575

7676
*Screenshot from Yang case study processed with the bulkAnalyseR app*
7777

78-
[comment]: <See [vignette](vignettes/bulkAnalyseR.html) for more details on the individual panels.>
78+
See [vignette](https://raw.githack.com/Core-Bioinformatics/bulkAnalyseR/main/vignettes/bulkAnalyseR.html) for more details on the individual panels.
7979

8080
You can also add custom extra panels and data using the *panels.extra* and *data.extra* parameters.
8181

0 commit comments

Comments
 (0)