Skip to content
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

Clone case #52

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Clone case #52

wants to merge 18 commits into from

Conversation

sbreiff
Copy link
Contributor

@sbreiff sbreiff commented Sep 9, 2021

This PR adds a check and action for cloning cases. In this current version, a new meta-wfr is associated with the cloned case(s) but it will be newly created and start from scratch - i.e. we won't be able to specify a particular step to start from and clone the old meta-wfr. We intend to implement that ability in a later version after this first version is in.

get_metadata_for_cases_to_clone check:

  • needs version and accessions kwargs
  • looks up uuid of the metawf that should be attached to the cloned case
  • case ignored if no meta-wfr already on it
  • case ignored if meta-wfr on it is associated with a meta-wf that doesn't have a version specified in the kwarg (e.g., if a case has a mwfr from WGS trio v24, and v25 is the latest version of WGS trio metawf, but v26 was put in the kwarg, then this case will get ignored)
  • case ignored if meta-wfr on it is already the version specified in the kwarg

clone_cases action:

  • clones cases (if its a group analysis, will also clone non-proband cases)
  • clones samples, creates new sample_processing
  • family, individual, fastq items not duplicated but are associated properly
  • new meta-wfr is created with specified version but will start from scratch

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