Skip to content
Snippets Groups Projects
Commit a854ce95 authored by Magali Ruffier's avatar Magali Ruffier
Browse files

ENSCORESW-1142: add source RefSeq_ncRNA for NR_ transcripts

parent 79a9cbf5
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ sub run_script {
my $peptide_source_id = $self->get_source_id_for_source_name('RefSeq_peptide', 'otherfeatures');
my $mrna_source_id = $self->get_source_id_for_source_name('RefSeq_mRNA', 'otherfeatures');
my $ncrna_source_id = $self->get_source_id_for_source_name('RefSeq_ncRNA', 'otherfeatures');
my $user = "ensro";
my $host;
......@@ -339,11 +340,13 @@ sub run_script {
# If a best match was defined for the refseq transcript, store it as direct xref for ensembl transcript
if ($best_id) {
my ($acc, $version) = split(/\./, $id);
my $source_id = $mrna_source_id;
$source_id = $ncrna_source_id if $acc =~ /^NR_/;
my $xref_id = $self->add_xref({ acc => $acc,
version => $version,
label => $id,
desc => '',
source_id => $mrna_source_id,
source_id => $source_id,
species_id => $species_id,
info_type => 'DIRECT' });
$self->add_direct_xref($xref_id, $best_id, "Transcript", "");
......
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