65cc3900649623b8366ab05d9b285e528f8f2959 hiram Tue Mar 8 11:58:53 2022 -0800 now using a new initial column for the view/request function and correctly counting hasIucn columns refs #28930 diff --git src/hg/gar/garTable.pl src/hg/gar/garTable.pl index 4e73849..3e1b4c6 100755 --- src/hg/gar/garTable.pl +++ src/hg/gar/garTable.pl @@ -787,49 +787,51 @@ printf "
common nameLinks to an existing assembly browser, Button opens an assembly request form. | \n";
+printf " view/request'view' opens the genome browser on an existing assembly, or the 'request' button opens an assembly build request form. | \n";
+printf " common namecommon name | \n";
printf " scientific name (count)Links to Google image search. Count shows the number of assemblies available for this orgnism. | \n";
printf " NCBI assemblyLinks to NCBI resource record. | \n";
printf " assembly sizeNumber of nucleotides in the assembly. | \n";
printf " sequence countThe number of sequences in this assembly. | \n";
printf " scaffold N50 length (L50)N50 (L50) length. | \n";
printf " contig N50 length (L50)N50 (L50) length. | \n";
printf " IUCNLinks to IUCN Red List of Threatened Species (version 2021-3) CR - Critical / EN - Endangered / VU - Vulnerable | \n", $statusColors{"CR"}, $statusColors{"EN"}, $statusColors{"VU"};
printf " NCBI taxIDLinks to NCBI Taxonomy database. | \n";
printf " assembly dateDate submitted to NCBI assembly database. | \n";
printf " BioSampleBioSample ID at NCBI. | \n";
printf " BioProjectBioProject ID at NCBI. | \n";
printf " Assembly submitterPerson or group who submitted to NCBI Assembly database. | \n";
printf " cladeClade of this organism. | \n";
printf "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
%d | ", $rowClass, $statusColor, $asmCountInTable; - } else { - printf "|||||||||||||||
%d | ", $rowClass, $asmCountInTable; - } - } # experiment with hiding all rows over 500 count to see if that helps # chrom browser initial loading performance # try out the table with out any count, just get the row started if (length($statusColor)) { my $statusClass = sprintf(" style='color:%s;", $statusColor); # let's see what nostatus looks like $statusClass = ""; if ($asmCountInTable > 500) { - printf "|||||||||||||||
%s | ", $browserUrl, $commonName; + printf "view | ", $browserUrl; + printf PC "\tview"; # output to clade.tableData.tsv + printf "%s | ", $commonName; } else { if (length($ucscDb)) { - printf "%s | ", $browserUrl, $commonName; + printf "view | ", $browserUrl; + printf PC "\tview"; # output to clade.tableData.tsv + printf "%s | ", $commonName; } else { - printf "", $asmId, $commonName; + printf " | ", $asmId; + printf PC "\trequest"; # output to clade.tableData.tsv + printf " | %s | ", $commonName; } } printf PC "\t%s", $commonName; # output to clade.tableData.tsv ############# second column, scientific name and google image search ######### if (defined($sciNames{$asmId})) { my $noSpace = $sciNames{$asmId}; $noSpace =~ s/ /+/g; my $imgSearchUrl="https://images.google.com/images?q=$noSpace&um=1&hl=en&safe=active&nfpr=1&tbs=il:cl"; if ($assembliesAvailable > 1) { printf "%s (%s) | ", $imgSearchUrl, $sciNames{$asmId}, commify($assembliesAvailable); } else { printf "%s | ", $imgSearchUrl, $sciNames{$asmId}; } printf PC "\t%s", $sciNames{$asmId}; # output to clade.tableData.txt