These functions from stacks-tools are needed for scripts/add_tags.py