Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: motif finding

by RichardK (Parson)
on Jan 31, 2012 at 14:19 UTC ( [id://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)

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://950981]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-19 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found