rstoolbox.components.DesignFrame.get_available_labels

DesignFrame.get_available_labels()

List which slabels are available in the data container.

Returns:

list() of str

Raises:
TypeError:if the data container is not DataFrame or Series.

Example

In [1]: from rstoolbox.io import parse_rosetta_file
   ...: import pandas as pd
   ...: pd.set_option('display.width', 1000)
   ...: pd.set_option('display.max_columns', 500)
   ...: df = parse_rosetta_file("../rstoolbox/tests/data/input_2seq.minisilent.gz",
   ...:                         {'labels': ['MOTIF', 'CONTACT', 'CONTEXT'],
   ...:                          'sequence': 'A'})
   ...: df.get_available_labels()
   ...: 
Out[1]: ['MOTIF', 'CONTACT', 'CONTEXT']