caporaso-lab / sourcetracker2

SourceTracker2
BSD 3-Clause "New" or "Revised" License
62 stars 45 forks source link

refactor `gibbs_sampler` to remove proportion calculation #55

Closed wdwvt1 closed 8 years ago

wdwvt1 commented 8 years ago

currently gibbs_sampler calculates the mixing proportions from the full draw ( aka contingency table aka full results). this could be moved out into another function, making the code more modular and easier to test.

wdwvt1 commented 8 years ago

This function should only save the envcounts, the env assignments, and the taxon sequence. We can re-create the contingency tables from the latter two outside of gibbs