roh.phase {gwid} | R Documentation |
runs of homozygosity
Description
runs of homozygosity
Usage
## S3 method for class 'phase'
roh(
phase,
gwas,
w = 10,
fun = c("sum", "mean"),
snp_start,
snp_end,
roh_mat = FALSE,
...
)
Arguments
phase |
An object of class phase. Output of |
gwas |
object of class gwas |
w |
window size |
fun |
an aggregate function. either “sum” or “mean” |
snp_start |
select starting position of snps. |
snp_end |
select ending position of snps. |
roh_mat |
return roh as matrix |
... |
other variables |
Value
the output will be a result_snps (data.table) object including 3 columns including, “snp_pos”, “case_control”, and “value”
[Package gwid version 0.2.0 Index]