Genotype data ID处理

因为动物的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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容