Skip to content

Commit a02474b

Browse files
committed
fix DADA2_SPLITREGIONS with one sample
1 parent d31c3bf commit a02474b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
### `Fixed`
1313

1414
- [#893](https://github.com/nf-core/ampliseq/pull/893),[#896](https://github.com/nf-core/ampliseq/pull/896) - Template update for nf-core/tools version 3.3.1
15+
- [#897](https://github.com/nf-core/ampliseq/pull/897) - Allow multiple region analysis with one sample
1516

1617
### `Dependencies`
1718

modules/local/dada2_splitregions.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ process DADA2_SPLITREGIONS {
4343
}
4444
4545
# filter rows with only 0, occurring because many samples were removed
46-
df <- df[as.logical(rowSums(df[,2:(ncol(df)-1)] != 0)), ]
46+
df <- df[as.logical(rowSums(df[,2:(ncol(df)-1), drop = FALSE] != 0)), ]
4747
4848
# Write file with ASV abdundance and sequences to file
4949
write.table(df, file = "DADA2_table_${suffix}.tsv", sep = "\\t", row.names = FALSE, quote = FALSE, na = '')

0 commit comments

Comments
 (0)