Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
run_PRScs/03_compute_PRS.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
15 lines (12 sloc)
562 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#====================== | |
# compute PRS after PRScs | |
# alicia_schowe@psych.mpg.de | |
#===================== | |
# best guess ---------------------------------------- | |
#merge all chromosome files | |
cd ${1} | |
cat ${2}_pst_eff_a1_b0.5_phiauto_chr*.txt > ${2}.txt | |
#compute score: By default, if a genotype in the score is missing for a particular individual, then the expected value is imputed, i.e. based on the sample allele frequency. To change this behavior, add the flag | |
#--score-no-mean-imputation | |
plink --score ${2}.txt 2 4 6 sum --out ${2}_PRS --bfile ${3}; |