-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathviral.html
More file actions
25 lines (22 loc) · 756 Bytes
/
Copy pathviral.html
File metadata and controls
25 lines (22 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<p>
<%perl>
open(IN, "<$ENV{PRFDB_HOME}/data/recode2.txt");
my @acc = ();
while (my $line = <IN>) {
chomp $line;
my ($accession, $position, $recode_id) = split(/\t/, $line);
if ($accession =~ /\,/) {
my @accessions = split(/\,/, $accession);
$accession = $accessions[0];
}
push(@acc, $accession);
if ($position =~ /\,/) {
my @positions = split(/\,/, $position);
$position = $positions[0];
}
my $species = $db->MySelect(type => 'single', statement => "SELECT genename FROM gene_info WHERE accession = '$accession'");
my $string = qq|Species: ${species}, Accession:<a href="/search.html?accession=$accession">$accession</a>, Position: $position<br>\n|;
print "$string";
}
</%perl>
</p>