Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Parsing .2bit DNA files

by bart (Canon)
on Mar 06, 2008 at 21:39 UTC ( #672605=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        # Parse header
        my ($sig, $ver, $cnt, $reserved) = unpack('l4', $raw);
    
        # TODO: validate (signature, reverse byte order, version)
        return {SIG => $sig, VER => $ver, CNT => $cnt, RSV => $reserved};
    
  2. or download this
    for my $template ("N", "V") {
        # Parse header
    ...
    }
    # no match: not a .2bit header
    return undef;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-09-23 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls