Mercurial > repos > rv43 > tomo
diff workflow/link_to_galaxy.py @ 71:1cf15b61cd83 draft
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 366e516aef0735af2998c6ff3af037181c8d5213
author | rv43 |
---|---|
date | Mon, 20 Mar 2023 13:56:57 +0000 |
parents | fba792d5f83b |
children |
line wrap: on
line diff
--- a/workflow/link_to_galaxy.py Fri Mar 10 16:39:22 2023 +0000 +++ b/workflow/link_to_galaxy.py Mon Mar 20 13:56:57 2023 +0000 @@ -37,10 +37,12 @@ def link_to_galaxy(filename:str, galaxy=None, user=None, password=None, api_key=None) -> None: # Read input file extension = path.splitext(filename)[1] - if extension == '.yml' or extension == '.yaml': - with open(filename, 'r') as f: - data = safe_load(f) - elif extension == '.nxs': +# RV yaml input not incorporated yet, since Galaxy can't use pyspec right now +# if extension == '.yml' or extension == '.yaml': +# with open(filename, 'r') as f: +# data = safe_load(f) +# elif extension == '.nxs': + if extension == '.nxs': with NXFile(filename, mode='r') as nxfile: data = nxfile.readfile() else: @@ -53,7 +55,9 @@ nxroot = NXroot() for sample_map in wf.sample_maps: import_scanparser(sample_map.station) - sample_map.construct_nxentry(nxroot, include_raw_data=False) +# RV raw data must be included, since Galaxy can't use pyspec right now +# sample_map.construct_nxentry(nxroot, include_raw_data=False) + sample_map.construct_nxentry(nxroot, include_raw_data=True) nxentry = nxroot[nxroot.attrs['default']] elif isinstance(data, NXroot): nxentry = data[data.attrs['default']]