244 Commits
Author SHA1 Message Date
Adam WrightandClaude Opus 5.5 17ae21c213 Add implicit pearson_fasta to fasta converter
Drops the lines before the first '>' header (the ';' comment block) and
copies everything from that header on byte for byte, so tools with fasta
inputs, and the fasta converters (fai, len, tabular, ...), receive a
file htslib and Biopython can read. Exits with an error if the input has
no '>' header.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-23 09:43:55 -05:00
Dannon Baker bb0ac444f2 Add tests for tar misdetected as zip
A tar with a zip end-of-central-directory record near its end passes
zipfile.is_zipfile, and get_fileobj_raw then blows up in ZipFile() with
BadZipFile instead of handing back the file as-is. Since FilePrefix goes
through get_fileobj_raw, that takes sniffing down with it. See #24488.
2026-10-26 23:17:33 -04:00
davelopez d9a5a54649 Describe and test class: Directory with plain directory datasets
The runtime representation and test staging of directory datasets apply
to every directory datatype, not only Zarr. Word their descriptions that
way and test them with a plain directory dataset.
2026-10-14 16:30:59 +02:00
davelopezandClaude Opus 5.5 cbee43e25d Represent directory datasets as class: Directory for YAML tools
YAML tools received every data input as class: File with path pointing at
the primary file, which is an empty placeholder for directory datatypes
such as zarr, so they could not read them at all.

Emit class: Directory for Directory datatypes, with path set to the
(rewritten) extra files folder, where their content now always sits. A
deferred dataset that is passed on as a URI carries it in location and
has no path. $(inputs.x.path) then works the same for a file and a zarr
store. Tool tests can also stage a class: Directory input now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:30:27 +02:00
davelopezandClaude Opus 5.5 e7907194cf Move Zarr stores to the root of extra files and drop store_root
A Zarr store could sit in a single wrapper folder under extra_files_path,
for example after unpacking an archive, and the store_root metadata told
readers where to look. Tools, previews and visualizations all had to
resolve that extra level.

Add a groom_directory_content hook to Directory datatypes. ZarrDirectory
uses it to move a wrapped store up to the root of extra_files_path. Fetch
calls it after staging a directory, and metadata setting calls it before
set_meta, so tool and converter outputs get the same layout. With the
store always at the root, store_root is no longer needed: set_meta,
previews and sniffing read the root directly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:30:26 +02:00
John ChiltonandClaude Opus 5.5 382b9f80e3 Name workbook tests for the mapping they check, require dataDescription
Tests stop at the rule builder, so name them for the mapping, not an import.
Both callers pass dataDescription, so drop its unused default. Fix H3K4me27
to H3K27me3 in workbook_example_4.tsv.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 07:54:47 -04:00
John ChiltonandClaude Opus 5.5 f942bfa8ad Test workbook-based dataset and collection import end to end
Galaxy infers the rule builder mapping from a workbook's column headers -
which spellings it recognises, and how two URL columns per row become paired
elements. Unit tests cover the server's header parsing and the client's
forBuilder, but no browser test drove the wizard's workbook upload through to
the rule builder. Upload each example workbook and assert the mapping the
rule builder opens with.

Extracts set_file_input: the Playwright/Selenium split for attaching a file was
copied three times in upload_activity_helpers. Adds rule_builder_show_and_get_source,
the read side of rule_builder_set_source, collapsing the copy in test_uploads.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 07:54:47 -04:00
mvdbeek 9c7025aacd Replace GitHub raw content URLs with local mock HTTP server in tests
Remove skip_if_github_down decorators from 20 tests across 9 files by
serving test data from the local mock HTTP server. Enhances the mock
server with file_path support, HEAD requests, and HTTP range requests
(206 Partial Content). For unit tests that run data_fetch.main()
directly, writes a file_sources.json with 127.0.0.0/24 in the
fetch_url_allowlist so the local server passes URI validation.
2026-03-13 12:19:55 +01:00
Leonid Kostrykin e020ad94de Employ more diverse DICOM test data 2026-01-19 17:56:27 +01:00
Leonid Kostrykin 329d130b7f Add test for content assertions with bool image 2026-01-03 11:59:13 +01:00
Nate Coraor 443c5cdd7c Drop python wrapper for cat1, modernize 2025-09-25 17:38:31 +02:00
guerler 57633c35bb Use consistent naming for added test csv 2025-05-04 09:04:15 -04:00
guerler 019a093a63 Add to upload test, test file is an actual geocsv 2025-05-03 18:30:08 -04:00
Leonid Kostrykin 2c2efe8203 Make im8_uint16.tif tiled so we have a test for is_tiled=True 2025-03-25 14:36:42 +01:00
Leonid Kostrykin f3ded28c03 Rename im9_multipage.tif -> im9_multiseries.tif 2025-03-25 14:36:42 +01:00
mvdbeek eb1709fcbb Merge branch 'release_24.2' into dev 2025-03-08 11:20:03 +01:00
mvdbeek 07a4a7c058 Fix directory uploads, use `__FETCH_DATA__` api
for tool tests, which were still using upload1.
2025-02-25 18:10:10 +01:00
Leonid Kostrykin 9a8d944fbc Remove im_corrupted.tif test case 2024-11-21 17:04:07 +01:00
Leonid Kostrykin 02cb43bbeb Merge branch 'dev' into image-metadata/dev 2024-11-12 22:34:05 +01:00
Wolfgang Maier e79ec30d4f Fix linting and add test 2024-10-21 13:35:15 +02:00
Leonid Kostrykin 685f6538df Add test for corrupted TIFF file and fix metadata extraction for that case 2024-10-09 09:21:23 +02:00
Leonid Kostrykin 611739834e Add test for empty TIFF file (no metadata available) 2024-10-09 08:45:38 +02:00
Leonid Kostrykin 48b1808d06 Rename series -> page
This is more consistent with the terminology used in https://github.com/cgohlke/tifffile/blob/8a25a0d4738390af0a1f693705f29875d88fc320/tifffile/tifffile.py#L4676
2024-10-09 08:29:56 +02:00
Leonid Kostrykin f9251ee658 Add support for TIFF files with multiple series 2024-10-08 23:44:58 +02:00
Leonid Kostrykin 371264ca90 Add test for TYX axes 2024-09-25 18:02:05 +02:00
Leonid Kostrykin 253b550e15 Add test for ZYX axes 2024-09-25 17:11:26 +02:00
Leonid Kostrykin 1050983124 Add test for ZCYX axes 2024-09-25 16:59:32 +02:00
Leonid Kostrykin 0bf9266627 Add support for YXCS axes in asserts/image.py 2024-09-25 13:21:47 +02:00
Nicola Soranzo aeeef1d578 Update ruff to 0.6.1
Since 0.6.0, ruff checks also Jupyter notebook files by default:

https://astral.sh/blog/ruff-v0.6.0
2024-08-17 18:58:38 +01:00
Leonid Kostrykin 4fffff6db6 Add float TIFF test case (fails with Pillow) 2024-03-19 22:03:34 +01:00
Leonid Kostrykin 711fd6a262 Remove unrequired test file 2024-02-28 12:08:22 +01:00
Leonid Kostrykin e034928e2f Fix bugs 2024-02-27 21:54:23 +01:00
Leonid Kostrykin 3bb63ee5fa Add functional test for image_diff 2024-02-27 19:22:33 +01:00
John Chilton 1f56fa37d7 WIP: metadata validation. 2023-06-06 10:02:29 +02:00
Greg Watson 8dc38e6e4c Add support for visualizing HDF5 datasets. This contribution is split into two parts: the visualization plugin and backend changes. The client code integrates the h5web visualizer into Galaxy (https://h5web.panosc.eu). The backend changes add the ability to access the contents of a dataset without needing to read the whole dataset, which is essential for large files. It is based on the h5grove API (https://github.com/silx-kit/h5grove). 2023-05-04 20:48:15 -04:00
Nicola Soranzo a850a47419 Update pysam depedency to 0.20.0
Fix `pysam.index()` calls which now use samtools 1.16 where
`samtools index input output` doesn't work any more if `output` is the path
of an already existing file, but `samtools index -o output input` works
fine.

Also:
- Pre-create the (empty) index file for mock test datasets as a unit test
  reproducer of the above issue.
- Fix `test_cram` unit test that wasn't checking the return value of
  `CRAM.set_index_file()`, which was in fact returning False because
  `test-data/2.cram` was not sorted (updated now).
2023-01-01 03:37:53 +00:00
John Davis e736bedca6 Add connectivity table test dataset 2022-11-18 18:24:54 -05:00
John Chilton 9d18c91aca Display dataset source transform information. 2021-11-12 11:42:21 -05:00
Alexander OSTROVSKY d88b72f1e0 added sniffer for yaml
import order

Better sniff for big files, removed extraneous comments

Better test for bigger files

lint

safe load, yaml error

typo
2021-09-20 13:07:20 -07:00
Matthias Bernt bb9e7f49a1 fix the to_inchi converter
which had the wrong id: CONVERTER_mol_to_mol2
therefore the test was not executed before
2021-07-01 15:08:49 +02:00
Matthias Bernt 109ba3b698 move test data for molecules converters 2021-06-29 14:06:39 +02:00
Matthias Bernt fe5fd8282d test-data: move 2.cram and link to datasets test 2021-06-29 10:47:23 +02:00
Matthias Bernt fad108f12f add a bit of docs to the add tags tool
and extend test for group tags
2021-04-21 11:45:07 +02:00
Nicola Soranzo 283ec1772f Merge branch 'release_20.09' into release_21.01 2021-03-12 17:12:04 +00:00
Nicola Soranzo 3506abcc80 Fix `metadata_bcf` framework test
Somewhere between file/libmagic 5.36 and 5.39, the output of `file` on a
`.csi` file changed, breaking the ``metadata_bcf`` framework test with
the following error:

```
        if found_exceptions:
>           raise JobOutputsError(found_exceptions, job_stdio)
E           galaxy.tool_util.verify.interactor.JobOutputsError: Output output_of_input_metadata:  different than expected, difference (using contains):
E           ( /tmp/tmpu1a3dgjcbcf_index_metadata_test.txt v. /tmp/tmpkt78tzggbcf_index_metadata_test.txt )
E           Failed to find 'gzip compressed data, extra field' in history data. (lines_diff=0):

lib/galaxy/tool_util/verify/interactor.py:1222: JobOutputsError
```

So add a requirement for the latest `file` version and update the test
accordingly.
2021-03-11 20:21:00 +00:00
Marius van den Beek c148445e6c Merge pull request #10880 from bernt-matthias/topic/options-fallback-name
Dynamic select parameters: also allow to choose legal options by name
2021-01-13 12:00:08 +01:00
Matthias Bernt 365e5a75c2 make 2nd column of 2.tabular test data unique values
in preparation of a test for chosing selects per name
2021-01-12 13:44:58 +01:00
Matthias Bernt 08810b2174 add empty test file 2021-01-08 12:43:37 +01:00
John Chilton 7c13c03dd6 Fix Galaxy tool/workflow staging and refactor for reuse in Planemo. 2020-08-01 10:34:46 -04:00
almahmoud 549c76a779 Add VCF_BGZIP to VCF converter 2020-07-25 01:33:02 +01:00