pycallingcards.tools.find_location#

pycallingcards.tools.find_location(data, original_name, new_name=None, genome='hg38')[source]#

Find the gene location for a specfic genome.

Parameters:
  • data (DataFrame) – pd.DataFrame with the first three columns as chromosome, start and end.

  • original_name (str) –

    . The name of the target column.

  • new_name (Optional[str] (default: None)) – The new name, default is the genome name.

  • genome (str (default: 'hg38')) – The genome to search for .

Return type:

DataFrame

Example:

>>> import pycallingcards as cc
>>> adata_cc = cc.datasets.mousecortex_data(data="CC")
>>> adata_cc = cc.tl.find_location(adata_cc.var,'Gene Name1')