I am trying to calculate population genetic statistics with DendroPy and need help reading my data. I had a SNP .vcf file from 8 individuals of the same specie and the same population. I converted this file into a Phylip file to be able to read it into DendroPy.
Now, I tried to read the data first usingdendropy.DnaCharacterMatrix.get
, but apparently I need two populations to be able to do the analysis. Reading the data with dendropy.DataSet.get
did not work because I need a CharDataSequence to be able to calculate the statistics.
I am working with this two documentation pages: https://dendropy.org/primer/popgenstats.html https://dendropy.org/library/popgenstat.html#module-dendropy.calculate.popgenstat
I am new to Python so any help will be much appreciated!