From 0c3a84d831e89732c8ae9edc29b9439db240018f Mon Sep 17 00:00:00 2001 From: sepro Date: Fri, 7 Apr 2017 14:08:06 +0200 Subject: [PATCH] fixed small issue with spaces in gene names. (in helper script this time) --- helper/htseq_count_stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/htseq_count_stats.py b/helper/htseq_count_stats.py index 52eb5d4..3071102 100644 --- a/helper/htseq_count_stats.py +++ b/helper/htseq_count_stats.py @@ -23,7 +23,7 @@ mapped_reads = 0 for line in fin: - gene, value = line.strip().split() + gene, value = line.strip().rsplit(maxsplit=1) if gene not in quality_fields: mapped_reads += int(value)