-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREAD.sh
More file actions
29 lines (20 loc) · 724 Bytes
/
Copy pathREAD.sh
File metadata and controls
29 lines (20 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
module purge
ml arch/haswell
ml arch/arch/haswell
ml modulefiles/arch/haswell
ml plink/1.90beta-4.4-21-May
conda activate read
#requirements
#python 2.7
#R
# READ input: PLINK .tped and .tfam files
# produce tped by --recode transpose
DATA=$1
#Prepare dataset
#flags: turn off plink auto-reorder of alleles, minor allele frequency, genotyping threshold, retain individuals without sex assigned
plink --bfile ${DATA} --keep-allele-order --maf 0.01 --geno 0.999999 --mind 1.0 --allow-no-sex --recode transpose --out ${DATA}
rm ${DATA}.nosex
# Run READ
# READ output loads pdf viewer, so may not work on HPC environments without that capability
python /hpcfs/users/a1717363/Programs/read/READ.py ${DATA}