src/hg/utils/phyloTrees/chainNet.pl 1.4
1.4 2010/01/22 18:40:22 hiram
update to a 48-way tree while maintaining same priorities for previous 46-way
Index: src/hg/utils/phyloTrees/chainNet.pl
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/utils/phyloTrees/chainNet.pl,v
retrieving revision 1.3
retrieving revision 1.4
diff -b -B -U 4 -r1.3 -r1.4
--- src/hg/utils/phyloTrees/chainNet.pl 11 Dec 2009 19:26:41 -0000 1.3
+++ src/hg/utils/phyloTrees/chainNet.pl 22 Jan 2010 18:40:22 -0000 1.4
@@ -7,21 +7,27 @@
use warnings;
use FindBin qw($Bin);
use lib "$Bin";
+# new genomes since the 46-way construction. This will keep
+# the priority numbers the same for the previous 46 and place
+# these new ones in between the previous ones.
+my $newAssemblies = "ailMel susScr";
+my $newAssemblyOffset = 5;
+my $offset46way = 10;
my $reroot = "$Bin/rerootTree.pl";
my $hgsql = "hgsql";
my $home = $ENV{'HOME'};
-my $dissectTree = "$home/kent/src/hg/utils/phyloTrees/46way.dissect.txt";
+my $dissectTree = "$home/kent/src/hg/utils/phyloTrees/48way.dissect.txt";
my $argc = scalar(@ARGV);
if ($argc != 1) {
printf STDERR "chainNet.pl - output chainNet.ra definitions in phylogenetic order\n";
printf STDERR "usage:\n chainNet.pl <db>\n";
printf STDERR "<db> - an existing UCSC database\n";
printf STDERR "will be using commands: rerootTree.pl and hgsql\n";
- printf STDERR "and expecting to find \$HOME/kent/src/hg/utils/phyloTrees/46way.dissect.txt\n";
+ printf STDERR "and expecting to find \$HOME/kent/src/hg/utils/phyloTrees/48way.dissect.txt\n";
printf STDERR "using:\n";
printf STDERR "$reroot\n";
printf STDERR "$dissectTree\n";
exit 255;
@@ -62,10 +68,16 @@
while (my $line = <FH>) {
chomp $line;
$line =~ s/[0-9]+$//;
if (!exists($priorities{lcfirst($line)})) {
+ if ($newAssemblies =~ m/$line/) {
+ $priority -= $newAssemblyOffset;
$priorities{lcfirst($line)} = $priority;
- $priority += 10;
+ $priority += $newAssemblyOffset;
+ } else {
+ $priorities{lcfirst($line)} = $priority;
+ $priority += $offset46way;
+ }
}
}
close (FH);