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

Re: Sorting Data By Overlapping Intervals

by Eily (Monsignor)
on Oct 31, 2013 at 09:45 UTC ( [id://1060548]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    [
       { start => 1, end => 1001, file => *FH1 },
       { start => 500, end => 2001, file => *FH2 }
    ]
    
  2. or download this
    for each line
       $position = getPosition()
       for $range in @ranges
          print $range->{FH} $line if (($position > $range->{start}) && ($
    +position < $range->{end}))
    
  3. or download this
    SNP:for my $snp (@SNPs) {
            my @get_SNPs = split(/\t/, $snp);
            my $position = $get_SNPs[3];
    ...
                print OUT "@get_SNPs";
            }
        }
    
  4. or download this
    @array = split /\t/, $string;
    my $v1 = $array[1];
    my $v2 = $array[2];
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-25 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found