Learn R Programming

PopGenome (version 2.7.2)

count.unknowns-methods: Calculate missing nucleotide frequencies

Description

A generic function to calculate the missing nucleotide frequencies.

Usage

# S4 method for GENOME
count.unknowns(object)

Arguments

object

An object of class "GENOME"

Value

Returned value is a modified object of class "GENOME"

The slot GENOME.class@missing.freqs for the missing frequencies for the whole region. The slot GENOME.class@region.stats@missing.freqs for the missing frequencies for each SNP in a given region

Examples

Run this code
# NOT RUN {
# GENOME.class <- readData("VCF", format="VCF", include.unknown=TRUE)
# GENOME.class@region.stats
# GENOME.class <- count.unknowns(GENOME.class)
# GENOME.class@missing.freqs
# GENOME.class@region.stats@missing.freqs

# }

Run the code above in your browser using DataLab