Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: motif finding

by RichardK (Vicar)
on Jan 31, 2012 at 14:19 UTC ( #950981=note: print w/ replies, xml ) Need Help??


in reply to Re: motif finding
in thread motif finding

I think using File::Slurp is even easier and more perl-ish :)

use File::Slurp; # read file as a string my $text = read_file('dna.txt'); # now remove whitespace including line breaks $text =~ s/\s+//g; # ...do stuff
(update : removed a stray space)


Comment on Re^2: motif finding
Download Code
Replies are listed 'Best First'.
Re^3: motif finding
by devi (Initiate) on Feb 03, 2012 at 06:08 UTC

    Thank you very much for the reply. In the code that i have used i am giving the input (the motif sequence). considering entire genome as a single string if i want the most repeated elements of say 20 base pairs in the entire string how can i find it?

      I'm not sure what you're looking for, can you explain with a simple example?

      Are you looking for repeats of given string or something more complex?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://950981]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2015-07-07 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls