Skip to content

Commit

Permalink
Merge pull request #73 from malariagen/72-cohort-list
Browse files Browse the repository at this point in the history
Bug fix and doc update for 0.12.1
  • Loading branch information
cclarkson authored Oct 22, 2021
2 parents f88b1bd + 875ff6b commit d5df2f5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ $ poetry publish

## Release notes

### 0.12.1

* Bug fix to `Ag3.sample_cohorts()`.

### 0.12.0

* Updates default cohort parameter to latest analysis (20210927).
Expand Down
4 changes: 1 addition & 3 deletions malariagen_data/ag3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1997,9 +1997,7 @@ def sample_cohorts(self, sample_sets="v3_wild", cohorts_analysis="20210927"):
else:
# concatenate multiple sample sets
dfs = [
self._read_cohort_metadata(
sample_set=c, cohorts_analysis=cohorts_analysis
)
self.sample_cohorts(sample_sets=c, cohorts_analysis=cohorts_analysis)
for c in sample_sets
]
df = pandas.concat(dfs, axis=0, sort=False).reset_index(drop=True)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "malariagen_data"
version = "0.12.0"
version = "0.12.1"
description = "A package for accessing MalariaGEN public data."
authors = ["Alistair Miles <[email protected]>", "Chris Clarkson <[email protected]>"]
license = "MIT"
Expand Down
3 changes: 2 additions & 1 deletion tests/test_ag3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,8 @@ def test_haplotypes(sample_sets, contig, analysis):

# test v3 sample sets
@pytest.mark.parametrize(
"sample_sets", ["v3_wild", "v3", "AG1000G-UG", ["AG1000G-AO", "AG1000G-FR"]]
"sample_sets",
["v3_wild", "v3", ["v3_wild", "v3"], "AG1000G-UG", ["AG1000G-AO", "AG1000G-FR"]],
)
def test_sample_cohorts(sample_sets):
expected_cols = (
Expand Down

0 comments on commit d5df2f5

Please sign in to comment.