def parse_hgtector(input_f):
    """ Parse output of HGTector version 0.2.1.

    Parameters
    ----------
    input_f: string
        file descriptor for HGTector output results

    Returns
    -------
    output: string
        one putative HGT-derived gene per line
        columns: query_id, donor_taxid, donor_species, donor_lineage, pct_id,
        pct_coverage
    """
    hgts = []
    for line in input_f:
        x = line.strip('\r\n').split('\t')
        if (len(x) == 15) and (x[7] == '1'):
            hgt = '\t'.join((x[0], x[12], x[13], x[14], x[10], x[11]))
            hgts.append(hgt)
    return '\n'.join(hgts)