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 with genotype function #19

Closed
amr15 opened this issue Feb 18, 2022 · 1 comment
Closed

error with genotype function #19

amr15 opened this issue Feb 18, 2022 · 1 comment

Comments

@amr15
Copy link

amr15 commented Feb 18, 2022

Hi,
Do you have any suggestions on the following error popping up after running the genotype function in the pileup_and_phase.R script?

Error in as.list.default(X) :
no method for coercing this S4 class to a vector

VCF files from cellsnplite seem to be fine.
Thanks!

@teng-gao
Copy link
Collaborator

teng-gao commented Feb 18, 2022

Thanks for reporting this. My best guess is that there was an issue with the bind_rows here:
https://github.com/kharchenkolab/numbat/blob/main/R/genotyping.R#L9-L12
Maybe the objects were not in the right class. To debug, I would manually read in the vcf and check if get_snps(vcf) gives the desired result (a data.frame with SNP information).
Any additional information (how you ran the script, vcf output) would be helpful for me to reproduce the error.

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