Example #1
0
 def test_multiple_elink(self):
     """ELink should find unique links in a set of ids"""
     l = ELink(db='taxonomy', dbfrom='protein', 
         id='83304912 115496169 119586556 111309484')
     result = l.read()
     parsed = ELinkResultParser(result)
     self.assertEqual(sorted(parsed), ['10090', '9606'])  
Example #2
0
 def test_multiple_elink(self):
     """ELink should find unique links in a set of ids"""
     l = ELink(db='taxonomy',
               dbfrom='protein',
               id='83304912 115496169 119586556 111309484')
     result = l.read()
     parsed = ELinkResultParser(result)
     self.assertEqual(sorted(parsed), ['10090', '9606'])
Example #3
0
 def test_simple_elink(self):
     """ELink should retrieve a link from a single id"""
     l = ELink(db='taxonomy', dbfrom='protein', id='83304912')
     result = l.read()
     parsed = ELinkResultParser(result)
     self.assertEqual(parsed, ['9606'])  #human sequence
Example #4
0
 def test_simple_elink(self):
     """ELink should retrieve a link from a single id"""
     l = ELink(db='taxonomy', dbfrom='protein', id='83304912')
     result = l.read()
     parsed = ELinkResultParser(result)
     self.assertEqual(parsed, ['9606'])  #human sequence