From 93b47320e3190a9e3b8c929ebb0fd8182bab8bb5 Mon Sep 17 00:00:00 2001 From: Ramprasad Neethiraj <20065894+ramprasadn@users.noreply.github.com> Date: Mon, 4 Sep 2023 09:10:55 +0200 Subject: [PATCH 1/3] remove duplicate probands and children in meta --- workflows/raredisease.nf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/workflows/raredisease.nf b/workflows/raredisease.nf index 1d1d8ddd..233699f4 100644 --- a/workflows/raredisease.nf +++ b/workflows/raredisease.nf @@ -647,13 +647,16 @@ def create_case_channel(List rows) { mother = item.maternal } } + println(probands) case_info.father = father case_info.mother = mother - case_info.probands = probands - case_info.upd_children = upd_children + case_info.probands = probands.unique() + case_info.upd_children = upd_children.unique() case_info.id = rows[0].case_id + println(case_info) + return case_info } From 06f717c526e353da3570f777b9b80f69591d6d26 Mon Sep 17 00:00:00 2001 From: Ramprasad Neethiraj <20065894+ramprasadn@users.noreply.github.com> Date: Mon, 4 Sep 2023 09:14:07 +0200 Subject: [PATCH 2/3] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b834f2fe..01f4cca1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Make target bed file optional for WGS mode (Issue [#375](https://github.com/nf-core/raredisease/issues/375)) [#395](https://github.com/nf-core/raredisease/pull/395) - Added constraints to block the pipeline from running CollectWgsMetrics on WES samples [#396](https://github.com/nf-core/raredisease/pull/396) - Updated modules from nf-core [#412](https://github.com/nf-core/raredisease/pull/412) +- If present, remove duplicate entries in probands and upd_children in the meta. [#420](https://github.com/nf-core/raredisease/pull/420) ### `Updated` From 32418865a1ee0d93fa9ccb8cad0735ed5ca189ce Mon Sep 17 00:00:00 2001 From: Ramprasad Neethiraj <20065894+ramprasadn@users.noreply.github.com> Date: Mon, 4 Sep 2023 09:18:37 +0200 Subject: [PATCH 3/3] Update raredisease.nf --- workflows/raredisease.nf | 3 --- 1 file changed, 3 deletions(-) diff --git a/workflows/raredisease.nf b/workflows/raredisease.nf index 233699f4..a3e1050d 100644 --- a/workflows/raredisease.nf +++ b/workflows/raredisease.nf @@ -647,7 +647,6 @@ def create_case_channel(List rows) { mother = item.maternal } } - println(probands) case_info.father = father case_info.mother = mother @@ -655,8 +654,6 @@ def create_case_channel(List rows) { case_info.upd_children = upd_children.unique() case_info.id = rows[0].case_id - println(case_info) - return case_info }