Skip to content

Commit

Permalink
add referenceSeq
Browse files Browse the repository at this point in the history
  • Loading branch information
d4straub committed Dec 20, 2024
1 parent 565f940 commit 945c946
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/local/treesummarizedexperiment.nf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ process TREESUMMARIZEDEXPERIMENT {
rowData = taxonomy_table
)
# If taxonomy table contains sequences, move them to referenceSeq slot
if (!is.null(rowData(tse)[["sequence"]])) {
referenceSeq(tse) <- DNAStringSet( rowData(tse)[["sequence"]] )
rowData(tse)[["sequence"]] <- NULL
}
# If provided, we add sample metadata as DataFrame object. rownames of
# sample metadata must match with colnames of abundance matrix.
if (file.exists($sam_tsv)) {
Expand Down

0 comments on commit 945c946

Please sign in to comment.