Skip to content

Commit

Permalink
Small fixes in ukb_analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
junmingguan committed Dec 3, 2024
1 parent ed11c7f commit e1951da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
source ${snipar_env}/bin/activate

set -e
outdir=/disk/genetics/ukb/jguan/ukb_analysis/output/gwas/new_robust/with_grm

for i in {1..10} {14..18}; do
name=$(head -n 1 /disk/genetics/ukb/jguan/ukb_analysis/output/processed_traits_noadj_allancestry.txt | awk -v var=$i '{ print $((2+var)) }')
name=$(head -n 1 ${PHEN_PATH}/processed_traits_noadj_allancestry.txt | awk -v var=$i '{ print $((2+var)) }')
echo $name $i
if [ ! -d "$outdir/$name" ]
then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ set -e

for i in 11 12 13 18; do
name=$(head -n 1 ${PHEN_PATH}/processed_traits_noadj.txt | awk -v var=$i '{ print $((2+var)) }')
echo $name $i
if [ ! -d "$outdir/$name" ]
then
mkdir $outdir/$name
Expand Down

0 comments on commit e1951da

Please sign in to comment.