pullX() functions (like pullSegSiteHaplo() and others) grab all loci in the genome (pullSegSiteHaplo(pop)) or all loci on a chromosome (pullSegSiteHaplo(pop, chr = 1)).
Sometimes we want just a short segment of a chromosome. For example, we are developing honeybee extension and have to check csd locus of every bee, which means that we will have to retrieve chromosome with the csd locus for.many individuals, while we need to check only the csd locus. Hence, there will be lots of overhead.
I propose addition of loc argument (or some other name) to pullX() functions to enable retrieval only of the specified region of a chromosome (could provide a list for more regions? lets keep it simple first!).
Looking at code is see we have selectLoci() so maybe we can work around this function?
pullX()
functions (likepullSegSiteHaplo()
and others) grab all loci in the genome (pullSegSiteHaplo(pop)
) or all loci on a chromosome (pullSegSiteHaplo(pop, chr = 1)
).Sometimes we want just a short segment of a chromosome. For example, we are developing honeybee extension and have to check csd locus of every bee, which means that we will have to retrieve chromosome with the csd locus for.many individuals, while we need to check only the csd locus. Hence, there will be lots of overhead.
I propose addition of
loc
argument (or some other name) topullX()
functions to enable retrieval only of the specified region of a chromosome (could provide a list for more regions? lets keep it simple first!).Looking at code is see we have
selectLoci()
so maybe we can work around this function?What do you think @gaynorr?