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__': 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"