gws_gena

Introduction
Getting Started
ID Card
Use Cases
Technical documentations
Version

FBA result

RESOURCE
Typing name :  RESOURCE.gws_gena.FBAResult Brick :  gws_gena
Parent :
Resource set

Flux Balance Analysis Result

FBAResult class.

A resource set object containing the result tables of a flux balance analysis.

Views
RESOURCES LISTDefault view
List the resources
VIEW RESOURCE
View the complete resource as json
Functions
__init__

Constructor, please do not overwrite this method, use the init method instead Leave the constructor without parameters.

flux_dataframe : DataFrame - None
sv_dataframe : DataFrame - None
add_resource

Add a resource to the set

resource : Resource
resource to Add
unique_name : str - None
name used to store the resource in the dict. It must be unique. The resource can be retrieve by calling the get_resource method with the name. If not provided, the resource name is used
create_new_resource : bool - True
If true, a new resource is created when saving the resource. Otherwise it doesn't create a new resource but references it. In this case the resource must be an input of the task that created the ResourceSet and the resource must have been saved before
add_technical_info

Add technical information on the resource. Technical info are useful to set additional information on the resource.

technical_info : TechnicalInfo
technical information to add (key, value)
check_resource

You can redefine this method to define custom logic to check this resource. If there is a problem with the resource, return a string that define the error, otherwise return None This method is called on output resources of a task. If there is an error returned, the task will be set to error and next proceses will not be run. It is also call when uploading a resource (usually for files or folder), if there is an error returned, the resource will not be uploaded

Return type : Union[str, NoneType]
clear_resources
clone

Clone the resource to create a new instance with a new id. It copies the RFields.

Return type : ResourceType
compute_zero_flux_threshold

Compute the zero-flux threshold

Return type : (<class 'float'>, <class 'float'>)
get_default_name

You can redefine this method to set a name of the resource. When saving the resource the name will be saved automatically This can be useful to distinguish this resource from another one or to search for the resource

Return type : str
get_flux_dataframe_by_reaction_ids

Get flux values by reaction ids

reaction_ids : Union[typing.List, str]
Return type : DataFrame
get_flux_table

Get the flux table

get_fluxes_dataframe

Get fluxes as dataframe

Return type : DataFrame
get_resource
resource_name : str
Return type : Resource
get_resource_ids
Return type : Set
get_resource_models
Return type : List
get_resources
Return type : Dict
get_resources_as_set
Return type : Set
get_sv_by_compound_ids

Get SV values by compound ids

compound_ids : Union[typing.List, str]
Return type : DataFrame
get_sv_dataframe

Get SV as dataframe

Return type : DataFrame
get_sv_table

Get the SV table

get_technical_info

Get the technical information of the resource

key : str
key of the technical information
Return type : TechnicalInfo
init

This can be overwritten to perform custom initialization of the resource. This method is called just after the init (constructor) of the resource. The default values of RFields are set before this method is called.

resource_exists
resource_name : str
Return type : Resource