Skip to content

pyNBS.gene_conversion_tools.query_constructor

Tongqiu (Iris) Jia edited this page Jan 30, 2018 · 1 revision

This function construct string for bach query to MyGene.Info v3.0.0 API.


Function Call:

query_constructor(gene_list, exclude_prefixes=None, print_invalid_genes=False)

Parameters:

  • gene_list (required, list): A list of gene names of query.
  • exclude_prefixes (optional, str, default=None): Prefix that is not desired in the gene name.
  • print_invalid_genes (optional, bool, default=False): Verbosity flag on whether or not to print invalid genes.

Returns:

  • query_string (str): A string query of valid gene names as input for MyGene.Info.
  • valid_query_genes (list): List of valid query gene names.
  • invalid_query_genes (list): List of invalid query gene names.
Clone this wiki locally