genome load in a for-loop

STAR-aligner: genome load in a for-loop

0

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
STAR --genomeLoad LoadAndKeep   --quantMode GeneCounts ......;
done



STAR --genomeLoad Remove --genomeDir /Genome/


STAR


STAR-aligner

• 22 views

Read more here: Source link