powered by
Transfer SNP codes (1, 2, -) and SNP ids (0, 1, 2).
snp2sid(snpseq) sid2snp(sidseq)
snp2sid returns a numerical vector containing SNP ids, and
snp2sid
sid2snp returns a character vector containing SNP codes.
sid2snp
a character vector contains SNP codes, 1, 2, or -.
a numerical vector contains SNP ids, 0, 1, or 2.
Wei-Chen Chen wccsnow@gmail.com
This function is based on the internal object .snp to transfer SNP codes and SNP ids.
.snp
Phylogenetic Clustering Website: https://snoweye.github.io/phyclust/
.show.option, .snp, code2nid, nid2code, code2snp, snp2code.
.show.option
code2nid
nid2code
code2snp
snp2code
if (FALSE) { library(phyclust, quiet = TRUE) a <- c("1", "2", "1", "-", "2") snp2sid(a) sid2snp(snp2sid(a)) }
Run the code above in your browser using DataLab