diff options
author | Lan Hui <lanhui@zjnu.edu.cn> | 2025-04-20 18:14:05 +0800 |
---|---|---|
committer | Lan Hui <lanhui@zjnu.edu.cn> | 2025-04-20 18:14:05 +0800 |
commit | ceaaaa4c1ced17be4aefef1f6ee4a77f39b95726 (patch) | |
tree | 94463d282944d22607a00b351a44fcb6fa6d0b75 | |
parent | 139d804f124b51806c4134961c989b79df228de0 (diff) |
Remove unused lines
-rw-r--r-- | Code/parse_ena_xml.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Code/parse_ena_xml.py b/Code/parse_ena_xml.py index 30b68bf..75777a1 100644 --- a/Code/parse_ena_xml.py +++ b/Code/parse_ena_xml.py @@ -235,7 +235,6 @@ def get_tissue(run_id, d_run, experiment_id, d_experiment, sample_id, d_sample, s = s.replace('-', ' ') s = s.translate(str.maketrans('', '', string.punctuation)) wlst = s.split() - #wlst = re.sub("[^\w]", " ", s).split() # a list of words in s. http://stackoverflow.com/questions/6181763/converting-a-string-to-a-list-of-words for w in wlst: if w in lst: w2 = get_singular_form(w) @@ -252,15 +251,6 @@ def get_tissue(run_id, d_run, experiment_id, d_experiment, sample_id, d_sample, return result.rstrip(';') -def get_tissue2(sample_id, d): - tissue = '' - #print(sample_id) - #print(list(d.keys())[0:10]) - if sample_id in d: - tissue = d[sample_id]['tissue'] - return tissue - - ## main if __name__ == '__main__': |