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

Add functionality to run from_actors mode with more than one TF #185

Merged
merged 29 commits into from
Nov 17, 2023

Conversation

roskamsh
Copy link
Contributor

@roskamsh roskamsh commented Oct 25, 2023

When running interactively, all TargeneCore tests pass with no errors.

@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (4dcf5c4) 95.72% compared to head (45af342) 95.64%.

Files Patch % Lines
src/tmle_inputs/from_actors.jl 94.44% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #185      +/-   ##
==========================================
- Coverage   95.72%   95.64%   -0.09%     
==========================================
  Files           5        5              
  Lines         351      367      +16     
==========================================
+ Hits          336      351      +15     
- Misses         15       16       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@olivierlabayle olivierlabayle self-requested a review October 25, 2023 14:46
Copy link
Member

@olivierlabayle olivierlabayle left a comment

Choose a reason for hiding this comment

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

Thank you for taking over this Breeshey, I've started the review. I think there is one major point and one less important but still nice to address before I move on with checking correctness and the test. I've also added some comments regarding code style, some superfluous functions and some changes that I think need to be undone.

  1. Unless I am missing something, the change is breaking at the user level because now the TF column is mandatory. I think it would be best to keep it optional because users only looking at a single transcription factor will not necessarily find useful to define this column.
  2. I think the change in the name of the ouput would be more easily read if the outprefix was changed instead.

In any case, because of the output name change this PR will be breaking at the pipeline's level and may require some changes in the targene-pipeline itself (this is entirely fine!).

src/tmle_inputs/from_actors.jl Outdated Show resolved Hide resolved
src/tmle_inputs/from_actors.jl Outdated Show resolved Hide resolved
src/tmle_inputs/from_actors.jl Outdated Show resolved Hide resolved
src/tmle_inputs/from_actors.jl Outdated Show resolved Hide resolved
test/confounders.jl Show resolved Hide resolved
src/tmle_inputs/from_actors.jl Outdated Show resolved Hide resolved
src/tmle_inputs/from_actors.jl Show resolved Hide resolved
src/tmle_inputs/tmle_inputs.jl Outdated Show resolved Hide resolved
@olivierlabayle olivierlabayle self-requested a review November 16, 2023 17:54
Copy link
Member

@olivierlabayle olivierlabayle left a comment

Choose a reason for hiding this comment

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

Thank you Breeshey, this looks good to me! Good usage of multiple dispatch in the filter_snps_by_tf function. The missed covered line might be because they are smart enough to realise that the condition is never met in the tests. I've added this issue for future reference. But nothing to be concerned about for now! Feel free to merge, thanks!

@roskamsh roskamsh merged commit 33c3ff8 into main Nov 17, 2023
2 of 4 checks passed
@roskamsh roskamsh deleted the brh_data_source branch November 17, 2023 08:54
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