[BioC] Error with unique

Sean Davis seandavi at gmail.com
Tue Apr 6 03:55:31 CEST 2010


On Mon, Apr 5, 2010 at 9:51 PM, Erik Wright <eswright at wisc.edu> wrote:
> Hi all,
>
> I am using the unique(x) function with a DNAStringSet in one of my own functions.  Recently my function has started returning an error, and I am not sure what changed.  The same line of code works fine in the R Console, just not in my function.  I am using the function as:
>
> myDNAStringSet <- unique(myDNAStringSet)
>
> When I run my function the error returned is:
>
> Error in unique.default(myDNAStringSet) :
>  unique() applies only to vectors
>
> I am guessing that the R is trying to apply the unique function in the base package to the DNAStringSet rather than using the unique function in the Biostrings package.  Is there a solution to this?
>

Hi, Erik.  A reproducible example and sessionInfo() would be helpful.

Sean



More information about the Bioconductor mailing list