Skip to content
Snippets Groups Projects
Commit 0b3b449c authored by Graham McVicker's avatar Graham McVicker
Browse files

non-intuitive map_weight calculation script

parent 9b5a0ac2
No related branches found
No related tags found
No related merge requests found
use strict;
my $marker_feature_in = shift;
my $marker_hits_in = shift;
open MARKER_FEATURES, $marker_feature_in or die;
open MARKER_HITS, $marker_hits_in or die;
my %marker_hit_hash;
while(<MARKER_HITS>) {
my ($id, $count) = split;
$marker_hit_hash{$id} = $count;
}
close MARKER_HITS;
while(<MARKER_FEATURES>) {
chomp;
my @row = split;
$row[-1] = $marker_hit_hash{$row[1]};
print join("\t", @row) . "\n";
}
close MARKER_FEATURES;
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment