def trim_zenodo_link(path):
    """Trim a zenodo download link to extract file name.

    e.g. https://zenodo.org/record/3369410/files/gwas.txt.gz?download=1
    -> https://zenodo.org/record/3369410/files/gwas.txt.gz
    """
    path = path.replace('?download=1', '')
    return path