Skip to content

Commit ee45454

Browse files
organisation fixes
1 parent a700381 commit ee45454

File tree

3 files changed

+47
-13
lines changed

3 files changed

+47
-13
lines changed

03-prs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,5 @@ done
139139

140140
echo "Successfully generated correlation matrices for each phenotype!"
141141
echo "Generating PRS-phenotype associations for each subset"
142-
Rscript resources/phenotypes/score.r ${phenotype_processed_dir}/phenolist ${genotype_processed_dir}/scratch/tophits ${results_dir}/04
142+
Rscript resources/phenotypes/score.r ${phenotype_processed_dir}/phenolist ${genotype_processed_dir}/scratch/tophits ${results_dir}/03
143143
echo "Successfully generated scores!"

utils/check.sh

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,42 @@
22

33
source config.env
44

5+
6+
echo "Checking R packages..."
57
Rscript -e "renv::status()"
68

7-
./bin/plink2 --version
8-
./bin/flashpca --version
9-
./bin/gcta-1.94.1
10-
./bin/king
9+
tf=$(mktemp)
10+
11+
echo "Checking plink..."
12+
if ./bin/plink2 --version > $tf 2>&1; then
13+
echo "All good!"
14+
else
15+
cat $tf
16+
fi
17+
18+
echo "Checking flashpca..."
19+
if ./bin/flashpca --version > $tf 2>&1; then
20+
echo "All good!"
21+
else
22+
cat $tf
23+
fi
24+
25+
echo "Checking gcta..."
26+
27+
./bin/gcta-1.94.1 > $tf 2>&1
28+
if cat $tf | grep -q "Genome"; then
29+
echo "All good!"
30+
else
31+
cat $tf
32+
fi
33+
34+
echo "Checking gcta..."
35+
36+
./bin/king > $tf 2>&1
37+
if cat $tf | grep -q "KING"; then
38+
echo "All good!"
39+
else
40+
cat $tf
41+
fi
42+
43+

utils/run_apptainer.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,25 @@
22

33
source config.env
44

5-
apptainer pull -F docker://MRCIEU/lifecourse-gwas:latest
5+
# apptainer pull -F docker://mrcieu/lifecourse-gwas:latest
66

77
# Run without pwd binding
88

9-
d=${PWD}
10-
echo $d
11-
td=$(mktemp -d)
12-
cd $td
9+
# d=${PWD}
10+
# echo $d
11+
# td=$(mktemp -d)
12+
# cd $td
1313

1414
apptainer run \
15-
--bind "${d}/config.env:/project/config.env" \
15+
--containall \
16+
--bind "${PWD}/config.env:/project/config.env" \
1617
--bind "${phenotype_input_dir}:${phenotype_input_dir}" \
1718
--bind "${phenotype_processed_dir}:${phenotype_processed_dir}" \
1819
--bind "${genotype_input_dir}:${genotype_input_dir}" \
1920
--bind "${genotype_processed_dir}:${genotype_processed_dir}" \
2021
--bind "${results_dir}:${results_dir}" \
2122
--cwd /project \
22-
${d}/lifecourse-gwas_latest.sif \
23+
${PWD}/lifecourse-gwas_latest.sif \
2324
"$@"
2425

25-
cd $d
26+
# cd $d

0 commit comments

Comments
 (0)