[Biojava-l] GCG Checksums

2002-10-14 Thread Russell Smithies
Hi, Here's a bit of code I wrote last year to calculate the GCG checksums: public int GCGChecksum(String seq){ int count = 0, check = 0; for(int i = 0; i , seq.length(); i++){ count ++; check += count * seq.toUpperCase().charAt(i); if(count == 57)

Re: [Biojava-l] GCG Checksums

2002-10-14 Thread Andrew Macgregor
Hi Russell and Mark, Thanks for the code segment Russell, I see you'd posted it back in Jan/Feb as well, I'd grabbed it from there. I don't think copyright or the like can be too much of an issue as Bioperl has a module to do this. Cheers, Andrew. Russell Smithies wrote: > Hi, > > Here's a

[Biojava-l] Improved GFF filtering

2002-10-14 Thread Matthew Pocock
Hi, I've been tinkering with the GFF code in an effert to make it easier to use. The result is a complete revamp of the gff.GFFFilter demo application. You can use the app to filter a gff stream or file to a stream or file by any of the columns. If you prefix a value with !, then this will match