Skip to content

Commit

Permalink
Merge pull request #34 from genxnetwork/hotfix/duplicates
Browse files Browse the repository at this point in the history
1. Duplicated SNPs are removed properly
  • Loading branch information
alex-medvedev-msc authored Dec 1, 2021
2 parents b50ad77 + 6e98cb1 commit bb321fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/filter.smk
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ rule plink_clean_up:
# remove dublicates
cut -f 2 {params.input}.bim | sort | uniq -d > plink/snp.dups
plink --bfile {params.input} --exclude plink/snp.dups --make-bed --out plink/merged_filter_dub |& tee -a {log}
plink --bfile {params.input} --extract plink/merged_filter.bim.freq --make-bed --out plink/merged_freq |& tee -a {log}
plink --bfile plink/merged_filter_dub --extract plink/merged_filter.bim.freq --make-bed --out plink/merged_freq |& tee -a {log}
plink --bfile plink/merged_freq --extract plink/merged_filter.bim.chr --make-bed --out plink/merged_extracted |& tee -a {log}
plink --bfile plink/merged_extracted --flip plink/merged_filter.bim.flip --make-bed --out plink/merged_flipped |& tee -a {log}
plink --bfile plink/merged_flipped --update-chr plink/merged_filter.bim.chr --make-bed --out plink/merged_chroped |& tee -a {log}
Expand Down

0 comments on commit bb321fb

Please sign in to comment.