Skip to content

Commit

Permalink
Update strandedness.smk
Browse files Browse the repository at this point in the history
  • Loading branch information
Maarten-vd-Sande authored Aug 1, 2023
1 parent 3b29aa4 commit f760e87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion seq2science/rules/strandedness.smk
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ def get_strandedness(report_file, fmt="htseq"):

cutoff = 0.6
with open(report_file) as rf:
fwd, rev = rf.read().splitlines()[2:4]
try:
fwd, rev = rf.read().splitlines()[2:4]
except:
logger.error(f"An unexpected issue has occurred with inferring the strandedness of this file: {report_file}...")

fwd = float(fwd.split(": ")[1])
if fwd > cutoff:
Expand Down

0 comments on commit f760e87

Please sign in to comment.