snp2sid | R Documentation |
Transfer SNP codes (1, 2, -) and SNP ids (0, 1, 2).
snp2sid(snpseq)
sid2snp(sidseq)
snpseq |
a character vector contains SNP codes, 1, 2, or -. |
sidseq |
a numerical vector contains SNP ids, 0, 1, or 2. |
This function is based on the internal object .snp
to
transfer SNP codes and SNP ids.
snp2sid
returns a numerical vector containing SNP ids, and
sid2snp
returns a character vector containing SNP codes.
Wei-Chen Chen wccsnow@gmail.com
Phylogenetic Clustering Website: https://snoweye.github.io/phyclust/
.show.option
,
.snp
,
code2nid
,
nid2code
,
code2snp
,
snp2code
.
## Not run:
library(phyclust, quiet = TRUE)
a <- c("1", "2", "1", "-", "2")
snp2sid(a)
sid2snp(snp2sid(a))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.