Skip to content
Snippets Groups Projects
Commit 42d23d08 authored by Will Spooner's avatar Will Spooner
Browse files

Uses seq->alphabet for $xref->{SEQUENCE_TYPE}

parent cc53036a
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ sub run {
$xref->{SEQUENCE} = $seq->seq;
$xref->{SOURCE_ID} = $source_id;
$xref->{SPECIES_ID} = $species_id;
$xref->{SEQUENCE_TYPE} = 'peptide';
$xref->{SEQUENCE_TYPE} = $seq->alphabet eq 'protein' ? 'peptide' : 'dna';
$xref->{STATUS} = 'experimental';
if( my $v = $seq->version ){ $xref->{VERSION} = $v };
push @xrefs, $xref;
......
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