caitiecollins / treeWAS

treeWAS: A Phylogenetic Tree-Based Tool for Genome-Wide Association Studies in Microbes
Other
92 stars 18 forks source link

No polymorphism detected #42

Closed ywx1 closed 2 years ago

ywx1 commented 4 years ago

Hi! I was running the snp part of the code for 1000 sequences for one gene. There are polymorphisms in these sequences, including insertions and deletions. They have been aligned by MUSCLE, and I have checked that there ARE polymorphisms. However, when I entered mat<-DNAbin2genind(dna)@tab

it says No polymorphism detected - returning NULL. Error in FUN(X[[i]], ...) : trying to get slot "tab" from an object of a basic class ("NULL") with no slots

I don't have this problem for all genes, just for a selected few. I was wondering why this is so?

Thank you! ywx1