Knowing The Status For Obsolete Refseq Entries
2
1
Entering edit mode
11.2 years ago
Woa ★ 2.9k

I have a few thousand RefSeq IDs and some ( around a couple of 100s or so I guess) of them got obsolete. For example the entry XM_994796.2. Given the list of IDs I wish to know the IDs that have become obsolete. Any perl/python etc. snippet/script or API is much appreciated.

Thanks

refseq • 1.9k views
ADD COMMENT
0
Entering edit mode
11.2 years ago
Woa ★ 2.9k

I've tried this inside a loop

use  Bio::DB::RefSeq; 
    $db = Bio::DB::RefSeq->new(); 
    eval { $seq = $db->get_Seq_by_version('NM006732.1'); }; 
    print "accesion is ", $seq->accession_number, "\n" unless $@;

but it exits whenever it finds an obsolete entry breaking the loop and fails to look for all IDs.

ADD COMMENT
0
Entering edit mode
11.2 years ago
Woa ★ 2.9k

Finally downloaded the data from the URL and parsed the files.

http://www.ncbi.nlm.nih.gov/nuccore/XM_994796.2?report=docsum&format=text

This works better as it shows if the sequence has been removed, updated , replaced by any other accession no. or remain unchanged.

ADD COMMENT

Login before adding your answer.

Traffic: 2660 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6