Skip to content

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.


Function Call:

convert_edgelist(query_edgelist, gene_map, weighted=False)

Parameters:

  • 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.

Returns:

Clone this wiki locally