So, I am going to use this a bunch of times. Is this kind of thing best setup up as a custom function or CFC?
-----Original Message----- From: Richard Colman [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 12:11 PM To: CF-Talk Subject: RE: reverse compliment a sequence Well, it needs to be done a character at a time, so, I am not entirely sure that replace ("ACTG","TGAC", "all") would work in all cases. However, Barney's solution is quite elegant! TNX to both of you for helping with a common genomics transformation. Rick. -----Original Message----- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 11:56 AM To: CF-Talk Subject: Re: reverse compliment a sequence >I need to to reverse compliment a nucleotide sequence, so >C become a G >G becomes a C >A becomes a T >T becomes an A >I need to go through a string a character at a time and build a new string. >So: >"ACTG" becomes "TGAC" At first sight, simply replace ("ACTG","TGAC", "all") should do it, but I suspect the problem to be a little more complex, can you give us more detail (may be a link) about what a "nucleotide sequence" may look like? -- _______________________________________ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209454 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

