Skip to content

Commit

Permalink
checks to prevent qc to fail on empty samples
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Proost committed Aug 29, 2016
1 parent bfc88ee commit 2981bd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipeline/check/quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def check_htseq(filename, cutoff=0, log=None):

total = sum([mapped_reads,
values['__no_feature'] if '__no_feature' in values.keys() else 0,
values['__ambiguous'] if '__ambiguous' in values.keys() else 0])
values['__ambiguous'] if '__ambiguous' in values.keys() else 0]
)

percentage_mapped = ((mapped_reads*100)/total) if total > 0 else 0

Expand Down

0 comments on commit 2981bd2

Please sign in to comment.