def get_organism_info(seq_record):
	"""
	When passed a sequence record object returns a string containing the organisms info.

	:param seq_record: A Biopython sequence record object.
	:return: A string containing a CSV file row.
	"""
	print(">> Extracting Organism Info...")
	organism_id = seq_record.id
	description = seq_record.description.replace(",", "")
	if 'plasmid' in description.lower():
		accession_type = 'Plasmid'
	elif 'chromosome' in description.lower():
		accession_type = 'Chromosome'
	elif 'genome' in description.lower():
		accession_type = 'Chromosome'
	else:
		accession_type = 'Unknown'
	source = seq_record.annotations['source'].replace(",", "")
	taxonomy = "_".join(seq_record.annotations['taxonomy'])
	organism_genome_length = len(seq_record.seq)

	organism_string = organism_id + "," + accession_type + "," + description + "," + source + "," + taxonomy + "," + str(
		organism_genome_length) + "\n"
	return organism_string