View source: R/filter_space_loci.R
filter_space_loci | R Documentation |
A function to space loci based on a particular step size. For each chromosome (contig), starting from the first locus, each subsequent locus is assessed with respect to whether it is further than the step size from the previous locus. If a locus is not >= the step size, it will be skipped, and the next locus evaluated.
filter_space_loci(
dat,
chromCol = "CHROM",
posCol = "POS",
locusCol = "LOCUS",
stepSize
)
dat |
Data.table: Contains the information on the genomic context of each
locus, that is, their position and which chromosome/contig they reside on. You can
pass this function a genotype data.table (e.g., as produced from
|
chromCol |
Character: The column name with the chromosome information.
Default = |
posCol |
Character: The column name with the position information.
Default = |
locusCol |
Character: The column name with the locus name information.
Default = |
stepSize |
Integer: the size of steps between loci. |
Returns a vector of loci IDs to be kept.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.