summaryrefslogtreecommitdiff
path: root/Code
diff options
context:
space:
mode:
authorLan Hui <lanhui@zjnu.edu.cn>2025-04-16 15:49:24 +0800
committerLan Hui <lanhui@zjnu.edu.cn>2025-04-16 15:49:24 +0800
commitd2ed59d6910a82195b3883ac2b074688f8841489 (patch)
treee8e5d2ae6f48fec90275bd6d4bd47ccd5ba3b5ec /Code
parent0a09eb64a364a1bf67e06c77cce34672beecaec1 (diff)
Remove unused code
Diffstat (limited to 'Code')
-rw-r--r--Code/parse_ena_xml.py47
1 files changed, 0 insertions, 47 deletions
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 += ' <br><br>[Study title] ' + d_study[k]['title'] + ' <br><br>[Study description] ' + d_study[k]['description'] # <br> is used for breaking lines in html
- if k in d_sample:
- s += ' <br><br>[Sample title] ' + d_sample[k]['title'] + ' <br><br>[Sample description] ' + d_sample[k]['description']
-
- if k in d_experiment:
- s += ' <br><br>[Experiment title] ' + d_experiment[k]['title'] + ' <br><br>[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)))