Prints a segregating sites matrix.

# S3 method for 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

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)
#> [,1] [,2] [,3] [,4] [,5] #> [1,] 1 1 1 1 0 #> [2,] 0 1 1 1 0 #> [3,] 0 0 0 1 0 #> [4,] 0 0 0 0 0 #> [5,] 0 0 0 0 0