Check for new replies
Command to flip snps
#1
What’s the command to flip snps when merging causes missing snps
Reply
#2
Deja Vu


https://genarchivist.com/showthread.php?...1#pid18281
Reply
#3
You can also take all of those steps are turn them into a function and do it in a single call.

Here is what Nganasankhan shared with me. Place these in your bashrc file.


plib()(plink --allow-no-sex --bfile "$@")
merg()(plib "$1" --bmerge "$2" --make-bed --out merge;plib "$2" --flip merge-merge.missnp --make-bed --out "$2-flip";plib "$1" --bmerge "$2-flip" --make-bed --out merge;plib "$2-flip" --exclude merge-merge.missnp --make-bed --out "$2-filtered";plib "$1" --bmerge "$2-filtered" --make-bed --out "${3-merged}")

Call it like this:
merg v62.0_HO_public AimSmall_genome
Reply

Check for new replies

Forum Jump:


Users browsing this thread: 1 Guest(s)