Hi guys I'm analyzing some high-coverage trio data. So Need to run BWA for hundreds of fastq.gz files. Obviously I should write some script to finish such task without waiting and typing in hundreds of commands one by one. But as a beginner without coding experience, I don't know how to do.
For example, I just put
bwa aln -t 24 index file1>1.sam
bwa aln -t 24 index file2>2.sam
bwa aln -t 24 index file3>3.sam
...............
..............
into the script, and run it..........and it doesn't work at all. I know I must miss sth., say, the pathway for fastq files.
anyone can give any pattern about such script of executing multiple jobs? thx
Why not then use
seq -w 0010022 0010077
and"SRR$i"
? I can tell that you haven't tried answering my "what happens when" questions.What happens when you run
seq -w 3 111
in Bash by itself? What happens when you run it without the-w
?thx guys.but actually the name of the fastq files here is not nubers like 1,2,3,4... but like SRR0010022, so
seq -w 3 111
doesn't really work....