Skip to content

Commit

Permalink
fix(pipeline.py): exclude control condition
Browse files Browse the repository at this point in the history
Exclude control condition to ensure that a control vs control group is not calculated. Previous implementation took all groups, resulting in a non-sensical control vs control fold change.

Closes #19.
  • Loading branch information
rbpatt2019 committed Jan 24, 2022
1 parent 5b5c5c8 commit 88313ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lta/helpers/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ def run(self, control: str) -> None:
for df in self.filtered.values()
]
conditions = [val for mode in conditions for val in mode]
conditions = [val for val in conditions if val != control]

for group in conditions:
self.enfc = self._calculate_enfc((group, control))
Expand Down

0 comments on commit 88313ed

Please sign in to comment.