22a9ec8b34dd60a14257bdef408f21c03db601b4
hiram
Mon Feb 17 16:06:38 2020 -0800
now using the shorter assembly name for genome identifier and fix some common names refs #23891
diff --git src/hg/makeDb/doc/asmHubs/mkAsmStats.pl src/hg/makeDb/doc/asmHubs/mkAsmStats.pl
index c8613fc..c6a8685 100755
--- src/hg/makeDb/doc/asmHubs/mkAsmStats.pl
+++ src/hg/makeDb/doc/asmHubs/mkAsmStats.pl
@@ -264,46 +264,47 @@
$commonName = $betterName{$asmId} if (exists($betterName{$asmId}));
$sciName =~ s/.*:\s+//;
$sciName =~ s/\s+\(.*//;
}
} elsif ($line =~ m/Taxid:/) {
if ($taxId =~ m/notFound/) {
++$itemsFound;
$taxId = $line;
$taxId =~ s/.*:\s+//;
}
}
}
close (FH);
my $hubUrl = "https://hgdownload.soe.ucsc.edu/hubs/$accessionDir/$accessionId";
printf "
%d | \n", ++$asmCount;
- printf "%s | \n", $hubUrl, $asmId, $commonName;
+ printf "%s | \n", $hubUrl, $accessionId, $commonName;
printf " %s | \n", $hubUrl, $sciName;
printf " %s | \n", $accessionId, $asmId;
printf " %s | \n", commify($seqCount);
printf " %s | \n", commify($totalSize);
printf " %s | \n", commify($gapCount);
printf " %s | \n", commify($gapSize);
printf " %.2f | \n", $maskPerCent;
printf "
\n";
}
}
##############################################################################
### main()
##############################################################################
open (FH, "<$toolsDir/${commonNameOrder}") or die "can not read ${commonNameOrder}";
while (my $line = ) {
+ next if ($line =~ m/^#/);
chomp $line;
my ($commonName, $asmId) = split('\t', $line);
push @orderList, $asmId;
$betterName{$asmId} = $commonName;
++$assemblyTotal;
}
close (FH);
startHtml();
startTable();
tableContents();
endTable();
endHtml();