From 6828a249314c4e8158343353e05abeea1e733ac1 Mon Sep 17 00:00:00 2001 From: balajtimate Date: Tue, 8 Oct 2024 16:33:31 +0200 Subject: [PATCH] minor refactor get_read_orientation --- htsinfer/get_read_orientation.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/htsinfer/get_read_orientation.py b/htsinfer/get_read_orientation.py index c608952..d5bac0f 100644 --- a/htsinfer/get_read_orientation.py +++ b/htsinfer/get_read_orientation.py @@ -178,17 +178,6 @@ def process_single( else: orientation = StatesOrientation.unstranded - orient_df = pd.DataFrame([{ - 'Number of mapped reads': reads, - 'Fraction SF': fractions[0].get( - StatesOrientation.stranded_forward - ), - 'Fraction SR': fractions[0].get( - StatesOrientation.stranded_reverse - ), - 'Orientation': orientation.value - }]) - orient_df = self.create_orient_df( reads, fractions_all_states, orientation, paired=False ) @@ -378,8 +367,8 @@ def sum_dicts(*dicts: Dict[Any, float]) -> Dict[Any, float]: result[key] += num return dict(result) - def create_orient_df( # pylint: disable=R0917 - self, + @staticmethod + def create_orient_df( reads, fractions_all_states, orientation,