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,