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

error while accessing a vcf file #221

Open
sekhwal opened this issue May 13, 2021 · 2 comments
Open

error while accessing a vcf file #221

sekhwal opened this issue May 13, 2021 · 2 comments

Comments

@sekhwal
Copy link

sekhwal commented May 13, 2021

Hi,
I have a vcf file. It is filtered by tassel and save it as vcf.

while accessing the this vcf file to popgenInfo with the following commands, I am getting the following error. Please help me to figure out the issue.

gi_vcf <- read.vcfR( file = "gi-filter-new.vcf", verbose = T )
gi_genind <- vcfR2genind(gi_vcf)

error::::;
Error in extract.gt(x, return.alleles = return.alleles) :
ID column contains non-unique names

@sekhwal
Copy link
Author

sekhwal commented May 13, 2021

I used my unfiltered file and I did not get the above error.
I used following commands: However, when I write the .txt file it is taking very long time to generate file. Is there any way I can filter the input vcf file?

gi_genind <- vcfR2genind(gi_vcf)
class(gi_genind)
gi_genind
gi_genclone <- poppr::as.genclone(gi_genind)
gi_genclone

write.table(gi_genclone, file = "gi_vcfR.txt", sep = "\t",
row.names = TRUE, col.names = NA)

@zkamvar
Copy link
Contributor

zkamvar commented May 14, 2021

You might benefit from the documentation for vcfR on this matter: https://knausb.github.io/vcfR_documentation/filtering_data.html

Otherwise, if you are still having issues, the best place to ask search for answers or ask questions would be the developer's GitHub page: https://github.com/knausb/vcfR/issues

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