Skip to content

Add UndoEdaStudy step to remove EDA metadata before undoing a single rnaSeq dataset#89

Open
jbrestel wants to merge 1 commit into
masterfrom
worktree-undo-eda-study
Open

Add UndoEdaStudy step to remove EDA metadata before undoing a single rnaSeq dataset#89
jbrestel wants to merge 1 commit into
masterfrom
worktree-undo-eda-study

Conversation

@jbrestel
Copy link
Copy Markdown
Member

Summary

  • Adds UndoEdaStudy.pm WorkflowStep: no-op forward (writes a log file), runs undoEdaStudy.pl --extDbRlsSpec ... --gusConfigFile ... on undo and removes the log file
  • Adds ${name}_rnaSeq_undoEdaStudy step to the rnaSeqExperiment datasetTemplate in rnaseq.xml, depending on ${name}_analyze_rnaSeq_experiment
  • Adds ${name}_ebi_rnaSeq_undoEdaStudy step to the ebiRnaSeqExperiment datasetTemplate in rnaseq.xml, depending on ${name}_ebi_rnaSeq_experiment

Problem

When undoing a single RNAseq study, EDA metadata rows loaded by sampleDetailsForEda (via StudyDealerNextflow) are left in place by design. This blocks the loadDataset undo because FK constraints still reference the dataset record. This step ensures those rows are cleaned up for the specific study before loadDataset is undone.

Test plan

  • Run a workflow with a rnaSeqExperiment dataset and confirm the log file is written to the workflow data dir
  • Undo the dataset and confirm undoEdaStudy.pl is called with the correct --extDbRlsSpec and the log file is removed
  • Confirm loadDataset undo completes cleanly after the EDA metadata is removed

🤖 Generated with Claude Code

…g a single rnaSeq dataset

When undoing a single study, EDA metadata rows left by sampleDetailsForEda block the loadDataset undo. This adds a per-dataset step to rnaSeqExperiment and ebiRnaSeqExperiment templates that runs undoEdaStudy.pl on undo, ensuring EDA metadata is removed before the dataset record is deleted.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jbrestel jbrestel requested review from sufenhu and weili-apidb May 19, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant