You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there is a tool called Freyja demix for the Covid community on the Galaxy.
One input of this tool is called Source of UShER barcodes data and it can use an internal file or a user provided CSV file. There is an exmaple of CSV file on Freyja Github. When a Galaxy user runs this tool with Provide a custom barcode file and provides a CSV file in the field UShER barcodes file, the task fails.
After looking for the root of the problem, I noticed that Freyja will check the input file format for barcode by just checking the extension of the filename (here) as follows:
When I use Freyja on Galaxy, I get the following error:
Traceback (most recent call last):
File "/usr/local/tools/_conda/envs/mulled-v1-422b12711dac707b326db04a2307413f94850d5c03d7d6affb06577fea704c12/bin/freyja", line 10, in <module>
sys.exit(cli())
^^^^^
File "/usr/local/tools/_conda/envs/mulled-v1-422b12711dac707b326db04a2307413f94850d5c03d7d6affb06577fea704c12/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/tools/_conda/envs/mulled-v1-422b12711dac707b326db04a2307413f94850d5c03d7d6affb06577fea704c12/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/local/tools/_conda/envs/mulled-v1-422b12711dac707b326db04a2307413f94850d5c03d7d6affb06577fea704c12/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/tools/_conda/envs/mulled-v1-422b12711dac707b326db04a2307413f94850d5c03d7d6affb06577fea704c12/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/tools/_conda/envs/mulled-v1-422b12711dac707b326db04a2307413f94850d5c03d7d6affb06577fea704c12/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/tools/_conda/envs/mulled-v1-422b12711dac707b326db04a2307413f94850d5c03d7d6affb06577fea704c12/lib/python3.11/site-packages/freyja/_cli.py", line 103, in demix
df_barcodes = load_barcodes(barcodes, pathogen, altname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/tools/_conda/envs/mulled-v1-422b12711dac707b326db04a2307413f94850d5c03d7d6affb06577fea704c12/lib/python3.11/site-packages/freyja/utils.py", line 39, in load_barcodes
raise ValueError('Only csv and feather barcode ' +
ValueError: Only csv and feather barcode formats supported
I think the problem can be found in the command line metadata section of the job:
Here, we see that the file name does not end with "csv" but rather "dat" (--barcodes '/data/dnb10/galaxy_db/files/9/9/b/dataset_99b90e78-21e6-438a-97d8-09c9b74e390b.dat').
I think it is "easy" to solve this issue but I am not proficient myself to do it. I appreciate your help in advance.
Best,
Armin
The text was updated successfully, but these errors were encountered:
Hi,
there is a tool called Freyja demix for the Covid community on the Galaxy.
One input of this tool is called
Source of UShER barcodes data
and it can use an internal file or a user provided CSV file. There is an exmaple of CSV file on Freyja Github. When a Galaxy user runs this tool withProvide a custom barcode file
and provides a CSV file in the fieldUShER barcodes file
, the task fails.After looking for the root of the problem, I noticed that Freyja will check the input file format for barcode by just checking the extension of the filename (here) as follows:
When I use Freyja on Galaxy, I get the following error:
I think the problem can be found in the command line metadata section of the job:
Here, we see that the file name does not end with "csv" but rather "dat" (
--barcodes '/data/dnb10/galaxy_db/files/9/9/b/dataset_99b90e78-21e6-438a-97d8-09c9b74e390b.dat'
).I think it is "easy" to solve this issue but I am not proficient myself to do it. I appreciate your help in advance.
Best,
Armin
The text was updated successfully, but these errors were encountered: