open(intersectMethyl,'<',"intersect148methyl.bed") or die $!; my @methylData = ; close(intersectMethyl); my @methylScore; my @ids; for my $line(@methylData){ my($chr,$start,$end,$id,$scoreNormal,$scoreTumor) = split("\t",$line); push(@ids, $id); for ($i = 1; $i= 0.2)){ push(@methylscore, "$chr $start $end $id $scoreNormal $scoreTumor") } } } open(RESULTS,'>','methylDifferences.txt') or die $!; foreach(@methylscore){ print RESULTS "$_\n"; } close(RESULTS);