Skip to content
Snippets Groups Projects
Commit 72420423 authored by James Allen's avatar James Allen
Browse files

In GFF3 and GTF headers, the assembly accession was being prefixed by the...

In GFF3 and GTF headers, the assembly accession was being prefixed by the value of the meta_key 'assembly.web_accession_source'. This is incorrect - this value is intended to be used by the webcode, in order to decide whether to create hyperlinks to ENA or NCBI, and thus the meta_value is 'ENA' or 'NCBI'. We don't want to prefix the accession with either of those values - it is an INSDC identifier, and it's misleading/confusing to associate it with a specific member.
parent adf6e4b0
No related branches found
No related tags found
No related merge requests found
...@@ -342,10 +342,7 @@ sub print_main_header { ...@@ -342,10 +342,7 @@ sub print_main_header {
# Get accession and only print if it is there # Get accession and only print if it is there
my $accession = $gc->get_accession(); my $accession = $gc->get_accession();
if($accession) { if($accession) {
my $accession_source = $mc->single_value_by_key('assembly.web_accession_source'); my $string = "#!genome-build-accession $accession";
my $string = "#!genome-build-accession ";
$string .= "$accession_source:" if $accession_source;
$string .= "$accession";
print $fh "$string\n"; print $fh "$string\n";
} }
......
...@@ -77,14 +77,9 @@ sub print_main_header { ...@@ -77,14 +77,9 @@ sub print_main_header {
# Get accession and only print if it is there # Get accession and only print if it is there
my $accession = $gc->get_accession(); my $accession = $gc->get_accession();
if($accession) { if($accession) {
my $accession_source = $mc->single_value_by_key('assembly.web_accession_source'); my $string = "#!genome-build-accession $accession";
my $string = "#!genome-build-accession ";
$string .= "$accession_source:" if $accession_source;
$string .= "$accession";
print $fh "$string\n"; print $fh "$string\n";
#my $accession_source = $mc->single_value_by_key('assembly.web_accession_source');
#print $fh "#!genome-build-accession ${accession_source}:${accession}\n";
} }
# Genebuild last updated # Genebuild last updated
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment