Identical() fails in Biostrings package
1
0
Entering edit mode
@kristoffervittingseerup-7310
Last seen 6.5 years ago
European Union

The identical() function fails in Biostrings as can easily be seen from:

> temp1 <- DNAString('AAA')
> temp2 <- DNAString('AGA')
> identical(temp1, temp2)
[1] TRUE

It seems like it only looks at the length:

> temp3 <- DNAString('AGAG')
> identical(temp1, temp3)
[1] FALSE

 

But the == function works:

> temp1 == temp2
[1] FALSE

 

biostrings bug • 989 views
ADD COMMENT
0
Entering edit mode
@herve-pages-1542
Last seen 1 day ago
Seattle, WA, United States

Hi Kristoffer,

Please see Comparing AAStrings using identical() instead of == for an answer to this.

Cheers,

H.

ADD COMMENT

Login before adding your answer.

Traffic: 547 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6