On Tue, Apr 7, 2009 at 2:06 PM, Evgueni Kolossov <[email protected]> wrote:
> Thanks Greg,
>
> Looking like everything is OK - I just converted this string back to vector:
> ExplicitBitVect vRtn(strSSS)
> and got exactly the same vector.

Good! that shows it's working.

>
> Only one thing still confusing:
> This string ("àÿÿÿ") id the same for all of this:
> RDKit::RDKFingerprintMol(*mol)
> RDKit::RDKFingerprintMol(*mol, 1, 7, 2048,4, true, 0.3)
> RDKit::LayeredFingerprintMol(*mol)
>
> but all of them convering back to a DIFFERENT vectors!!!
> And are you sure I should write to database this "àÿÿÿ"?

Remember that this is a binary string, when you print it to the
console, you aren't going to see anything sensible. If you compare the
strings generated by the above molecules using ==, you will see that
they aren't the same.

So yes, it's safe to put in the database as long as you're putting it
in a blob column and you make sure to insert it in such a way that the
whole string gets added (not just up to the first \000).

-greg

Reply via email to