Example of aggregating file with associated metadata
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 35/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
調査の方向性
Read the existing aggregation patterns and examples in the repository to see how they collect process outputs. Add a best practices example that aggregates file.txt outputs together with their meta values, and make clear how the example handles multiple values and special characters in metadata.
索引モデルが issue の本文から書いたものです。
説明
Currently, there is no example of aggregating files AND associated metadata. For instance, in many/most nf-core pipelines the process outputs are something like:
output:
tuple val(meta), path("file.txt")
...but what if one wants to then aggregate all of the file.txt outputs into one table AND include the meta metadata in that output table?
As far as I can tell from scouring the nextflow slack channel, one must "embed" the metadata in the file paths and then parse the file paths in the aggregation step. For example:
Per-file process:
output:
tuple val(meta), path("${meta}.txt")
Aggregation process:
input:
path("*")
script:
"""
[somehow parse {meta} from input file path]
"""
Is there a better way, especially given the substantial limitations of trying to embed metadata into a file path (eg., dealing with multiple values and special characters in the metadata values)?
I'm sure a lot of pipeline developers would like a best-practices example of how to deal with this situation (without having to decipher how meta is dealt with in aggregation steps of nf-core pipelines).
- 主要言語
- Nextflow
- スター
- 374
- フォーク
- 73
- 平均マージ
- 15分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextflow-io/patterns のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 36/100
nextflow-io/patterns#48 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
nextflow-io/patterns#42 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
nextflow-io/patterns#30 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
nextflow-io/patterns#21 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
nextflow-io/patterns#14 ·
nextflow-io/patterns の issue をすべて見る
似ている issue
-
[Docs] Four internal links return 404 (Models concept, Contributing to Docs, Providers reference)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
meshery/meshery#23520 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
fleet size/m
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
sipyourdrink-ltd/bernstein#7548 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
pyrite-wiki/pyrite#1477 ·
メンテナーはふだん 1 日以内に返信
-
documentation linters
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
nanyx-lang/nanyx#1210 ·
メンテナーはふだん 1 日以内に返信