From 5092b51ee9a9a694b536c4d893d1f43523d60817 Mon Sep 17 00:00:00 2001 From: Magali Ruffier <mr6@ebi.ac.uk> Date: Thu, 20 Apr 2017 08:48:42 +0100 Subject: [PATCH] ENSCORESW-2277: accession pattern at start of line --- misc-scripts/xref_mapping/XrefParser/UniProtParser.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-scripts/xref_mapping/XrefParser/UniProtParser.pm b/misc-scripts/xref_mapping/XrefParser/UniProtParser.pm index 1887377dc1..54fb814be9 100644 --- a/misc-scripts/xref_mapping/XrefParser/UniProtParser.pm +++ b/misc-scripts/xref_mapping/XrefParser/UniProtParser.pm @@ -234,7 +234,7 @@ sub create_xrefs { # set accession (and synonyms if more than one) # 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 ($acc) = $_ =~ /(\nAC\s+.+)/s; # will match first AC line and everything else my @all_lines = split /\n/, $acc; -- GitLab