Skip to content

Conversation

KoalaQin
Copy link
Contributor

@KoalaQin KoalaQin commented Oct 30, 2024

As suggested by Chris, we're filtering VDS to trios by hl.vds.filter_samples, which will greatly drop the number of variants to the ones with at least one ALT allele in the trio samples; Also, this function has been only used once in gnomad_qc, annotate_adj has been used twice before, it will be removed from this function.

It will not pass the checks if I changed the function name, should I just write another function?

@KoalaQin KoalaQin self-assigned this Oct 30, 2024
@KoalaQin KoalaQin requested a review from klaricch October 30, 2024 13:01
@KoalaQin KoalaQin requested a review from klaricch October 30, 2024 16:59
@KoalaQin KoalaQin changed the title Change filter_mt_to_trios to filter_vds_to_trios Change filter_mt_to_trios to also filter on vds Oct 30, 2024
if isinstance(t, hl.MatrixTable):
t = t.filter_cols(hl.is_defined(fam_ht[t.col_key]))
elif isinstance(t, hl.vds.VariantDataset):
t = hl.vds.filter_samples(t, fam_ht)
Copy link
Contributor

Choose a reason for hiding this comment

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

will the loss of sites impact the trio stats?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean for the ones that are present in these trios?

Copy link
Contributor Author

@KoalaQin KoalaQin Oct 31, 2024

Choose a reason for hiding this comment

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

I checked this variant, (chr1:12648 ["T","G"]), which has a de novo raw in 1 child, in the trio_stats from last year and the new one, an for parents and children as in raw and adj certainly changed using filter_samples, but it was called as de novo raw either way.

@KoalaQin KoalaQin requested a review from klaricch October 31, 2024 19:19
@KoalaQin KoalaQin merged commit d29acb3 into main Nov 1, 2024
4 of 5 checks passed
@KoalaQin KoalaQin deleted the qh/filter_to_trios branch February 10, 2025 15:46
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.

2 participants