jbloomlab / polyclonal

Model mutational escape from polyclonal antibodies.
Other
3 stars 0 forks source link

Bootstrapping summarize #59

Closed jbloom closed 2 years ago

jbloom commented 2 years ago

@zorian15, look at this one after #58.

I change the way that the summaries are returned. Rather than having some complicated dictionary, I think it's much more straightforward just to have properties that parallel those of Polyclonal, and make it possible both to get the per-replicate values and summarized values in data frames analogous to those being plotted right now. The dictionary of how many replicates each mutation is in isn't needed, this can just be a column in the summary dictionary (number and frac bootstrap replicates).

I also moved some of this over to RBD_bootstrap.ipynb example for the parts that didn't work in the test notebook anymore.

I think we can start with something like these as the base for plotting functions as discussed in your pull request.

jbloom commented 2 years ago

@zorian15, I finally got this one passing the tests if you want to take a look and review!