genomepy.annotation.utils.write_annot

genomepy.annotation.utils.write_annot(df: DataFrame, fpath: str)

Write a dataframe to a GTF or BED file.

Parameters
  • df (pd.DataFrame) – annotation dataframe

  • fpath (str) – path to the annotation file