This is a test version of Biostars. For the public version, visit https://www.biostars.org.
STAR-aligner: genome load in a for-loop

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

0 answers

No answers yet.

Log in to answer this question.