code: def _read_ancestry(file):
          
          df = pd.read_csv(
              file,
              comment="#",
              header=0,
              sep="\t",
              na_values=0,
              names=["rsid", "chrom", "pos", "allele1", "allele2"],
              index_col=0,
              dtype={"chrom": object},
          )
  
          # create genotype column from allele columns
          df["genotype"] = df["allele1"] + df["allele2"]
  
          # delete allele columns
          # http://stackoverflow.com/a/13485766
          del df["allele1"]
          del df["allele2"]
  
          # https://redd.it/5y90un
          df.ix[np.where(df["chrom"] == "23")[0], "chrom"] = "X"
          df.ix[np.where(df["chrom"] == "24")[0], "chrom"] = "Y"
          df.ix[np.where(df["chrom"] == "25")[0], "chrom"] = "PAR"
          df.ix[np.where(df["chrom"] == "26")[0], "chrom"] = "MT"
  
          return sort_snps(df), "AncestryDNA"
docs: Read and parse Ancestry.com file.
  
          http://www.ancestry.com
  
          Parameters
          ----------
          file : str
              path to file
  
          Returns
          -------
          pandas.DataFrame
              individual's genetic data normalized for use with `lineage`
          str
              name of data source