Open filippob opened 4 years ago
The same applies for genotype <- (strsplit(oneLine, " ")) in slidingRUNS.run
and for genotype <- (strsplit(oneLine, " ")) in consecutiveRUNS.run
: the supported format for .map
and .ped
is space separated values. Did we declare this somewhere in documentation?
We did not specify this in the documentation: therefore we either modify these functions to accept also tab-separated ped files, or make this clear in the manual and vignette.
So the problem is deal with tab separated files, we already discussed this in #10 please refer to #10 for any TAB related issue
This problem is a tab-separated issue similar to #10. The function
readPOPCpp()
reads the genotype file (Plnk ped file) to extract information on sample IDs and the group/population these belong to. This is a non-exported function is used within the functionsnpInsideRunsCpp()
to prepare data for plots (plot_SnpsInRuns
andplot_manhattanRuns
): it works with space-separated ped files, but not with tab-separated ped files, and in this latter case the proportion of SNPs in runs is not computed correctly and goes to Infinity. Perhaps this can be fixed for next release of the package?