diff --git a/misc-scripts/stable_id_lookup/README b/misc-scripts/stable_id_lookup/README index a84d0422e9fbedb365cfa71049e5973c328b2408..c5efb60ebbbc22a8f88f6ca52c1ed1712be289db 100644 --- a/misc-scripts/stable_id_lookup/README +++ b/misc-scripts/stable_id_lookup/README @@ -12,6 +12,7 @@ core Exon Translation Operon OperonTranscript + RNAProduct For Gene, Transcript and Translation, an archive_id_lookup is also created, containing all previously used ids diff --git a/misc-scripts/stable_id_lookup/populate_stable_id_lookup.pl b/misc-scripts/stable_id_lookup/populate_stable_id_lookup.pl index e004725a78d85dc94f714a3f493d3256b91582e9..6047e5ccbc4301b6d8def2eb00efe2b4f1ec15c3 100644 --- a/misc-scripts/stable_id_lookup/populate_stable_id_lookup.pl +++ b/misc-scripts/stable_id_lookup/populate_stable_id_lookup.pl @@ -37,6 +37,7 @@ my %group_objects = ( Transcript => 1, Translation => 1, Operon => 1, + RNAProduct => 1, # OperonTranscript => 1, # these are in transcript table anyway GeneArchive => 1, @@ -417,7 +418,7 @@ sub load_ids { my $rows_inserted = build_insert_sql( $select_sql, $dbh_read, $dbh_write, $is_archive ); } - elsif ( $object_name =~ /Translation/ ) { + elsif ( $object_name =~ / RNAProduct | Translation /x ) { my $sth = $dbh_read->prepare("SELECT COUNT(*) FROM $object"); $sth->execute(); my ($count) = $sth->fetchrow_array;