Repository navigation
MILAB-7208, MILAB-7329: one group label column across grouped datasets; fix the multisample import dialog - #140
Conversation
…es…" and show read errors and empty column lists
|
@greptileai review |
| // A multisample dataset needs a non-empty column list for every file | ||
| (!isMultiSampleType.value || | ||
| parsedFiles.value.every((f) => (columnsByFile.value[f.handle]?.length ?? 0) > 0)) && |
There was a problem hiding this comment.
canCreateOrAdd now checks every selected file, including files excluded by the filename pattern. If a user selects two valid H5AD files and excludes one whose obs has no columns, Create stays disabled even after the matching file has loaded. Both multisample import functions skip unmatched files, so the excluded file should not block import.
Filter by f.match before checking column readiness, and use the same matched-file set for preprocessing and loading messages.
Knowledge Base Used: Import dialogs and composables
Prompt To Fix With AI
This is a comment left during a code review.
Path: ui/src/dialogs/ImportDatasetDialog.vue
Line: 1015-1017
Comment:
**Excluded files block import**
`canCreateOrAdd` now checks every selected file, including files excluded by the filename pattern. If a user selects two valid H5AD files and excludes one whose `obs` has no columns, Create stays disabled even after the matching file has loaded. Both multisample import functions skip unmatched files, so the excluded file should not block import.
Filter by `f.match` before checking column readiness, and use the same matched-file set for preprocessing and loading messages.
**Knowledge Base Used:** [Import dialogs and composables](https://app.greptile.com/-/switch-tenant?tenant=milaboratories&next=%2Fcustom-context%2Fknowledge-base%2Fplatforma-open%2Fsamples-and-data%2F-%2Fdocs%2Fimport-dialogs-and-composables.md)
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.There was a problem hiding this comment.
Fixed in a2101e2: Create now checks only the files the pattern matches, so an excluded file no longer blocks it.
… selected type while the pattern is edited - Pre-fill and save the sample column when adding files to a Multisample Seurat dataset - Run the Seurat parser with Rscript so it works on Docker and Kubernetes backends - Name the parsing jobs parse-h5ad and parse-seurat - Update the SDK to 1.88
|
Automatic reviews are disabled for this repository. Configure in Code Review Settings. |
Fixes two Samples & Data bugs on one branch: group labels across grouped datasets (MILAB-7208) and the multisample H5AD/Seurat import dialog (MILAB-7329). Includes SDK 1.88 and a Seurat parser fix for Docker/Kubernetes.
MILAB-7208 — group labels for every grouped dataset
Problem. Every grouped dataset (Multiplexed FASTQ, Bulk Count Matrix, Multi-sample H5AD/Seurat) uses the same
pl7.app/sampleGroupIdaxis. The block exported onepl7.app/labelcolumn per dataset (dataset.<id>.sampleGroupLabels, with apl7.app/datasetdomain). Label lookups match by axis and take the first matching column, so with two or more grouped datasets, downstream blocks showed "Unlabelled" (findLabelsForColumnAxis) or raw group IDs (findLabels) for all datasets but one.Change (
workflow/src/main.tpl.tengo). One export,sampleGroupLabels, holds the groups of all grouped datasets. It sits on the plain group axis with domain{pl7.app/block}only, the same shape as the sample label column, and is emitted only when a grouped dataset exists.Rejected: making the SDK's
findLabelsmerge all matching columns (changes every block); addingpl7.app/datasetto the group axis domain (breaks joins and existing projects).MILAB-7329 — multisample import dialog
obs/ Seurat metadata has no columns gets a warning. Create stays disabled in both cases.ReactiveFileContentnever loads a 0-byte file, so the dialog treats a 0-byte column list as empty (workaround; the SDK bug is not fixed here).Maintenance
Rscript /app/main.R. Multisample Seurat import failed with "permission denied" on Docker and Kubernetes backends becausemain.Ris not executable.parse-h5adandparse-seurat(shown in errors and Kubernetes job names)..changeset/config.json: block, model, ui and workflow form afixedgroup, so they release with one version.Impact on existing projects
dataset.<id>.sampleGroupLabelsis replaced bysampleGroupLabels. No block in our workspace reads the old name; blocks look labels up by axis. If you know of a consumer that reads it by name, please flag it.Validation
findLabelsall show File IDs; the result pool has onesampleGroupLabelscolumnmux1/mux2/mux3obs, unreadable file, excluded file, Seurat add-more, pattern editmainKnown limitations
mux1).How to test
obscolumns → warning and Create disabled. Edit the pattern → the type stays.