Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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: (12)
As of 2015-07-29 11:40 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 (263 votes), past polls