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
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
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
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