Skip to content

Commit

Permalink
added a way to force the .csv file to be read with linux formatting i…
Browse files Browse the repository at this point in the history
…n 1_create_(...) step. Should resolve in much less support - not a problem for the R-part of the GRS
  • Loading branch information
Vincent Appel committed Jan 25, 2017
1 parent 658fb9e commit 26c8fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1_create_geno_from_vcf.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
snpListFile=$1; shift

cut -d',' -f2,3 $snpListFile | tr ',' '\t' | sort -nk2 > SNP_CHR.tmp
cat $snpListFile | tr '\r' '\n' | cut -d',' -f2,3 | tr ',' '\t' | sort -nk2 > SNP_CHR.tmp
for i in {1..22}
do
awk -v "chr=$i" '$2==chr {print $1}' SNP_CHR.tmp > geno/$i.snps
Expand Down

0 comments on commit 26c8fd7

Please sign in to comment.