63890999edbfdac428544f159a33e503618ca7f8 angie Wed Jan 7 13:56:43 2026 -0800 Add support for vai.pl to accept a GenArk assembly accession as db, and for hgVai to accept a geneTrack without the hub_number_ prefix when db is a hub. diff --git src/hg/utils/vai.pl src/hg/utils/vai.pl index cdab4170216..2a8f7cbb4c8 100755 --- src/hg/utils/vai.pl +++ src/hg/utils/vai.pl @@ -140,31 +140,31 @@ $trimmedPos =~ s/\s//g; if ($trimmedPos =~ /^[^:]+(:\d+-\d+)?$/) { $position = $trimmedPos; } else { print STDERR "position argument should be like chrX:N-M (sequence name, colon,\n" . "starting base offset, ending base offset), not '$position'\n"; usage(-1); } } my $db = shift @ARGV; if (! $db) { # No args -- just show usage. usage(0); } - if ($db !~ /^\w+$/) { + if ($db !~ /^[\w.]+$/) { print STDERR "First argument must be a database identifier.\n"; usage(-1); } my $inputFile = shift @ARGV; if (! $inputFile) { print STDERR "Missing second argument inputFile"; usage(-1); } if (@ARGV) { print STDERR "Please provide only one input file.\n"; usage(-1); } if ($inputFile !~ /^(https?|ftp):\/\// && ! -r $inputFile) { die "Can't open input file '$inputFile' for reading.\n";