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

Feature request: Parameter to use only control samples to calculate the RUTH stats #2

Open
jjfarrell opened this issue Nov 7, 2019 · 3 comments

Comments

@jjfarrell
Copy link

In case-control studies. it would be useful to limit the calculation of the Robust Hardy-Weinberg Equilibrium statistics to just the controls. To specify in the command-line, it would be nice to be able to specify this with a parameter (--controls control.list or --ped file with the affection status). Or just limit the calculation to those ids in the evec file but output all samples in the output.

@hyunminkang
Copy link
Collaborator

hyunminkang commented Nov 7, 2019 via email

@jjfarrell
Copy link
Author

jjfarrell commented Nov 8, 2019 via email

@jjfarrell
Copy link
Author

To run ruth on a subset of samples in the vcf, bcftools can be used to filter and pipe to ruth. Here is an example....

time bcftools view -s ^HG002 adsp5k.cadre.chr$1.norm.ann.pass.vcf.gz |ruth --vcf - --lambda 0 --lrt-em --evec adsp5k.evec --field GT --num-pc 6 --out $VCF_RUTH

@hyunminkang Has there been any progress yet on getting sm-list working?

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