Login

Join for Free!
116981 members


Distinguish Karyotype from regular text

Everything on bioinformatics, the science of information technology as applied to biological research.

Moderator: BioTeam

Distinguish Karyotype from regular text

Postby JonJacobs » Thu Oct 15, 2009 3:09 pm

In computer-generated reports I produce, I need my software to be able to distinguish between regular text and a karyotype because I need to word-wrap at commas if the text is a karyotype and at spaces if the text is just text.

My current alogorithm isn't 100% reliable, so I need a new one. Any help is appreciated, description in English, pseudo-code, regex (regular expression), or whatever.

Thanks,

Jon Jacobs
JonJacobs
Garter
Garter
 
Posts: 2
Joined: Thu Oct 15, 2009 2:56 pm

Postby JackBean » Thu Oct 15, 2009 10:25 pm

I guess you should first define, what does karyotype look like (I mean in the text, how is it written), what I have actually now idea, so I can't help you. And than it should be quite easy, shouldn't, it?
What kind of text is it? Some plenty sites or just few comments?
http://www.biolib.cz/en/main/

Cis or trans? That's what matters.
User avatar
JackBean
Inland Taipan
Inland Taipan
 
Posts: 5667
Joined: Mon Sep 14, 2009 7:12 pm

Re: Distinguish Karyotype from regular text

Postby JonJacobs » Fri Oct 16, 2009 3:11 pm

JackBean wrote:what does karyotype look like

Yes, I hoped for a reply from someone who knew the rules for karyotype coding. It can be as simple as 46,XY or very complex with enough text to fill this reply box. I look for commas, paretheses, square brackets. There are always commas, but the others may or may not be present. Although I have seen quite a number of karyotype codes, the rules in general are not readily discernable, although there are strict rules. As it stands now, sometimes ordinary text can contain enough clues to fool my algorithm.
JonJacobs
Garter
Garter
 
Posts: 2
Joined: Thu Oct 15, 2009 2:56 pm



Return to Bioinformatics

Who is online

Users browsing this forum: No registered users and 0 guests

cron