lncRNome¶
-
class
openomics.database.interaction.
lncRNome
(path, file_resources, source_col_name='Gene Name', target_col_name='Binding miRNAs', source_index='gene_name', target_index='gene_name', edge_attr=['miRNA Interaction Site', 'Transcript ID'], directed=True, relabel_nodes=None, npartitions=0)[source][source]¶ Bases:
openomics.database.interaction.Interactions
,openomics.database.base.Database
Methods Summary
load_dataframe
(file_resources[, npartitions])Handles data preprocessing given the file_resources input, and returns a DataFrame.
load_network
(file_resources, …)Handles data processing from file_resources to a Pandas DataFrame which contain edgelist data, then constructs and return a NetworkX Graph.
Methods Documentation
-
load_dataframe
(file_resources, npartitions=None)[source][source]¶ Handles data preprocessing given the file_resources input, and returns a DataFrame.
- Parameters
file_resources (dict) – A dict with keys as filenames and values as full file path.
npartitions (int) –
-
load_network
(file_resources, source_col_name, target_col_name, edge_attr, directed, filters)[source][source]¶ Handles data processing from file_resources to a Pandas DataFrame which contain edgelist data, then constructs and return a NetworkX Graph. :param file_resources: a dict of file name and file path/object :param source_col_name: column name of the dataframe for source in the edge :type source_col_name: str :param target_col_name: column name of the dataframe for target in the edge :type target_col_name: str :param edge_attr: list of str for column data to include in each edge :type edge_attr: list :param directed: True to return a DiGraph(), else Graph() :type directed: bool :param filters: A dict of {column name: column values} to filter the dataframe
- Returns
a NetworkX Graph or DiGraph
- Return type
network
-