格式轉(zhuǎn)換--2024-03-23

格式轉(zhuǎn)換
hapmap格式:hmp.txt
plink格式:ped和map以及二進制文件bed/bim/fam
vcf格式:vcf

1. hapmap <-> vcf

hapmap -> vcf

run_pipeline.pl -SortGenotypeFilePlugin -inputFile hmp.txt -outputFile test.sort.hmp.txt -fileType Hapmap

run_pipeline.pl -Xmx100g -fork1 -h test.sort.hmp.txt -export -exportType VCF

vcf -> hapmap

run_pipeline.pl -Xms10g -Xmx100g  -vcf in.vcf.gz -sortPositions -export out.hmp.txt -exportType HapmapDiploid

2. hapmap_to_qtl2

Convert HapMap file into a useable R qtl2 genotype file

#下載
git clone https://github.com/jlboat/hapmap_to_qtl2.git

#使用
usage: hapmap_to_qtl2.py [-h] --hapmap HAPMAP [--output OUTPUT]

This script was designed to convert a hapmap file into R qtl2 format.

optional arguments:
    -h, --help       show this help message and exit
    --output OUTPUT  File name for qtl2 output.

required arguments:
    --hapmap HAPMAP  The name of the input hapmap file. 

3. vcf <-> plink

vcf -> plink

plink --vcf input.vcf --recode --out output --double-id  --autosome-num 42

plink --file A --make-bed --out A --autosome-num 42

結(jié)果生成:ped/map以及二進制文件bed/bim/fam

添加--recode參數(shù)將輸出結(jié)果調(diào)整為ped格式

plink -> vcf

plink --bfile binary_fileset --export vcf --out new_vcf  
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容