print.DNAmat_class: Print DNA sequences

Description Usage Arguments Details Examples

View source: R/print_DNAmat_class.R

Description

Prints a segregating sites matrix.

Usage

1
2
## S3 method for class 'DNAmat_class'
print(DNAmat, ...)

Arguments

DNAmat

either a segregating sites matrix or single-nucleotide polymorphism. See SNP for explanation.

...

arguments passed on from print.

Details

It is used for printing the simulated segregating sites matrix from simDNAseq and the SNP matrix from SNP.

Examples

1
2
3
4
5
6
7
SegSitesMat <- matrix(c(1, 1, 1, 1, 0,
                        0, 1, 1, 1, 0,
                        0, 0, 0, 1, 0,
                        0, 0, 0, 0, 0,
                        0, 0, 0, 0, 0), byrow=T, nrow=5)
class(SegSitesMat) <- "DNAmat_class"
print(SegSitesMat)

aumath-advancedr2019/simDNA documentation built on Nov. 27, 2019, 11 a.m.