Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Contiguous characters BLAST

by AnomalousMonk (Archbishop)
on Oct 26, 2011 at 19:34 UTC ( [id://933975]=note: print w/replies, xml ) Need Help??


in reply to Contiguous characters BLAST

The unpack approach is probably fastest, but here's a regex way that doesn't require shortening the output array:

>perl -wMstrict -le "my $len = 4; my $seq = 'qwertyuiop' ;; my @contigs = $seq =~ m{ (?= (.{$len})) }xmsg; printf qq{'$_' } for @contigs; " 'qwer' 'wert' 'erty' 'rtyu' 'tyui' 'yuio' 'uiop'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2024-04-18 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found