Skip to content

Commit

Permalink
Merge pull request #69 from mortonjt/issue-68
Browse files Browse the repository at this point in the history
Issue 68
  • Loading branch information
mortonjt authored Sep 17, 2019
2 parents cafce65 + 50a30dc commit 9507d53
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 4 additions & 2 deletions scripts/songbird
Original file line number Diff line number Diff line change
Expand Up @@ -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__':
Expand Down
2 changes: 1 addition & 1 deletion songbird/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.4"
__version__ = "0.9"

1 comment on commit 9507d53

@fedarko
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding this in!

Please sign in to comment.