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

extractHAIRS for polyploids #82

Open
sinamajidian opened this issue Sep 29, 2019 · 1 comment
Open

extractHAIRS for polyploids #82

sinamajidian opened this issue Sep 29, 2019 · 1 comment

Comments

@sinamajidian
Copy link

Dear Hapcut team
As you may know, most of haplotype assembly algorithms for polyploids use fragment matrix format. It would be great if there is a descent program for extracting such file from BAM and VCF files. It seems that extractHAIRS is capable of generalization to polyploid case.

In a simple case which is of interest of developers, we can consider bi-allelic assumption. Then, we can filter out homozygous variants and second alternative alleles ("0/2"). Also, we can consider SNV only in VCF file and remove complex variants.

To implement that using your code, it seems that the only needed edit is to ignore error checking part of your code readvariant.c. I tried to that and uploaded it here. The differences are highlighted here
I'm looking forward to hear your ideas.
Regards, Sina.

@vibansal
Copy link
Owner

Sorry for the delay in responding to this. We would like to include this functionality in hapcut2, however, it would be important to consider 2nd or 3rd alternative alleles for polyploids for this to be complete.

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

No branches or pull requests

2 participants