def parse_contaminations(file):
    """
    Parse contamination file.
    example:
    ==============================
    Pirisoci	Alveolata	group
    DiplDSTH	GoniavonGEN	org
    Fucucera	Ochrophyta	subtax
    ==============================
    input: tab separated file with contaminations
    result: dictionary with organism as key and tuple with taxonomy
            and rank 
    """
    cont_dict = {}
    for line in open(file):
        org, tax, rank = line.split('\t')
        cont_dict[org] = tax, rank.strip()
    return cont_dict
