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 "
\n"; printf "
\n\n"; printf "\n\n", commify($totalAssemblies); ############################################################################## ## begin single table output, start the table and the header ## ## table starts out as display: hide and will be reset to 'table' after ## page load. Saves a lot of time for Chrome browsers, however the page ## is still not usable until much time later. ############################################################################## printf "\n"; printf "\n"; +printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; -printf " \n"; +printf " \n"; +printf " \n"; printf " \n"; printf " \n"; printf " \n"; printf " \n"; printf " \n"; printf " \n"; printf " \n", $statusColors{"CR"}, $statusColors{"EN"}, $statusColors{"VU"}; printf " \n"; printf " \n"; printf " \n"; printf " \n"; printf " \n"; printf " \n"; printf "\n"; printf "\n"; @@ -1032,65 +1034,65 @@ if (defined($rrGcaGcfList{$asmId})) { $rowClass = " class='ucscDb $gcaGcfClass $clade'"; # present in UCSC db } else { $rowClass = " class='gak $gcaGcfClass $clade'"; # present in GenArk } } else { # can be requested if (defined($rrGcaGcfList{$asmId})) { $rowClass = " class='ucscDb $gcaGcfClass $clade'"; # present in UCSC db } else { $rowClass = " class='gar $gcaGcfClass $clade'"; # available for request } } ### can override CSS settings here ### $rowClass = " class='gar' style='display: none;'"; - ############# obsolete first column, a running count, and establish row color ### - if ( 0 == 1 ) { - if (length($statusColor)) { - printf "", $rowClass, $statusColor, $asmCountInTable; - } else { - printf "", $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 "", $rowClass, $statusClass; + printf "", $rowClass, $statusClass; } else { printf "", $rowClass, $statusClass; } } else { if ($asmCountInTable > 500) { printf "", $rowClass; } else { printf "", $rowClass; } } + ############# trying out a first column that is just the button or link + ############# first column, common name link to browser or request button ## if (defined($comName{$asmId})) { - printf "", $browserUrl, $commonName; + printf "", $browserUrl; + printf PC "\tview"; # output to clade.tableData.tsv + printf "", $commonName; } else { if (length($ucscDb)) { - printf "", $browserUrl, $commonName; + printf "", $browserUrl; + printf PC "\tview"; # output to clade.tableData.tsv + printf "", $commonName; } else { - printf "", $asmId, $commonName; + printf "", $asmId; + printf PC "\trequest"; # output to clade.tableData.tsv + printf "", $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 "", $imgSearchUrl, $sciNames{$asmId}, commify($assembliesAvailable); } else { printf "", $imgSearchUrl, $sciNames{$asmId}; } printf PC "\t%s", $sciNames{$asmId}; # output to clade.tableData.txt
common nameLinks to an existing assembly browser, Button opens an assembly request form.
view/request'view' opens the genome browser on an existing assembly, or the 'request' button opens an assembly build request form.
common namecommon name
scientific name (count)Links to Google image search. Count shows the number of assemblies available for this orgnism.
NCBI assemblyLinks to NCBI resource record.
assembly
sizeNumber of nucleotides in the assembly.
sequence
countThe number of sequences in this assembly.
scaffold N50
length (L50)N50 (L50) length.
contig N50
length (L50)N50 (L50) length.
IUCNLinks to IUCN Red List of Threatened Species (version 2021-3) CR - Critical / EN - Endangered / VU - Vulnerable
NCBI taxIDLinks to NCBI Taxonomy database.
assembly
dateDate submitted to NCBI assembly database.
BioSampleBioSample ID at NCBI.
BioProjectBioProject ID at NCBI.
Assembly submitterPerson or group who submitted to NCBI Assembly database.
cladeClade of this organism.
%d%d%sview%s%sview%s%s%s (%s)%s