@WouterDeCoster and @genomax by both of you in the same post I just remembered November 2016 in Germany when I had stuck on a task that the professor asked me and you both helped me until late night :) Now, in November 2019 I am in somewhere else on this globe again seeking help on biostars!
Thank you guys
There are many threads that deal with
forloops in shell on Biostars. I will link one to get you going: Bash Script Loop HelpIf you have compute resources then you can use
parallelin addition. Or ideally submit separate jobs on a compute cluster (if you have access to one).Thank you we have clutter computing but should not I prepare a txt for submitting each that takes the same time
May be I am wrong though :(
It should take no additional time (well some minutes). I will use the example posted in the answer below to show you how you could submit cluster jobs (I will use
SLURMas an example but substitute your own job scheduler as needed).Looks like the user who had posted the answer chose to take it out. But you could use some variation like so
This
forloop will submit individual cluster jobs of each of your data files.Thank you; I provided a .txt file containing
Then in terminal I wrote
qsub file.txtAfter running job error file says
I had said specifically that it was an example using
SLURM. If your cluster uses a different job scheduler this is obviously not going to work.Since you are using
qsubyour cluster is using SGE/PBS. You will need to use an appropriate command that works for your job scheduler.Please edit your post title to make it useful for others. It doesn't currently tell anyone anything about the content.