-
Notifications
You must be signed in to change notification settings - Fork 0
Automatic phase-2 hand-off: create super cohort and self-submit via analysis-runner #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
joshuamschmidt
wants to merge
55
commits into
main
Choose a base branch
from
auto-phase2-submit
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
3c94edd
edit plink merge fn and filter logic
silkm 3b9901c
update merge tests
silkm df5b39d
add keep samples count check
silkm d136fd8
rename merged_plink intermediate
silkm 70f7795
add guard to keep samples
silkm 61f90ab
set keep_samples to mandatory arg
silkm 3bce15f
rm keep_samples None and [] handling
silkm a28125d
keep_samples simplify for non optional
silkm 83878f7
edit tests for --keep
silkm 65aacf8
swap to cohort stages, bafregress map, merge logic
silkm 0d6ab96
drop legacy resolvers
silkm 36626da
fix config template to use cohort it
silkm a3f5cc7
amend readme for --keep logic
silkm d614aec
fix ibdseq test - swap to cohort stage
silkm 7f61daa
linting fix
silkm 55fdc23
fix docstring
silkm 38aa942
add super-cohort membership, lookup and creation helpers to metamist_…
joshuamschmidt 151042f
add SubmitPhase2 stage creating the super cohort and submitting phase…
joshuamschmidt d45047c
split entry points into first_workflow and second_workflow, require a…
joshuamschmidt 7014928
document the automatic phase-2 hand-off in config template, README an…
joshuamschmidt b974853
accept the VERSION build-arg in the Dockerfile so CI's tag is actuall…
joshuamschmidt 809364b
harden the phase-2 hand-off: explicit bootstrap, raise on excluded SG…
joshuamschmidt 2b4d6b2
pin the driver image to an exact tag and revert the VERSION build-arg…
joshuamschmidt 1b2e06e
create the super cohort with sg_ids_internal as the sole criterion an…
joshuamschmidt 72c44d0
POST the phase-2 submission to the analysis-runner server directly so…
joshuamschmidt 9671aa8
check the sentinel at job runtime and run SubmitPhase2 off spot so a …
joshuamschmidt a4bb214
wait for the plate cohorts Metamist registrations before the phase-2 …
joshuamschmidt f822d9c
pick the latest cohort with identical membership by numeric ID, not l…
joshuamschmidt 77a2753
use loguru and the public config API in the submit job and give the p…
joshuamschmidt 6545338
raise in phase 1 when every plate SG is already in the previous aggre…
joshuamschmidt 8c766d9
declare toml and requests as direct dependencies of the SubmitPhase2 job
joshuamschmidt 5d85716
document the sentinel path, image-tag lookup and which image governs …
joshuamschmidt 13bb247
set keep_samples to mandatory arg
silkm 205d83d
rm keep_samples None and [] handling
silkm 0a270ee
keep_samples simplify for non optional
silkm ca78731
edit tests for --keep
silkm 93b4801
swap to cohort stages, bafregress map, merge logic
silkm 59f8066
drop legacy resolvers
silkm 9ac0132
fix config template to use cohort it
silkm 4f3ac22
amend readme for --keep logic
silkm 36f8fc4
fix ibdseq test - swap to cohort stage
silkm 4db8161
linting fix
silkm bbbf47b
fix docstring
silkm c83b7d0
key phase-2 output filenames on the super-cohort ID so successive agg…
joshuamschmidt 1d1f352
log the merge plan via loguru so it reaches the driver log
joshuamschmidt 5b4bb79
split config into per-phase examples and reject submissions that mix …
joshuamschmidt 61c09b3
add stage-level tests for MergeCohortPlink and QcReport queue_jobs
joshuamschmidt 531a19a
document format_merge_plan totals as informational and index required…
joshuamschmidt fa0861e
fix mypy dict-index error in QcReport stage test
joshuamschmidt c4fcc03
dedupe plate-level BafRegress paths before the QC report merge
joshuamschmidt 8a82b41
ship real Illumina reference paths in the phase-1 config and fix the …
joshuamschmidt e12c743
require exactly one phase-2 cohort at submission and pass config valu…
joshuamschmidt a99b065
drop datestamps from phase-2 output filenames so paths are stable acr…
joshuamschmidt f60ad08
replace the stale pipeline DAG image with a two-phase mermaid diagram
joshuamschmidt 05ce871
Merge remote-tracking branch 'origin/pr3b-two-phase' into auto-phase2…
joshuamschmidt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Binary file not shown.
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This says you can run phase 1 several times to pile up plates, and the final run will scoop them all up automatically. I don't think it will.
The super cohort is built only from the plates listed in the final run's config. So if you did runs A, B as run 1. And then in a run 2 plate C, plates A and B just silently vanish from the aggregate and no error ever fires.
last_stagesso it stops before the hand-off). They just sit there as two separate finished plate cohorts. No super cohort exists yet, because the combining step (SubmitPhase2) wasn't run.previous_aggregate_cohort_idpoints at. It has no memory of run 1. Plates A and B are silently left out.Basically just a README issue, because the fix is to just have the following in run 2's config:
input_cohorts = ['<plate A>', '<plate B>', '<plate C>']