Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
Genetrank_Translations Class Reference

Constructions

def __init__ (self, translations_dict)
 Default constructor. More...
 

Internal Methods

def successful_ambiguous_failed_split (self, translations_dict)
 Splits a mixed translations dict into successful translations dict, ambiguous translations dict, and a list with the identifiers for which translation failed. More...
 

Agregation Methods

def summary (self)
 Prints a summary of the translation results. More...
 

Getters

def get_successful (self)
 Returns the successful translations. More...
 

Encoders

def __str__ (self)
 Returns a string representing the contents of the translation object. More...
 

Detailed Description

Class containing the translations resulting from use of SBL::SBL_Genetrank_gene_to_protein::Genetrank_GeneProteinTranslator Class containing the translations resulting from use of SBL::SBL_Genetrank_gene_to_protein::Genetrank_GeneProteinTranslator as dictionaries with source identifiers as keys and translations as items, split in successful translations, ambiguous translations, and failed translations.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  translations_dict 
)

Default constructor.

Member Function Documentation

◆ __str__()

def __str__ (   self)

Returns a string representing the contents of the translation object.

◆ get_successful()

def get_successful (   self)

Returns the successful translations.

◆ successful_ambiguous_failed_split()

def successful_ambiguous_failed_split (   self,
  translations_dict 
)

Splits a mixed translations dict into successful translations dict, ambiguous translations dict, and a list with the identifiers for which translation failed.

◆ summary()

def summary (   self)

Prints a summary of the translation results.