def species_name(fname):
    """Find a species name given a filename."""
    #   Again, assume this time that the species name is the first field in
    #   the _-delimited filename
    species = fname.split('_')[0]
    #   Dots and underscores mess it up
    species = species.replace('.', '_')
    return species