From c750fcd3172f0f2d3a14da5bdff15ffdc82ffbfc Mon Sep 17 00:00:00 2001 From: Jamie Morton Date: Thu, 5 Sep 2019 16:58:31 -0400 Subject: [PATCH 1/2] Version bump --- songbird/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/songbird/__init__.py b/songbird/__init__.py index fa3ddd8..824978d 100644 --- a/songbird/__init__.py +++ b/songbird/__init__.py @@ -1 +1 @@ -__version__ = "0.8.4" +__version__ = "0.9" From 50a30dc47f31a745eac7e59ef95db4c2475c3d74 Mon Sep 17 00:00:00 2001 From: Jamie Morton Date: Tue, 17 Sep 2019 10:54:51 -0400 Subject: [PATCH 2/2] Version bump. Also resolves #68 --- CHANGELOG.md | 3 +++ scripts/songbird | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0f4c90..5e46712 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # songbird changelog +## Version 0.9 (2019-9-5) +Added compatibility with the new qiime2 differential type [#60](https://github.com/biocore/songbird/pull/60) + ## Version 0.8.4 (2019-7-8) Minor release bump. Differential types are now inherited from q2 types. diff --git a/scripts/songbird b/scripts/songbird index ad7f404..e43ba2b 100644 --- a/scripts/songbird +++ b/scripts/songbird @@ -102,9 +102,11 @@ def multinomial(input_biom, metadata_file, formula, training_column, beta_ = clr(clr_inv(np.hstack((np.zeros((model.p, 1)), model.B)))) - pd.DataFrame( + df = pd.DataFrame( beta_.T, columns=md_ids, index=obs_ids, - ).to_csv(os.path.join(summary_dir, 'differentials.tsv'), sep='\t') + ) + df.index.name = 'featureid' + df.to_csv(os.path.join(summary_dir, 'differentials.tsv'), sep='\t') if __name__ == '__main__':