-
Notifications
You must be signed in to change notification settings - Fork 1
Fst from VariantMatrix #16
Comments
You convert your numpy data to the correct format to make a SimData. See molpopgen/libsequence#35 Alternately, since the memory layout is the same as This is a consequence of no time to work on libsequence. |
Ah... I haven't been able to find in the docs how to convert from numpy to create the SimData. I'm not sure what you mean by "use that or Fst". |
"Just do it"--all you need is Python. The input for a VariantMatrix is a matrix of integers with rows as sites. The input for SimData is a list of strings, where each string is a haplotype. (List of positions is needed for both, of course.)
|
hahaha ok :D |
From the documentation it looks to me like
libsequence.fst.Fst
takes the objectpolytable.SimData
as input. Is that correct?I'm reading in msprime simulations as numpy matrix
So, can
libsequence.fst.Fst
takevariant_matrix.VariantMatrix
orvariant_matrix.VariantMatrix.count_alleles
as input?Or else, how do I calculate Fst from the
VariantMatrix
?The text was updated successfully, but these errors were encountered: