Learn R Programming

snpEnrichment (version 1.7.0)

print-methods: Print method (S4)

Description

print is a generic function used to print results.

Usage

## S3 method for class 'Enrichment':
print(x, what = "Genome", type = c("eSNP", "xSNP"))

## S3 method for class 'Chromosome': print(x, type = c("eSNP", "xSNP"))

Arguments

x
[Enrichment or Chromosome]: an object of class Enrichment or Chromosome.
what
[character or numeric]: what="Genome" (default) to print results as a matrix. what could be "All", "Genome" or a numeric from 1 to 22 (numeric vector is allowed).
type
[character]: select if results for "eSNP" and/or "xSNP" should be print.

Value

  • Return a matrix for classes Enrichment and Chromosome.

See Also

Overview : snpEnrichment-package Classes : Enrichment, Chromosome, EnrichSNP Methods : plot, reSample, getEnrichSNP, excludeSNP, compareEnrichment, enrichment, is.enrichment, chromosome, is.chromosome Functions : initFiles, writeLD, readEnrichment

Examples

Run this code
data(toyEnrichment)
print(toyEnrichment, "All", type = "eSNP")
print(toyEnrichment, "Genome")
print(toyEnrichment, 1)

Run the code above in your browser using DataLab