[galib] Allele sets of integers

Nate Barney barney at chgr.mc.vanderbilt.edu
Mon Dec 15 13:05:15 EST 2003


On Sat, 2003-12-13 at 00:38, siripod surabotsophon wrote:
> Can you try chaning form "unsigned char" to "unsigned
> int" when you declare AlleleSet?

Thanks for your comments.  I tried this, and I get the same result as
with unsigned char (or unsigned short for that matter).

I've dug into the source, and it looks like I just have to specialize
GAAlleleSet<T>::allele() and possibly GAAlleleSet<T>::allele(unsigned
int) for whatever type I'm using.  It looks like Bertrand was on the
right track when he said it was a specialization issue.

There's an example of this in GARealGenome.C.  If anyone's interested in
what I come up with for integers, feel free to email me.

Thanks everyone for your help.



More information about the galib mailing list