GSA correctness fixes (review, area 2) - #311
Merged
Merged
Conversation
- The first label given is group 1. It was the alphabetical first, so the
baseline -- and every Up and Down -- depended on spelling ('WT, KO'
compared against KO). The result now says which groups were compared,
in which order. (Which way ReactomeGSA's sign points is not stated in
its docs, so it is not claimed.)
- An R write.table header, one cell short of the rows, kept its first
sample; header[1:] dropped it and misaligned every label.
- A CSV upload is converted to tab-separated before it is submitted; the
service reads only tabs, and a CSV went through unconverted.
- Files are decoded the same way at validation and at submit: UTF-8,
UTF-16, or Windows-1252. A 1252 file passed validation, was labelled,
then failed every retry at submit.
- Validation is bounded (1,000 samples; blank lines count towards the read
limit) and, with the matrix read at submit, runs off the event loop.
- The wait retries a failed poll or result fetch up to four times; one
502 used to lose a finished run. A failure now gives the analysis id.
Checked end to end in a browser against a recording stand-in for
ReactomeGSA: the melanoma TSV and the same matrix as CSV both submit
tab-separated with 16 samples and group1=MOCK, and finish.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These come from the max-level review of the chat flow. Each was reproduced by the reviewer.
group1/group2came from a case-sensitivesorted(), so the baseline depended on spellingwrite.tableheader (no gene-column cell) lost its first sampleMatrix.textreturns tab-separated textdecode()for both: UTF-8 (with BOM), UTF-16, Windows-1252validateand the matrix read run viato_threadBrowser
run_flow.pyran against a stand-in ReactomeGSA that replays the recorded service responses and records what the chat submits. Two runs: the melanoma TSV, and the same matrix as a CSV. Both submitted tab-separated data with 16 samples and{"group1": "MOCK", "group2": "MCM"}, finished, and offered the 2,679-row table to download. The result reads "Compared: MOCK (group 1, the first label you gave) with MCM (group 2)."Not changed
rnaseq_counts; the review rated this medium. Proteomics and microarray uploads need asking which kind of data the reader has../checks.shpasses.🤖 Generated with Claude Code