Entering edit mode
3.2 years ago
santos48
▴
40
Dear All, hope you are doing well. I am trying to write a loop for my all fastq and doing preprocessing using bash. I am taking an error, Can you help me to write bash loops?
for file in *.fastq; do cdna_classifier.py -Q 7 -z 200 test7/{file}* output/{file} done
My goal:taking every fastq file with its name after that saving with same name as a fastq file Tools pychopper
Error: cdna_classifier.py: error: unrecognized arguments: output/*.fastq.fastq
echo bash loop:
check if correct files are echoed. Code is incorrect as it is listing fastq files in current directory, but supplying files from test7 directory. In addition, * is not necessary. It should be some thing like this:
Make sure that
output
directory andtest7
directory exist in current directory.Try something simple like this: