STAR-aligner: genome load in a for-loop
0
0
Entering edit mode
12 months ago
Palgrave ▴ 100

I am running multiple samples defined in files.txt. How should I load the genome correctly to avoid it being loaded for each iteration in the loop? I tried the following, but the --genomeLoad LoadAndKeep required fastq-files to be loaded, in addition to the genome.

mapfile -s 1 -t files < files.txt
echo "${files[@]}" STAR --genomeLoad LoadAndKeep --genomeDir /Genome/ for FILE in${files[@]}; do
done


STAR STAR-aligner • 279 views