Hi,
Brand new to these forums, and I hope that someone can help me out.
I'm trying to run the following command in UNIX
java -jar GenomeAnalysisTK.jar -T SplitSamFile -dt NONE -R reference.fa -I my.bam --outputRoot /my/path/SampleFiles/Sample_
It executes the SplitSamFile from GATK, but I want to run 3 additional commands, in a sequence. I can get them to run simultaneously but not in sequence, as I'm not able to pause the jobs (using ctrl + z) and put them in the background.
I've tried the following in my UNIX bash system (example with just two commands):
java -jar GenomeAnalysisTK.jar -T SplitSamFile -dt NONE -R reference.fa -I my1.bam --outputRoot /my/path/SampleFiles/Sample_ &; java -jar GenomeAnalysisTK.jar -T SplitSamFile -dt NONE -R reference.fa -I my2.bam --outputRoot /my/path/SampleFiles/Sample_ &
but this gives me the following error:
-bash: syntax error near unexpected token `;'
I've tried to consider doing a SH script, but can't figure out how to make the commands come in sequence rather than all starting at the same time.
Hope someone can help me out.