def get_id_from_tag(alignment,tag):
    """return the index of an alignment given the alignment tag"""
    for index in range(len(alignment)):
        if(alignment[index].id == tag):
            return index
    raise LookupError("invalid tag specified")