From d2ed59d6910a82195b3883ac2b074688f8841489 Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Wed, 16 Apr 2025 15:49:24 +0800 Subject: Remove unused code --- Code/parse_ena_xml.py | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) (limited to 'Code/parse_ena_xml.py') diff --git a/Code/parse_ena_xml.py b/Code/parse_ena_xml.py index 8d45481..c22ec2a 100644 --- a/Code/parse_ena_xml.py +++ b/Code/parse_ena_xml.py @@ -336,50 +336,3 @@ if __name__ == '__main__': fname = '../Data/information/rnaseq_info_database.json.temp' with open(fname, 'w') as f: json.dump(json_dict, f, indent=4) - - - sys.exit() - # Collect information for each run ID - for k in sorted(d_run_keys): - lst = [] - lst.append(k) - if k in d_run: - if k in d_sample: - if d_sample[k]['external_id'] != '.': - lst.append(d_sample[k]['external_id'] + '...' + d_sample[k]['tissue']) - else: - lst.append(d_sample[k]['primary_id'] + '...' + d_sample[k]['tissue']) - else: - lst.append('.') - - lst.append( d_run[k]['experiment_id'] ) - lst.append( d_run[k]['study_id'] ) - - # for column study_id_PRJ - if k in d_study: - lst.append( d_study[k]['primary_id'] ) - else: - lst.append( '.' ) - lst.append( d_run[k]['title'] ) - lst.append( d_run[k]['alias'] ) - - s = '' # description string - - if k in d_study: - s += '

[Study title] ' + d_study[k]['title'] + '

[Study description] ' + d_study[k]['description'] #
is used for breaking lines in html - if k in d_sample: - s += '

[Sample title] ' + d_sample[k]['title'] + '

[Sample description] ' + d_sample[k]['description'] - - if k in d_experiment: - s += '

[Experiment title] ' + d_experiment[k]['title'] + '

[Experiment description] ' + d_experiment[k]['description'] - - if s == '': - s = '.' - - lst.append(s) - - lst.append(d_experiment[k]['library_strategy']) - - lst.append(d_experiment[k]['library_source']) - - print('%s' % ('\t'.join(lst))) -- cgit v1.2.1