-
Notifications
You must be signed in to change notification settings - Fork 22
pyNBS.data_import_tools.load_network_file
Justin Huang edited this page Jan 27, 2018
·
5 revisions
This function loads network from a file as unweighted network. If a weighted network is provided, it will only read edges as first two columns, all other columns will be ignored. The file format for the network can be found on this page. The resulting network constructed by this function will be used throughout the pyNBS algorithm.
load_network_file(
network_file_path, delimiter='\t', degree_shuffle=False, label_shuffle=False, verbose=True
)
- network_file_path (required, str): Path to molecular network file. File must be table where each line is a gene interaction separated by a common delimiter and the first 2 columns represent interacting proteins. See this page for additional details on network file format.
- delimiter (optional, str, default='\t'): Delimiter used in the network file between columns.
- degree_shuffle(optional, bool, default=False): Determination of whether or not to shuffle the network edges (while preserving node degree) when loading network. This will change the network output of the function to the shuffled network.
- label_shuffle (optional, bool, default=False): Determination of whether or not to shuffle the network node labels (while preserving network topology) when loading network. This will change the network output of the function to the shuffled network.
- verbose (optional, bool, default=False): Verbosity flag for reporting on function progress.
- network (Networkx.Graph): Networkx object loaded from network file.