From 446aaed1124e34ed4aa8a0bc30d60c1b2e6eb9fd Mon Sep 17 00:00:00 2001 From: proost Date: Tue, 18 Jul 2017 10:37:35 +0200 Subject: [PATCH] bug fix, some gff files yield spaces after gene name, remove these when writing matrix --- pipeline/transcriptome.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/transcriptome.py b/pipeline/transcriptome.py index 65925ea..a1dd12f 100644 --- a/pipeline/transcriptome.py +++ b/pipeline/transcriptome.py @@ -346,7 +346,7 @@ def htseq_to_matrix(self): else: values.append('0') if all([x not in gene_id for x in bad_fields]): - print(gene_id + '\t' + '\t'.join(values), file=f_out) + print(gene_id.strip() + '\t' + '\t'.join(values), file=f_out) print("Done\n\n")