亚洲精品午夜精品,日本二手网站,国产AⅤ爽AV久久久久成人社区,日本一二三区不收费av

使用 WeGene 需要啟用 Cookies, 請啟用后刷新頁面獲得更好的體驗
fuji246 fuji246 綜合討論組

Import AncestryDNA Data失敗

我在 MyHeritage做過檢測,有raw數據,把那個轉換成?AncestryDNA的數據格式,但是上傳到wegene失敗,看那個raw數據格式就是簡單的csv數據,我也參考過github上面的格式轉換的項目,但是不知道為什么上傳到wegene會失敗。
?

f = open('MyHeritage_raw_dna_data.csv')
f1 = open('MyHeritage_raw_dna_data.txt', 'w')
i = 0
for line in f.readlines():
? ? #print(line)
? ? if line == "" or line[0] == '#':
? ? ? ? continue
? ? elif 'RSID,CHROMOSOME,POSITION,RESULT' in line:
? ? ? ? f1.write('rsid\tchromosome\tposition\tallele1\tallele2\n')
? ? else:
? ? ? ? rsid, chromosome, position, result = map(lambda x: x[1:-1], line.strip().split(','))
? ? ? ? allele1 = result[0] if result[0] != '-' else 0
? ? ? ? allele2 = result[1] if result[1] != '-' else 0
? ? ? ? f1.write('%s\t%s\t%s\t%s\t%s\n' % (rsid, chromosome, position, allele1, allele2))
? ? ? ? i += 1

print('export complete, total %d records' % i)

f1.close()
f.close()
?
2018-04-21 ? IP屬地美國
按熱門排序    按默認排序

1 個回復

MyHeritage的格式如下:
?# MyHeritage DNA raw data.?
# This file was generated on 2018-03-08 00:50:25?
# For each SNP, we provide the identifier, chromosome number, base pair position and genotype.The genotype is reported on the forward (+) strand with respect to the human reference build 37.?
# THIS INFORMATION IS FOR YOUR PERSONAL USE AND IS INTENDED FOR GENEALOGICAL RESEARCH?
# ONLY. IT IS NOT INTENDED FOR MEDICAL OR HEALTH PURPOSES. PLEASE BE AWARE THAT THE?
# DOWNLOADED DATA WILL NO LONGER BE PROTECTED BY OUR SECURITY MEASURES.
RSID,CHROMOSOME,POSITION,RESULT
"rs4477212","1","82154","AA"
"rs3094315","1","752566","--"
"rs3131972","1","752721","GG"
"rs12562034","1","768448","--"

要回復問題請先登錄注冊

  • <track id="ffr4e"></track>

      <dfn id="ffr4e"></dfn>

      主站蜘蛛池模板: 邵武市| 晴隆县| 霍林郭勒市| 建宁县| 镇赉县| 肥西县| 会同县| 定西市| 积石山| 莎车县| 巩留县| 应城市| 拜城县| 柳河县| 榆中县| 延吉市| 梁河县| 句容市| 博兴县| 楚雄市| 临沧市| 文化| 黄龙县| 永宁县| 三原县| 石家庄市| 安新县| 昭通市| 恩施市| 安吉县| 玛纳斯县| 慈利县| 颍上县| 唐海县| 滨州市| 鹤山市| 枣庄市| 铜山县| 乾安县| 宁夏| 揭西县|