Learn R Programming

inveRsion (version 1.20.0)

getInv-methods: gets "scan" into a matrix

Description

Each row of the matrix represents a trial segment of fixed window size, for which the inversion model has been fit. It lists the left and right brake-points and output of the fitting: Log-likelihood ratio, probability of inversion, entropy, BIC (Bayes Information Criterion) and number of haplotypes.

Usage

getInv(object, thBic, rnd, Like)

Arguments

object
scan. Cromosome scanned for inversions with trial segments of fixed window size.
thBic
numeric. BIC threshold above which data is retrieved.

rnd
logic. Whether round matrix elements.

Like
numeric. Log-likelihood ratio threshold above which data is retrieved.

Value

matrix.

Methods

signature(object = "scan")
returns matrix with output of inversion model for each trial segment

Details

Matrix with output of scanInv. Each row corresponds to a trail segments with given brake points and significance measures for the inversion model.

Examples

Run this code
data(scanRes)
a<-getInv(scanRes,thBic=2500)
a

Run the code above in your browser using DataLab