Mercurial > repos > glogobyte > isoread
comparison mirbase_functions.py @ 34:66e4d57f11c9 draft
Uploaded
| author | glogobyte |
|---|---|
| date | Thu, 02 Dec 2021 14:12:59 +0000 |
| parents | 77ba8dde6fb7 |
| children |
comparison
equal
deleted
inserted
replaced
| 33:77ba8dde6fb7 | 34:66e4d57f11c9 |
|---|---|
| 688 | 688 |
| 689 """ | 689 """ |
| 690 | 690 |
| 691 def download_matures(matures,org_name): | 691 def download_matures(matures,org_name): |
| 692 | 692 |
| 693 url = 'ftp://mirbase.org/pub/mirbase/CURRENT/mature.fa.gz' | 693 url = 'https://www.mirbase.org/ftp/CURRENT/mature.fa.gz' |
| 694 data = urllib.request.urlopen(url).read() | 694 data = urllib.request.urlopen(url).read() |
| 695 file_mirna = gzip.decompress(data).decode('utf-8') | 695 file_mirna = gzip.decompress(data).decode('utf-8') |
| 696 file_mirna = file_mirna.split("\n") | 696 file_mirna = file_mirna.split("\n") |
| 697 | 697 |
| 698 for i in range(0,len(file_mirna)-1,2): | 698 for i in range(0,len(file_mirna)-1,2): |
