I am try to search for the number of occurrence of 10 hexamer word in a big file of fasta sequence.
Did you try using BioPerl (http://bioperl.org)?
for($i = 1;$i < 5000;$i++)
for($j = 0;$j <= $#words;$j++)
$result[$i][$j] = 0; # array of 5000 columns of positi
+on and words as columns
If you want to initialise your array for better handling of large data, look there: Re^3: how apply large memory with perl?
. By the way, this initialisation is lost because you initialize an array and work later with a hash reference. strict
would never allow it.
Sorry if my advice was wrong.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||