Skip to content

Commit

Permalink
minor refactor get_read_orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
balajtimate committed Oct 8, 2024
1 parent ca8fc5d commit 6828a24
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions htsinfer/get_read_orientation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6828a24

Please sign in to comment.