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

Getting the intersect between two genotype dataset #3571

Open
iris-garden opened this issue May 6, 2024 · 0 comments
Open

Getting the intersect between two genotype dataset #3571

iris-garden opened this issue May 6, 2024 · 0 comments
Labels
discourse migrated from discuss.hail.is

Comments

@iris-garden
Copy link
Owner

Note

The following post was exported from discuss.hail.is, a forum for asking questions about Hail which has since been deprecated.

(Dec 12, 2023 at 19:01) chuanfuyap said:

Hi All, I am struggling with getting the intersect of of variants between two genotype dataset that I have converted to matrix table.

I tried following tutorial and cheatsheet. Unfortunately I keep getting error after error.

Is there anything that is equivalent just doing

intersect_variants=set(variant_genotype1) & set(variant_genotype2) `

then running an indexing function on one of the matrix table? Like if it was pandas, it would be genotype.loc[intersect_variants]

@iris-garden iris-garden added the discourse migrated from discuss.hail.is label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discourse migrated from discuss.hail.is
Projects
None yet
Development

No branches or pull requests

1 participant