Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalization of Cas9LineageTracingDataSimulator #216

Merged
merged 8 commits into from
Sep 11, 2023

Conversation

colganwi
Copy link
Collaborator

@colganwi colganwi commented Aug 23, 2023

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.

@colganwi colganwi requested review from Lioscro and mattjones315 and removed request for Lioscro August 23, 2023 21:05
@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

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

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

Additional details and impacted files
@@            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 Coverage Δ
...opeia/simulator/Cas9LineageTracingDataSimulator.py 100.00% <100.00%> (+0.88%) ⬆️

☔ View full report in Codecov by Sentry.

📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@mattjones315 mattjones315 left a comment

Choose a reason for hiding this comment

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

Looking good! Just a few changes that I think we should implement before merging it in.

Copy link
Collaborator

@mattjones315 mattjones315 left a comment

Choose a reason for hiding this comment

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

Looking great! Some small changes requested around the docstring, argument list, and handling of state_priors specified as a np.array.

Copy link
Collaborator

@mattjones315 mattjones315 left a comment

Choose a reason for hiding this comment

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

Looks great! Let's merge it in.

@mattjones315 mattjones315 merged commit 14ab61a into master Sep 11, 2023
4 checks passed
@colganwi colganwi deleted the Cas9-sim-generalization branch September 11, 2023 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants