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

Made file type decision less strict to deal with RefSeq cumulative files also.

parent ea703a22
No related branches found
No related tags found
No related merge requests found
......@@ -72,13 +72,13 @@ sub create_xrefs {
(my $gi, my $n, my $ref, my $acc, my $description) = split(/\|/, $header);
my ($species, $mrna);
if ($file =~ /\.protein\.faa$/) {
if ($file =~ /\.faa$/) {
($mrna, $description, $species) = $description =~ /(\S*)\s+(.*)\s+\[(.*)\]$/;
$xref->{SEQUENCE_TYPE} = 'peptide';
$xref->{STATUS} = 'experimental';
} elsif ($file =~ /\.rna\.fna$/) {
} elsif ($file =~ /\.fna$/) {
($species, $description) = $description =~ /\s*(\w+\s+\w+)\s+(.*)$/;
$xref->{SEQUENCE_TYPE} = 'dna';
......
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