Skip to content
Snippets Groups Projects
Commit e2639a3d authored by Ian Longden's avatar Ian Longden
Browse files

Check for accession unreviewed as this is not allowed

parent c07f1bc7
No related branches found
No related tags found
No related merge requests found
......@@ -283,6 +283,7 @@ sub create_xrefs {
# AC line may have primary accession and possibly several ; separated synonyms
# May also be more than one AC line
my ($acc) = $_ =~ /(AC\s+.+)/s; # will match first AC line and everything else
my @all_lines = split /\n/, $acc;
# extract ^AC lines only & build list of accessions
......@@ -294,7 +295,10 @@ sub create_xrefs {
}
if(lc($accessions[0]) eq "unreviewed"){
print "WARNING: entries with accession of $acc not allowed will be skipped\n";
next;
}
$xref->{INFO_TYPE} = "SEQUENCE_MATCH";
$xref->{ACCESSION} = $accessions[0];
for (my $a=1; $a <= $#accessions; $a++) {
......
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