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 build_phase
function
- 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”