Skip to content

Commit

Permalink
convert genotypes to PLINK
Browse files Browse the repository at this point in the history
  • Loading branch information
TCLamnidis committed Nov 2, 2023
1 parent 027d5ca commit 4590314
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/minotaur_packager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,17 @@ elif [[ ! -d ${output_package_dir} ]] || [[ ${newest_genotype_fn} -nt ${output_p
errecho -y "Populating janno file"
${repo_dir}/scripts/populate_janno.py -r ${package_minotaur_directory}/results/ -t ${finalisedtsv_fn} -p ${tmp_dir}/package/POSEIDON.yml

## TODO-dev Infer genetic sex from janno and mirror to ind file.

## Convert data to PLINK format
trident genoconvert -d ${tmp_dir}/package \
--genoFile ${tmp_dir}/package/${package_name}.geno \
--snpFile ${tmp_dir}/package/${package_name}.snp \
--indFile ${tmp_dir}/package/${package_name}.ind \
--inFormat EIGENSTRAT \
--outFormat PLINK \
--removeOld

## Update the package yaml to account for the changes in the janno (update renamed to rectify)
trident rectify -d ${tmp_dir}/package \
--packageVersion Patch \
Expand Down

0 comments on commit 4590314

Please sign in to comment.