Skip to content

Commit

Permalink
feat(aggregation): add rpkm and tpm matrix (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbelmann authored May 27, 2024
1 parent 7b7e31c commit 5856be0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions modules/readMapping/mapping.nf
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,24 @@ workflow _wCreateRelativeAbundanceMatrix {
relativeAbundanceMatrix = _wCreateMatrix.out.abundanceMatrix
}

workflow _wCreateRPKMMatrix {
take:
countColumn
main:
_wCreateMatrix(countColumn, Channel.value("rpkmMatrix.tsv"))
emit:
relativeAbundanceMatrix = _wCreateMatrix.out.abundanceMatrix
}

workflow _wCreateTPMMatrix {
take:
countColumn
main:
_wCreateMatrix(countColumn, Channel.value("tpmMatrix.tsv"))
emit:
relativeAbundanceMatrix = _wCreateMatrix.out.abundanceMatrix
}

workflow _wCreateMatrix {
take:
countColumn
Expand Down Expand Up @@ -319,6 +337,8 @@ workflow _wReadMappingBwa {

_wCreateTrimmedMeanMatrix(pCovermGenomeCoverage.out.trimmedMean)
_wCreateRelativeAbundanceMatrix(pCovermGenomeCoverage.out.relativeAbundance)
_wCreateRPKMMatrix(pCovermGenomeCoverage.out.rpkm)
_wCreateTPMMatrix(pCovermGenomeCoverage.out.tpm)
emit:
trimmedMeanMatrix = _wCreateTrimmedMeanMatrix.out.trimmedMeanMatrix
relativeAbundanceMatrix = _wCreateRelativeAbundanceMatrix.out.relativeAbundanceMatrix
Expand Down

0 comments on commit 5856be0

Please sign in to comment.