filter_hmp {geneHapR} | R Documentation |
filter variants in hapmap format
Description
filter variants in hapmap format
Usage
filter_hmp(
x,
mode = c("POS", "type", "both"),
Chr = Chr,
start = start,
end = end,
gff = gff,
type = type,
cusTyp = cusTyp,
geneID = geneID
)
Arguments
x |
genotype dataset in hapmap format, object of data.frame class |
mode |
filter mode, one of "POS", "type", "both" |
Chr |
chromosome name, needed if mode set to "POS" or "both" |
start |
start position, needed if mode set to "POS" or "both" |
end |
end position, needed if mode set to "POS" or "both" |
gff |
object of GRanges class, genome annotations imported by
|
type |
filter type, needed if mode set to "type" or "both",
one of "CDS", "exon", "gene", "genome", "custom",
if |
cusTyp |
character vector, custom filter type,
needed if |
geneID |
gene ID |
Examples
# create a dataset of genotype in hapmap format
hmp <- hap2hmp(hapResult);
# example
hmp <- filter_hmp(hmp, mode = "POS",
Chr = "scaffold_1", start = 4100, end = 5000)
[Package geneHapR version 1.2.4 Index]