rystanley / genepopedit

Simple and flexible manipulation of genomic data.
15 stars 4 forks source link

Converter does not work for haploid #8

Open krostifangers opened 6 years ago

krostifangers commented 6 years ago

Hi I would like to use your package, but it seems to not handle haploid data. As Genepop does it, would it be possible to get your package work for SNP data of most of microorganisms ?? Thank you in advance Christophe

rystanley commented 6 years ago

Christophe

You are right that genepopedit is not designed to handle haploid data. Theoretically we could build in an option (i.e. haploid=T) that could augment the character splitting arguments to process as it does for diploid data. This would not work for functions such as genepop_allelefreq() and genepop_toploci().

What functions were you interested in? If it is a specific function, we might be able to build a custom fix. If it is relatively painless we could build a haploid compatibility into the comparable functions in the next genepopedit build/release.

Ryan