-
Notifications
You must be signed in to change notification settings - Fork 22
pyNBS.consensus_clustering.Hlist_constructor_from_folder
Justin Huang edited this page Jan 26, 2018
·
3 revisions
This is a helper function that constructs a valid "Hlist" from a folder containing multiple H matrices to be passed to consensus_hclust_hard to use.
Hlist_constructor_from_folder(folder, ext='.csv', normalize_H=False, verbose=False)
- folder (required, str): This is the file directory in which the "H matrices" are saved.
- ext (optional, str, default='.csv'): File extension of the saved "H matrices" in folder. This is used as the indicator for which files for this function to load.
-
Hlist (list): A list of "H matrices" that can be further used by
consensus_hclust_hardfunction. Each element of theHlistshould be the H matrix produced frommixed_netNMF. Each "H matrix" is a Pandas DataFrame of size patients/samples-by-k, where k is the number of clusters.
- Each file loaded by this function must be a comma-separated file. Other delimiters for the H matrix files are not currently supported.