def retrieve_tags_info(alignment):
	"""
	extract all tag information from the alignment line
	
	Arguments
	----------
	alignment: one line of the sam/bam file
	
	Returns
	----------
	a dict of all tags and their tag values
	
	"""
	tags = {}
	for i in range(len(alignment)-1, 10, -1):
		val = alignment[i].split(":", 2)
		if (len(val) == 3):
			tags[val[0]] = val[1:]
	return tags