diff options
| author | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-16 11:43:34 +0800 | 
|---|---|---|
| committer | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-16 11:43:34 +0800 | 
| commit | 4420e34da9c28f6a3ddbe3d743927c83e2d51a45 (patch) | |
| tree | f9e5b948eacd2d3b0457ff5541c053a03eda5120 /Code/make_target_tf_agris.py | |
| parent | 676b4e16e03f128d26c3c5142eef953319b1f23b (diff) | |
make_target_tf_agris.py: no longer need to check ID starts with AT, as it has been checked using isvalid.
Diffstat (limited to 'Code/make_target_tf_agris.py')
| -rw-r--r-- | Code/make_target_tf_agris.py | 11 | 
1 files changed, 5 insertions, 6 deletions
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  | 
