@classmethod
def from_text(cls, line):
    """Create a `Variant` from a `.vcf` formatted line.

        :param line: string representing variant.

        """
    (chrom, pos, ident, ref, alt, qual, filt, info, genotype_keys,
        genotype_values, *others) = line.split('\t')
    pos = int(pos)
    pos -= 1
    gt = cls._sort_genotype_data(dict(zip(genotype_keys.split(':'),
        genotype_values.split(':'))))
    instance = cls(chrom, pos, ref, alt=alt, ident=ident, qual=qual, filt=
        filt, info=info, genotype_data=gt)
    return instance
