Skip to content

Commit 0c79b14

Browse files
authored
Update Compara track description links (#1110)
1 parent 7957c74 commit 0c79b14

File tree

1 file changed

+6
-6
lines changed
  • modules/EnsEMBL/Web/ImageConfigExtension

1 file changed

+6
-6
lines changed

modules/EnsEMBL/Web/ImageConfigExtension/Tracks.pm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ sub add_synteny {
946946
species => $species_2,
947947
species_hr => $species_readable,
948948
caption => $caption,
949-
description => qq{<a href="/info/genome/compara/analyses.html#synteny" class="cp-external">Synteny regions</a> between $self_label and $label},
949+
description => qq{<a href="/info/genome/compara/synteny.html" class="cp-external">Synteny regions</a> between $self_label and $label},
950950
colours => $colours,
951951
display => 'off',
952952
renderers => [qw(off Off normal On)],
@@ -970,12 +970,12 @@ sub add_alignments {
970970
my ($static, $wga_page);
971971
my $division = $species_defs->EG_DIVISION;
972972
if ($division) {
973-
$wga_page = $static = 'whole_genome_alignment.html';
973+
$static = 'whole_genome_alignment.html';
974974
}
975975
else {
976976
$static = 'analyses.html';
977-
$wga_page = $static.'#conservation';
978977
}
978+
$wga_page = 'multiple_genome_alignments.html';
979979

980980
foreach my $row (values %{$hashref->{'ALIGNMENTS'}}) {
981981
next unless $row->{'species'}{$prod_name};
@@ -1007,7 +1007,7 @@ sub add_alignments {
10071007
$description = 'Pairwise alignments';
10081008
}
10091009

1010-
$description = qq{<a href="$static" class="cp-external">$description</a> between $self_label and $other_label};
1010+
$description = qq{<a href="/info/genome/compara/$static" class="cp-external">$description</a> between $self_label and $other_label};
10111011
$description .= " $1" if $row->{'name'} =~ /\((on.+)\)/;
10121012

10131013
$alignments->{$menu_key}{$row->{'id'}} = {
@@ -1043,13 +1043,12 @@ sub add_alignments {
10431043
if ($row->{'conservation_score'}) {
10441044
my ($program) = $hashref->{'CONSERVATION_SCORES'}{$row->{'conservation_score'}}{'type'} =~ /(.+)_CONSERVATION_SCORE/;
10451045

1046-
$options{'description'} = sprintf '<a href="/info/genome/compara/%s">%s conservation scores</a> based on the %s', $wga_page, $program, $row->{'name'};
1047-
10481046
$alignments->{'conservation'}{"$row->{'id'}_scores"} = {
10491047
%options,
10501048
conservation_score => $row->{'conservation_score'},
10511049
name => "Conservation score for $row->{'name'}",
10521050
caption => "$n_species way $program scores",
1051+
description => sprintf('<a href="/info/genome/compara/conservation_and_constrained.html">%s conservation scores</a> based on the %s', $program, $row->{'name'}),
10531052
order => sprintf('%12d::%s::%s', 1e12-$n_species*10, $row->{'type'}, $row->{'name'}),
10541053
display => 'off',
10551054
renderers => [ 'off', 'Off', 'tiling', 'Tiling array' ],
@@ -1060,6 +1059,7 @@ sub add_alignments {
10601059
constrained_element => $row->{'constrained_element'},
10611060
name => "Constrained elements for $row->{'name'}",
10621061
caption => "$n_species way $program elements",
1062+
description => sprintf('<a href="/info/genome/compara/conservation_and_constrained.html">%s constrained elements</a> based on the %s', $program, $row->{'name'}),
10631063
order => sprintf('%12d::%s::%s', 1e12-$n_species*10+1, $row->{'type'}, $row->{'name'}),
10641064
display => 'off',
10651065
renderers => [ 'off', 'Off', 'compact', 'On' ],

0 commit comments

Comments
 (0)