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

Sample chromosome ploidy support for RWB Echo [VS-1500] #9051

Open
wants to merge 2 commits into
base: ah_var_store
Choose a base branch
from

Conversation

mcovarr
Copy link
Collaborator

@mcovarr mcovarr commented Nov 20, 2024

Differs from the "stock" sample_chromosome_ploidy table in having a "bonus" genotype column.

Copy link

@koncheto-broad koncheto-broad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

# the standard `sample_chromosome_ploidy` schema by the addition of the `genotype` column. At the time of this writing
# it is not expected that any additional samples will be loaded into the `echo` dataset, but if there are additional
# samples then this code will match the actual `echo` schema.
String sample_chromosome_ploidy_schema_json = '[{"name": "sample_id","type": "INTEGER","mode": "REQUIRED"},{"name": "chromosome","type": "INTEGER","mode": "REQUIRED"},{"name":"genotype","type":"STRING","mode":"NULLABLE"},{"name": "ploidy","type": "INTEGER","mode": "REQUIRED"}]'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes aren't actually necessary for supporting RWB extract. They likely won't hurt, but they are not necessary for this PR as RWB does not run this wdl.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that's kinda what I was trying to say with the comment. 🙂 It was bugging me that this was out of sync with SchemaUtils.java, even if we're super unlikely to ever need these changes.

Copy link
Collaborator

@gbggrant gbggrant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I had the same comment/question as Aaron. I'm a little concerned about what we will do if we copy the sample_ploidy table from Echo->Foxtrot and then have to deal with that genotype column as we add more samples. But that's not in the scope of this ticket

@mcovarr
Copy link
Collaborator Author

mcovarr commented Nov 20, 2024

I'm a little concerned about what we will do if we copy the sample_ploidy table from Echo->Foxtrot and then have to deal with that genotype column as we add more samples.

I was assuming we would not have a genotype column in the Foxtrot version of sample_chromosome_ploidy so we could just use the code on ah_var_store.

@gbggrant
Copy link
Collaborator

Yeah, that makes sense. So, would we delete that column from the copied table? Or just regenerate it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants