alphagenome.data.gene_annotation.extract_tss

Contents

alphagenome.data.gene_annotation.extract_tss#

alphagenome.data.gene_annotation.extract_tss(gtf, feature='transcript')[source]#

Extract transcription start sites (TSS) from a DataFrame.

Parameters:
  • gtf (DataFrame) – pd.DataFrame containing gene annotation.

  • feature (str (default: 'transcript')) – Feature in the GTF file to use (either transcript or gene).

Return type:

DataFrame

Returns:

pd.DataFrame containing transcription start sites (width=0, 0-based).