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

Utility for subsetting a vcf #22

Open
KuankuanHu opened this issue Oct 30, 2024 · 0 comments
Open

Utility for subsetting a vcf #22

KuankuanHu opened this issue Oct 30, 2024 · 0 comments

Comments

@KuankuanHu
Copy link

It would be helpful to have a utility for subsetting sections or random sample from a vcf file.
Suggested codes for subsetting in R:

mycols<-colnames(myvcf)[c(1:9, seq(from=10, to=(10+n)-1), ncol(myvcf))]
fwrite(myvcf[,mycols, with = F], sep="\t", file = "test.vcf")
setnames(newvcf, "CHR", "###CHROM")
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

1 participant