Write a dataframe to a GTF or BED file.
df (pd.DataFrame) – annotation dataframe
fpath (str) – path to the annotation file