Genotype data ID处理

作者: Hello育种 | 来源:发表于2023-12-03 17:02 被阅读0次

    因为动物的ID长短不同,但是BLUPF90软件进行分析时,要求ID必须相同,
    可以做如下处理:
    Linux

    awk '{printf "%-n1s %-n2s \n", $1,$2}' genotype.file > new genotype.file
    
    
    replace n1 for the maximum length of your IDs, and replace n2 with the number of SNPs (integer genotypes case)
    

    自己使用awk '{printf "%-16s %-566170s \n", 1,2}' genotype.file > new genotype.file

    相关文章

      网友评论

        本文标题:Genotype data ID处理

        本文链接:https://www.haomeiwen.com/subject/mwhwnltx.html