MITObim icon indicating copy to clipboard operation
MITObim copied to clipboard

using the interleave-fastqgz-MITOBIM.py

Open Niloofar-Alaei opened this issue 5 years ago • 1 comments

Hi,

I want to run the MITOBIM for my samples, but at first I should interleave my pair end fastq files.

I download this python script, interleave-fastqgz-MITOBIM.py, and when I run it, I receive this error message:

 File "interleave-fastqgz-MITOBIM.py", line 37 print re.sub(r" 1:N.*", "/1",line.strip()) SyntaxError: invalid syntax

Would you please help me to solve this error and run it

The best Niloo

Niloofar-Alaei avatar Jun 02 '20 14:06 Niloofar-Alaei

Hi,

I had the same error when using python v.3.7. Solved by using python v.2.

I think the error comes from python v.3 treating print differently to v.2 - you'd need to write it like print(re.sub(r" 1:N.*", "/1",line.strip())) - I did try this initially but ran into further errors - was quicker to just use the older python version!

nfwhite avatar Oct 08 '20 14:10 nfwhite