Skip to content

pyNBS.gene_conversion_tools.construct_query_map_table

Tongqiu (Iris) Jia edited this page Feb 3, 2018 · 1 revision

This function construct matched queries maps. Note that some genes will be matched in duplicates due to alias mapping, but generally the highest scoring matches will be correct. Therefore duplicate mappings are removed to create 1-to-1 mappings for query to genes.


Function Call:

construct_query_map_table(query_result, query_genes, display_unmatched_queries=False)

Parameters:

  • query_result (required, list): Query result obtained from MyGene.Info.
  • query_genes (required, list): Genes of interest that needs to be mapped to symbol or entrez.
  • display_unmatched_queries (optional, bool, default=False): Determine whether or not to display unmatched queries.

Returns:

  • match_table_trim (pandas.DataFrame): Query maps for symbol and entrez.
  • query_to_symbol (dict): Query map dictionaries for symbol.
  • query_to_entrez (dict): Query map dictionaries for entrez.
Clone this wiki locally