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

output for phased data #29

Open
erikenbody opened this issue Feb 24, 2021 · 5 comments
Open

output for phased data #29

erikenbody opened this issue Feb 24, 2021 · 5 comments

Comments

@erikenbody
Copy link

Hi there,

Thank you for making this super useful tool! Issue #23 was a really helpful improvement for utilizing heterozygous sites. I was wondering if it would be feasible to include an option for an output file that is two alignments per diploid individual? E.g.

Ind1_A
ATGCAA
Ind1_B
GTACCG

This would provide a reasonable alternative to discarding het sites or selecting them randomly when the data is phased confidently.

Thank you!
Erik

@edgardomortiz
Copy link
Owner

I have been recently working with phased genotypes. I will give it a try, but I am really busy at the moment, I will work on that perhaps on the weekend.

Edgardo

@matthewglasenapp
Copy link

Was this added as a feature? This would be very useful to me as well.

@sofiatorreggiani
Copy link

I would be very interested in this as well.
Thank you!
Sofia

@bbandriola
Copy link

Hi there,
Is there any update about the phasing option?

@chrchang
Copy link

chrchang commented Sep 22, 2023

plink2 (https://github.com/chrchang/plink-ng ; will post precompiled binaries to https://www.cog-genomics.org/plink/2.0/ after I test for a few more hours) now supports this for diploid data. Sample usage:

plink2 --vcf [vcf filename, could be gzipped] --geno [max missing-call rate] --snps-only --export phylip-phased used-sites --out [output filename prefix]

Replace "phylip-phased" with "phylip" for regular phylip output.

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

No branches or pull requests

6 participants