Skip to content

Commit bc4ec0c

Browse files
Merge pull request #990 from suhrig/deseq2_qc-renumber-groups
deseq2_qc.r renumber groups
2 parents fbffe86 + cd48584 commit bc4ec0c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Thank you to everyone else that has contributed by reporting bugs, enhancements
3737
- [[#961](https://github.com/nf-core/rnaseq/issues/961)] - Add warnings to STDOUT for all skipped and failed strandedness check samples
3838
- [[#975](https://github.com/nf-core/rnaseq/issues/975)] - `SALMON_INDEX` runs when using `--aligner star_rsem` even if samples have explicit strandedness
3939
- Remove HISAT2 from automated AWS full-sized tests
40+
- [[#988](https://github.com/nf-core/rnaseq/issues/988)] - `DESEQ2_QC_STAR_SALMON` fails when sample names have many components
4041

4142
### Parameters
4243

bin/deseq2_qc.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ decompose <- n_components!=1 && all(sapply(name_components, length)==n_com
7777
coldata <- data.frame(samples.vec, sample=samples.vec, row.names=1)
7878
if (decompose) {
7979
groupings <- as.data.frame(lapply(1:n_components, function(i) sapply(name_components, "[[", i)))
80-
names(groupings) <- paste0("Group", 1:n_components)
8180
n_distinct <- sapply(groupings, function(grp) length(unique(grp)))
8281
groupings <- groupings[n_distinct!=1 & n_distinct!=length(samples.vec)]
8382
if (ncol(groupings)!=0) {
83+
names(groupings) <- paste0("Group", 1:ncol(groupings))
8484
coldata <- cbind(coldata, groupings)
8585
} else {
8686
decompose <- FALSE

0 commit comments

Comments
 (0)