-
Notifications
You must be signed in to change notification settings - Fork 22
pyNBS.gene_conversion_tools.convert_edgelist
Tongqiu (Iris) Jia edited this page Feb 2, 2018
·
2 revisions
This function converts gene names in a given edge list to genes names in a different field based on the given gene map. For weighted edge lists, the third column can be used to store weights of edges if the input edgelist is weighted.
convert_edgelist(
query_edgelist, gene_map, weighted=False
)
- query_edgelist (required, list): An edge list of interest.
-
gene_map (required, dict): Mapping of gene names constructed by
construct_query_map_table
. - weighted (optional, bool, default=False): Determine whether or not keep the weights of the input edge list. Note that this flag should only be set true if the input edge list is weighted.
-
converted_edgelist (list): The edge list in which gene names are converted based on
construct_query_map_table
.