I need help to write a for loop to run Trimmomatic tool for quality trimming of paired end fastq files.
I need to write a for loop so that I can run an executable for all multiple files.
Input PE files looks like -
C1_R1.fastq
C1_R2.fastq
C2_R1.fastq
C2_R2.fastq
C3_R1.fastq
C3_R2.fastq
T1_R1.fastq
T1_R2.fastq
T2_R1.fastq
T2_R2.fastq
T3_R1.fastq
T3_R2.fastq
To run trimmomatic for the paired reads corresponding to C1_R1.fastq and C1_R2.fastq, the following command works:
The second command I posted on seqanswers (with an echo in front) should show you the command how it would be executed. That way you can figure out what is wrong.
Shouldn't you use this command in paired end mode?
Traceback (most recent call last):
File "python.py", line 10, in <module>
if os.path.isfile(inputdirectory + plikR2) :
NameError: name 'plikR2' is not defined
File "python.py", line 8
if ("R1" in fileR1):
^
IndentationError: unindent does not match any outer indentation level
than I checked the indent and tried to solve it, and later I got another error-
Traceback (most recent call last):
File "python.py", line 6, in <module>
for fileR1 in os.listdir(input):
TypeError: coercing to Unicode: need string or buffer, builtin_function_or_method found
Traceback (most recent call last):
File "python.py", line 6, in <module>
for fileR1 in os.listdir(inputfile):
NameError: name 'inputfile' is not defined
Hi, Thanks for you python script. I am trying to run this script but I have it not running or giving me any output. and also, I have no error come at any step. when I run it the result is nothing. Can you help me, please!
Thanks
Hi bioinformaticssrm2011,
The second command I posted on seqanswers (with an echo in front) should show you the command how it would be executed. That way you can figure out what is wrong.
Shouldn't you use this command in paired end mode?
I got an error, if you see that thread
I've seen that error. Now read what I wrote about using the echo statement and figuring out what's wrong.
About echo, I am new to this, so unable to understand it. Sorry
If you don't know the echo command you need to start with following a command line tutorial, that will make everything less painful.
this is my python script
shengweima : Did you post in the wrong thread or were you presenting an example?