Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    print Dumper \%chrHash;
    
  2. or download this
    Count for chr1 3: 2
    Locations for chr1 3: 100 300
    ...
                                 ]
                        }
            };
    
  3. or download this
    $chrHash{$_} = { %countHash } for @chromosomes;
    
  4. or download this
    map { $chrHash{$_} = { %countHash } } @chromosomes;
    
  5. or download this
    use strict;
    use warnings;
    ...
    if ( first { $line[2] eq $_ } @chromosomes ) {
        print "Found $line[2] using first!\n";
    }
    
  6. or download this
    Found chr5 using grep!
    Found chr5 using first!