def extension_without_gz(path):
    """Get the file extension ignoring .gz if present"""
    suffixes = path.suffixes
    last = len(suffixes)
    if suffixes[last] == ".gz":
        extension = suffixes[last - 1]
    else:
        extension = suffixes[last]
    return extension