Skip to content

Commit

Permalink
remove summary metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
JackCurragh committed Nov 22, 2024
1 parent f620452 commit bc1297f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RiboMetric/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,8 @@ def fourier_transform(
amplitudes = np.abs(fourier_transform) ** 2
total_power = np.sum(amplitudes)
triplet_power = amplitudes[idx_3nt]
fourier_scores[read_len] = 1 - (triplet_power / total_power)
fourier_scores[read_len] = 1 - (triplet_power / total_power) if total_power != 0 else 0


if len(global_counts) < 2:
fourier_scores["global"] = 0
Expand Down

0 comments on commit bc1297f

Please sign in to comment.