Mercurial > repos > iuc > data_manager_snpeff
comparison data_manager/data_manager_snpEff_download.py @ 7:71821eb11274 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_snpeff commit a4b0969b33a68a0ea9ba12291f6694aec24f13ed
| author | iuc |
|---|---|
| date | Tue, 30 Oct 2018 18:38:43 -0400 |
| parents | a6e6e8415b7f |
| children | fbb459120c29 |
comparison
equal
deleted
inserted
replaced
| 6:a6e6e8415b7f | 7:71821eb11274 |
|---|---|
| 61 if return_code != 255: | 61 if return_code != 255: |
| 62 sys.exit( return_code ) | 62 sys.exit( return_code ) |
| 63 stderr_fh.close() | 63 stderr_fh.close() |
| 64 fh = open(stderr_path, 'r') | 64 fh = open(stderr_path, 'r') |
| 65 for line in fh: | 65 for line in fh: |
| 66 m = re.match('^[Ss]npEff version (SnpEff)\s*(\d+\.\d+).*$', line) | 66 m = re.match(r'^[Ss]npEff version (SnpEff)\s*(\d+\.\d+).*$', line) |
| 67 if m: | 67 if m: |
| 68 snpeff_version = m.groups()[0] + m.groups()[1] | 68 snpeff_version = m.groups()[0] + m.groups()[1] |
| 69 break | 69 break |
| 70 fh.close() | 70 fh.close() |
| 71 return snpeff_version | 71 return snpeff_version |
