I have a script below, I am looping throught GTEx brain tissues and running a program laid out below. How do I in the --output put a unique output file? I am lost on this, still kind of new to bash. BTW, TISSUE files look like this: Brain_Frontal_Cortex_BA9.genes.annot
and Lung.genes.annot
In the GTExV8 folder, I have 48 unique files that TISSUE will loop through. Thus, the output for one example would be Brain_Frontal_Cortex_BA9_emagma
and Lung_emagma
#!/bin/bash
for TISSUE in GTExV8/*;
do
./magma
--bfile g1000_eur
--gene-annot $TISSUE
--pval Summary_Statistics_GWAS_2016/ALSGWAS.txt ncol=Ne
--gene-settings adap-permp=10000
--out LABEL WITH EACH TISSUE LOOPED
done