Skip to content
Snippets Groups Projects
Commit cd590f40 authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Tweak to regexp to stop parser missing the first line of protein sequence.

parent dbf8abc1
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ sub create_xrefs {
my @seq_lines = split /\n/, $seq;
my $parsed_seq = "";
foreach my $x (@seq_lines) {
my ($seq_only) = $x =~ /\s+\d+\s+(.*)/;
my ($seq_only) = $x =~ /\s*\d+\s+(.*)/;
$parsed_seq .= $seq_only;
}
$parsed_seq =~ s/\/\///g; # remove trailing end-of-record character
......
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