From 3c58f804c1e79ad510b3f234b7439f5fbe9d4191 Mon Sep 17 00:00:00 2001 From: Ian Fiddes Date: Mon, 28 Aug 2017 16:45:30 +0100 Subject: [PATCH] Somehow returning to the dash-based separator instead of hash got screwed up during the merge commit. For issue #64. --- cat/filter_transmap.py | 2 +- tools/nameConversions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cat/filter_transmap.py b/cat/filter_transmap.py index 72e2b4f3..a116b669 100644 --- a/cat/filter_transmap.py +++ b/cat/filter_transmap.py @@ -67,7 +67,7 @@ def hash_aln(aln): tools.procOps.run_proc(cmd, stdout=local_tmp) paralogy_alns = list(tools.psl.psl_iterator(local_tmp)) - # local localBest IDs by using the hash table to figure out which ones we had + # load localBest IDs by using the hash table to figure out which ones we had local_best = {unfiltered[unfiltered_hash_table[hash_aln(aln)]] for aln in paralogy_alns} # report counts by biotype grouped = tools.psl.group_alignments_by_qname(local_best) diff --git a/tools/nameConversions.py b/tools/nameConversions.py index 63a0fbfa..61e213aa 100644 --- a/tools/nameConversions.py +++ b/tools/nameConversions.py @@ -5,7 +5,7 @@ import re -def remove_alignment_number(aln_id, aln_re=re.compile("#[0-9]+$")): +def remove_alignment_number(aln_id, aln_re=re.compile("-[0-9]+$")): """ If the name of the transcript ends with -d as in ENSMUST00000169901.2-1, return ENSMUST00000169901.2