diff options
| author | Lan Hui <lanhui@zjnu.edu.cn> | 2025-10-26 15:42:18 +0800 | 
|---|---|---|
| committer | Lan Hui <lanhui@zjnu.edu.cn> | 2025-10-26 15:42:18 +0800 | 
| commit | 5e232912944db0b37c4845d6b1007a76a67e7364 (patch) | |
| tree | ef1775fdd8ec899653959c148c4a7fdcfe20dba1 /Code | |
| parent | 9ce7c87b6cb3e011c59754c184bfeaf66c60e4d0 (diff) | |
Show library info
Diffstat (limited to 'Code')
| -rw-r--r-- | Code/download_ena_experiment_records.py | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/Code/download_ena_experiment_records.py b/Code/download_ena_experiment_records.py index d96071f..14a4a96 100644 --- a/Code/download_ena_experiment_records.py +++ b/Code/download_ena_experiment_records.py @@ -17,6 +17,7 @@  import urllib.request  import os, time, glob +from parse_ena_xml import parse_experiment  def get_xml_for_experiment_id(eid):      url = 'https://www.ebi.ac.uk/ena/browser/api/xml/%s' % (eid) @@ -41,4 +42,7 @@ if __name__ == '__main__':                  fname = os.path.join(experiment_info_dir, experiment_id)                  with open(fname, 'w', encoding='utf-8') as f2:                      f2.write(xml_content) +                d = parse_experiment(fname) +                print(d[experiment_id]['library_strategy']) +                print(d[experiment_id]['library_source'])                  time.sleep(6) | 
