4 #use IO::Unread qw(unread);
5 use Term
::ANSIColor
qw(:constants);
6 use Data
::Dump
qw(ddx);
8 die "Usage: $0 <out> <input1> [input2 ...]\n" if @ARGV < 2;
11 my $psif='./Rice.psi';
13 my (@psid,$tmp,%ANNO,%INPUTIDS);
14 open PSI
,'<',$psif or die "Error: $!\n";
17 $tmp = (split /\t/,$_)[1];
20 #print "[$tmp_line]\n";
24 warn GREEN
,BOLD
,$tmp,RESET
," ProbeSets loaded.\n";
29 next unless exists $dat[1];
30 $ANNO{shift @dat} = \
@dat;
33 warn GREEN
,BOLD
,$tmp,RESET
," ProbeSets Found.\n";
35 if ($tmp < $#psid + 1) {
38 unless (exists $ANNO{$_}) {
44 if ($tmp > $#psid + 1) {
47 unless (exists $INPUTIDS{$_}) {
53 open O
,'>',$out or die "Error: $!\n";
55 print O
join("\t",$_,@
{$ANNO{$_}}),"\n";
60 perl merge_crep_anno
.pl crep_anno_merged
.tsv crep_anno_tsv
.all
.txt crep_anno_tsv
.txt
*
61 wc
-l crep_anno_merged
.tsv