92509db0231e9b1ae83aa0c85182883dd8eabc9b
hiram
  Wed Sep 14 13:59:35 2022 -0700
fixup chainNet trackDb and now sending files to dynablat and arranging hub files to place it in use refs #29811

diff --git src/hg/utils/automation/asmHubChainNetComposite.pl src/hg/utils/automation/asmHubChainNetComposite.pl
index 6d6bc2e..355818b 100755
--- src/hg/utils/automation/asmHubChainNetComposite.pl
+++ src/hg/utils/automation/asmHubChainNetComposite.pl
@@ -1,41 +1,40 @@
 #!/usr/bin/env perl
 
 use strict;
 use warnings;
 use FindBin qw($Bin);
 use lib "$Bin";
 use AsmHub;
 use HgAutomate;
 use File::Basename;
 
 my $argc = scalar(@ARGV);
 
 if ($argc != 3) {
-  printf STDERR "usage: asmHubChainNet.pl asmId asmId.names.tab hubPath > asmId.chainNet.html\n";
+  printf STDERR "usage: asmHubChainNet.pl asmId ncbiAsmId asmId.names.tab > asmId.chainNet.html\n";
   printf STDERR "where asmId is the assembly identifier,\n";
   printf STDERR "and   asmId.names.tab is naming file for this assembly,\n";
-  printf STDERR "and   hubPath is the path to this assembly directory in .../hubs/.\n";
   exit 255;
 }
 
 # specific to UCSC environment
 my $dbHost = "hgwdev";
 
 my $asmId = shift;
+my $ncbiAsmId = shift;
 my $namesFile = shift;
-my $hubUrl = shift;
 
 my $queryId = "";
 
 my $targetBuildDir = "";
 if ($asmId =~ m/^GC/) {
   my $gcX = substr($asmId,0,3);
   my $d0 = substr($asmId,4,3);
   my $d1 = substr($asmId,7,3);
   my $d2 = substr($asmId,10,3);
   my $hubBuildDir = "refseqBuild";
   $hubBuildDir = "genbankBuild" if ($gcX eq "GCA");
   $targetBuildDir = "/hive/data/genomes/asmHubs/$hubBuildDir/$gcX/$d0/$d1/$d2/$asmId";
 } else {
   $targetBuildDir = "/hive/data/genomes/$asmId";
 }