From 4420e34da9c28f6a3ddbe3d743927c83e2d51a45 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Tue, 16 Feb 2021 11:43:34 +0800 Subject: make_target_tf_agris.py: no longer need to check ID starts with AT, as it has been checked using isvalid. --- Code/make_target_tf_agris.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Code') diff --git a/Code/make_target_tf_agris.py b/Code/make_target_tf_agris.py index 8e2cb2e..f95a03b 100644 --- a/Code/make_target_tf_agris.py +++ b/Code/make_target_tf_agris.py @@ -35,12 +35,11 @@ def make_dictionary(fname, separator): target_lst = [x.strip() for x in target0.split('/') if id_validator.isvalid(x)] for tf in tf_lst: for target in target_lst: - if tf.startswith('AT') and target.startswith('AT'): - k = target + '.' + tf - if k in d: - duplicate += 1 - else: - d[k] = [target, tf, sample_id] + k = target + '.' + tf + if k in d: + duplicate += 1 + else: + d[k] = [target, tf, sample_id] return duplicate, d -- cgit v1.2.1