Entering edit mode
8.1 years ago
arunbodd
▴
10
Hello everyone,
I am trying to run FIMO on my server for multiple motif files. But it cannot create output directories instead overwrites the output directory with motif outputs. So, i am trying to do the following command but it doesn't seem to work. Can you please tell me how can i create multiple out directories, so that i can direct each motif output to its respective directory?
for f in /home/arunbodd/Fimo/Encode__CLIP_HepG2_2016/*.motif; do mkdir -p "$(dirname "/home/arunbodd/Fimo/$f_out")" && fimo --o /home/arunbodd/Fimo/{$f}_out --max-seq-length 2.5e8 --thresh 0.05 $f /home/arunbodd/Fimo/mart_export.txt; done
Thank You
hey ram
thank you, It was working.
Glad to know it worked - please accept my answer if it was helpful.