Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 194e938

Browse files
authored
Merge pull request #188 from VariantEffect/release/2.2.1
Release/2.2.1
2 parents 9aaaa8b + a31f356 commit 194e938

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

data/main/site_info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"md_privacy": "",
77
"md_terms": "",
88
"md_usage_guide": "",
9-
"version": "2.2.0"
9+
"version": "2.2.1"
1010
}

dataset/forms/scoreset.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,20 @@ def get_meta_analysis_experiment(self) -> Experiment:
826826
experimentset = children.first().experiment.experimentset
827827

828828
# Create new parent tree if this is a completely novel meta-analysis
829-
description = ", ".join([s.urn for s in children.order_by("urn")])
829+
MAX_DESCRIPTION_CHILDREN = 5
830+
if children.count() > MAX_DESCRIPTION_CHILDREN:
831+
description = ", ".join(
832+
[
833+
s.urn
834+
for s in children.order_by("urn")[
835+
:MAX_DESCRIPTION_CHILDREN
836+
]
837+
]
838+
) + " and {} others".format(
839+
children.count() - MAX_DESCRIPTION_CHILDREN
840+
)
841+
else:
842+
description = ", ".join([s.urn for s in children.order_by("urn")])
830843
if existing is None:
831844
return Experiment(
832845
title=f"Meta-analysis of {description}",

0 commit comments

Comments
 (0)