Skip to content

pyNBS.gene_conversion_tools.exclude_id

Tongqiu (Iris) Jia edited this page Feb 2, 2018 · 4 revisions

This function is used to determine if id to be input is a valid gene name. A valid gene name should not contain parentheses or quotations or whitespace. This function also optionally removes strings that is not desired in the input. This function is a helper function of query_constructor


Function Call:

exclude_id(name, bad_prefixes=None)

Parameters:

  • name (required, str): A string of interest to be checked by the function.
  • bad_prefixes (optional, str, default=None): Prefix that is not desired in the input name.

Returns:

(bool) : Returns true if the given name contains invalid string, and false otherwise.

Clone this wiki locally