rstoolbox.components.DesignFrame.has_reference_sequence

DesignFrame.has_reference_sequence(seqID)

Checks if there is a reference_sequence for sequID.

Parameters:

seqID (str) – Identifier of the sequence of interest.

Returns:

bool

Raises:
TypeError:If applied over a data container without _reference attribute.

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",
   ...:                         {'sequence': 'AB'})
   ...: df.add_reference_sequence('A', df.iloc[0].get_sequence('A'))
   ...: df.has_reference_sequence('A')
   ...: df.has_reference_sequence('B')
   ...: 
Out[1]: False