YosefLab / Cassiopeia

A Package for Cas9-Enabled Single Cell Lineage Tracing Tree Reconstruction
https://cassiopeia-lineage.readthedocs.io/en/latest/
MIT License
75 stars 24 forks source link

Generalization of Cas9LineageTracingDataSimulator #216

Closed colganwi closed 1 year ago

colganwi commented 1 year ago

Makes Cas9LineageTracingDataSimulator more general by adding self.mutation_priors_per_character which allows for different characters to have different mutation distributions. The API is the same, except mutation_priors can now be a list of length size_of_cassette or number_of_cassettes * size_of_cassette. For consistency, mutation_rate now also excepts lists of size_of_cassette or number_of_cassettes * size_of_cassette instead of just number_of_cassettes * size_of_cassette.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.06% :tada:

Comparison is base (cea4fa8) 79.43% compared to head (7a2db62) 79.49%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #216 +/- ## ========================================== + Coverage 79.43% 79.49% +0.06% ========================================== Files 89 89 Lines 7895 7916 +21 ========================================== + Hits 6271 6293 +22 + Misses 1624 1623 -1 ``` | [Files Changed](https://app.codecov.io/gh/YosefLab/Cassiopeia/pull/216?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=YosefLab) | Coverage Δ | | |---|---|---| | [...opeia/simulator/Cas9LineageTracingDataSimulator.py](https://app.codecov.io/gh/YosefLab/Cassiopeia/pull/216?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=YosefLab#diff-Y2Fzc2lvcGVpYS9zaW11bGF0b3IvQ2FzOUxpbmVhZ2VUcmFjaW5nRGF0YVNpbXVsYXRvci5weQ==) | `100.00% <100.00%> (+0.88%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.

:loudspeaker: Have feedback on the report? Share it here.