Prints a segregating sites matrix.
# S3 method for DNAmat_class print(DNAmat, ...)
DNAmat | either a segregating sites matrix or single-nucleotide polymorphism.
See |
---|---|
... | arguments passed on from |
It is used for printing the simulated segregating sites matrix from simDNAseq
and the SNP matrix from SNP
.
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