Пример #1
0
 def applicable(cls, target=None, coord=None):
     if not coord or coord.sequence is None:
         return
     if target.msaview_classname != 'data.msa':
         return
     if target.sequence_information.get_entry('uniprot-id', coord.sequence):
         return cls(target, coord)
     if UniprotID.extract_id(target.ids[coord.sequence]):
         return cls(target, coord)
Пример #2
0
 def applicable(cls, target=None, coord=None):
     if target.msaview_classname != 'data.msa':
         return
     if not target:
         return
     if target.sequence_information.has_category('uniprot-id'):
         return cls(target, coord)
     for id in target.ids:
         if UniprotID.extract_id(id):
             return cls(target, coord)