Re: [R-sig-phylo] Does anyone know about a function to remove redundancy from a database?

2013-02-19 Thread Emmanuel Paradis
Hi, Or use haplotype() in pegas. Emmanuel -Original Message- From: Klaus Schliep Sender: r-sig-phylo-boun...@r-project.org Date: Tue, 19 Feb 2013 15:15:13 To: Luiz Max Carvalho Cc: Subject: Re: [R-sig-phylo] Does anyone know about a function to remove redundancy from a database? Hi

Re: [R-sig-phylo] Does anyone know about a function to remove redundancy from a database?

2013-02-19 Thread Luiz Max Carvalho
Great! Thank you! 2013/2/19 Klaus Schliep > 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 wrot

Re: [R-sig-phylo] Does anyone know about a function to remove redundancy from a database?

2013-02-19 Thread Klaus Schliep
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 wrote: > I've been looking for a function that could scan a DNAbin ob

[R-sig-phylo] Does anyone know about a function to remove redundancy from a database?

2013-02-19 Thread Luiz Max Carvalho
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. ht