The object is a data.frame with 17 columns.
data(snpPositionDemo)The data.frame containing the information about the
synthetic profiles. The data.frame contains 4 columns:
cnt.tota integer representing the number of reads at
the SNV position.
cnt.refa integer representing the number of reads
corresponding to the reference at the SNV position.
cnt.alta integer representing the number of reads
different than the reference at the SNV position.
snp.posa integer representing the position of the
SNV on the chromosome.
snp.chra integer representing the chromosome on which
the SNV is located.
normal.genoa integer representing the genotype
(0=wild-type reference; 1=heterozygote; 2=homozygote alternative;
3=unkown).
pruneda logical indicated if the SNV is pruned.
snp.indexa integer representing the index of the
SNV in the reference SNV GDS file.
keepa logical indicated if the genotype
exists for the SNV.
heteroa logical indicated if the SNV is
heterozygote.
homoa logical indicated if the SNV is homozygote.
block.ida integer representing the block identifier
associated to the current SNV.
phasea integer representing the block identifier
associated to the current SNV.
lapa numeric representing the lower allelic
fraction.
LOHa integer indicating if the SNV is in an LOH
region (0=not LOH, 1=in LOH).
imbARa integer indicating if the SNV is in an
imbalanced region (-1=not classified as imbalanced or LOH, 0=in LOH;
1=tested positive for imbalance in at least 1 window).
freqa numeric representing the frequency of the
variant in the the reference.
The data.frame containing the information about the
synthetic profiles. The data.frame contains 4 columns:
cnt.tota integer representing the number of reads at
the SNV position.
cnt.refa integer representing the number of reads
corresponding to the reference at the SNV position.
cnt.alta integer representing the number of reads
different than the reference at the SNV position.
snp.posa integer representing the position of the
SNV on the chromosome.
snp.chra integer representing the chromosome on which
the SNV is located.
normal.genoa integer representing the genotype
(0=wild-type reference; 1=heterozygote; 2=homozygote alternative; 3=unkown).
pruneda logical indicated if the SNV is pruned.
snp.indexa integer representing the index of the
SNV in the reference SNV GDS file.
keepa logical indicated if the genotype
exists for the SNV.
heteroa logical indicated if the SNV is heterozygote.
homoa logical indicated if the SNV is homozygote.
block.ida integer representing the block identifier
associated to the current SNV.
phasea integer representing the block identifier
associated to the current SNV.
lapa numeric representing the lower allelic fraction.
LOHa integer indicating if the SNV is in an LOH region
(0=not LOH, 1=in LOH).
imbARa integer indicating if the SNV is in an
imbalanced region (-1=not classified as imbalanced or LOH, 0=in LOH;
1=tested positive for imbalance in at least 1 window).
freqa numeric representing the frequency of the
variant in the the reference.
This dataset can be
used to test the calcAFMLRNA and tableBlockAF
internal functions.
## Loading demo dataset containing SNV information
data(snpPositionDemo)
## Only use a subset of heterozygote SNVs related to one block
subset <- snpPositionDemo[which(snpPositionDemo$block.id == 2750 &
snpPositionDemo$hetero), c("cnt.ref", "cnt.alt", "phase")]
## Compute the log likelihood ratio based on the coverage of
## each allele in a specific block
result <- RAIDS:::calcAFMLRNA(subset)
head(result)
#> $lR
#> [1] 4.057862
#>
#> $aFraction
#> [1] 0.3389831
#>
#> $nPhase
#> [1] 0
#>
#> $sumAlleleLow
#> [1] 60
#>
#> $sumAlleleHigh
#> [1] 117
#>