scoreInvHapRes-class: scoreInvHapRes instances

Description Usage Arguments Value Methods (by generic) Slots Examples

Description

Container with the results of the classification pipeline

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## S4 method for signature 'scoreInvHapRes'
classification(object, minDiff = 0, callRate = 0, inversion = TRUE)

## S4 method for signature 'scoreInvHapRes'
certainty(object)

## S4 method for signature 'scoreInvHapRes'
diffscores(object)

## S4 method for signature 'scoreInvHapRes'
maxscores(object)

## S4 method for signature 'scoreInvHapRes'
numSNPs(object)

## S4 method for signature 'scoreInvHapRes'
plotCallRate(object, callRate = 0.9, ...)

## S4 method for signature 'scoreInvHapRes'
plotScores(object, minDiff = 0.1, ...)

## S4 method for signature 'scoreInvHapRes'
propSNPs(object)

## S4 method for signature 'scoreInvHapRes'
scores(object)

Arguments

object

scoreInvHapRes

minDiff

Numeric with the threshold of the minimum difference between the top and the second score. Used to filter samples.

callRate

Numeric with the threshold of the minimum call rate of the samples. Used to filter samples.

inversion

Logical. If true, haplotypes classification is adapted to return inversion status. (Default: TRUE)

...

Further parameters passed to plot function.

Value

A scoreInvHapRes instance

Methods (by generic)

Slots

classification

Factor with the individuals classification

scores

Simmilarity scores for the different haplotypes.

numSNPs

Numeric with SNPs used to compute the scores.

certainty

Numeric with the certainty of the classification for each individual.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
if(require(VariantAnnotation)){
    vcf <- readVcf(system.file("extdata", "example.vcf", package = "scoreInvHap"), "hg19")

    ## Create scoreInvHapRes class from pipeline
    res <- scoreInvHap(vcf, inv = "inv7_005")

    ## Print object
    res

    ## Get haplotype classification
    classification(res)

    ## Get similiraty scores
    scores(res)
}

isglobal-brge/snpfier documentation built on Feb. 10, 2021, 3:29 a.m.