Skip to content

Commit

Permalink
bug fix, some gff files yield spaces after gene name, remove these wh…
Browse files Browse the repository at this point in the history
…en writing matrix
  • Loading branch information
proost committed Jul 18, 2017
1 parent 8de768d commit 446aaed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline/transcriptome.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 446aaed

Please sign in to comment.