Last active
June 30, 2021 16:09
-
-
Save nievergeltlab/6e39c7a41c3b427c3798176a83d099e3 to your computer and use it in GitHub Desktop.
Merge long list of PLINK files
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
ls ../bgn | sed 's/.bed//g' | sed 's/.bim//g' | sed 's/.fam//g' | sort -u | awk '{print "../bgn/"$1".bed","../bgn/"$1".bim","../bgn/"$1".fam"}' > mergelist.txt | |
../plink --merge-list mergelist.txt --maf 0.00000001 --geno 0.02 --make-bed --out pgbd_nomono_goodgeno | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment