[R-sig-phylo] Does anyone know about a function to remove redundancy from a database?
I've been looking for a function that could scan a DNAbin object and return just the unique sequences. Does anyone know about a function for that? Thanks in advance, -- Luiz Max Fagundes de Carvalho, IC, Programa de Computação Científica (PROCC), Fundação Oswaldo Cruz, Rio de Janeiro, Brasil. https://www.researchgate.net/profile/Luiz_Fagundes_de_Carvalho/?ev=prf_info [[alternative HTML version deleted]] ___ R-sig-phylo mailing list - R-sig-phylo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-phylo Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/
Re: [R-sig-phylo] Does anyone know about a function to remove redundancy from a database?
Hi Luiz, phangorn has a generic unique function for phyDat objects. There may be more elegant ways, but this code should work: library(phangorn) y = as.DNAbin(unique(as.phyDat(x))) Cheers, Klaus On 2/19/13, Luiz Max Carvalho luizepidemiolo...@gmail.com wrote: I've been looking for a function that could scan a DNAbin object and return just the unique sequences. Does anyone know about a function for that? Thanks in advance, -- Luiz Max Fagundes de Carvalho, IC, Programa de Computação Científica (PROCC), Fundação Oswaldo Cruz, Rio de Janeiro, Brasil. https://www.researchgate.net/profile/Luiz_Fagundes_de_Carvalho/?ev=prf_info [[alternative HTML version deleted]] -- Klaus Schliep Phylogenomics Lab at the University of Vigo, Spain ___ R-sig-phylo mailing list - R-sig-phylo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-phylo Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/
Re: [R-sig-phylo] Does anyone know about a function to remove redundancy from a database?
Great! Thank you! 2013/2/19 Klaus Schliep klaus.schl...@gmail.com Hi Luiz, phangorn has a generic unique function for phyDat objects. There may be more elegant ways, but this code should work: library(phangorn) y = as.DNAbin(unique(as.phyDat(x))) Cheers, Klaus On 2/19/13, Luiz Max Carvalho luizepidemiolo...@gmail.com wrote: I've been looking for a function that could scan a DNAbin object and return just the unique sequences. Does anyone know about a function for that? Thanks in advance, -- Luiz Max Fagundes de Carvalho, IC, Programa de Computação Científica (PROCC), Fundação Oswaldo Cruz, Rio de Janeiro, Brasil. https://www.researchgate.net/profile/Luiz_Fagundes_de_Carvalho/?ev=prf_info [[alternative HTML version deleted]] -- Klaus Schliep Phylogenomics Lab at the University of Vigo, Spain -- Luiz Max Fagundes de Carvalho, IC, Programa de Computação Científica (PROCC), Fundação Oswaldo Cruz, Rio de Janeiro, Brasil. https://www.researchgate.net/profile/Luiz_Fagundes_de_Carvalho/?ev=prf_info [[alternative HTML version deleted]] ___ R-sig-phylo mailing list - R-sig-phylo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-phylo Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/