Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using the interleave-fastqgz-MITOBIM.py #46

Open
Niloofar-Alaei opened this issue Jun 2, 2020 · 1 comment
Open

using the interleave-fastqgz-MITOBIM.py #46

Niloofar-Alaei opened this issue Jun 2, 2020 · 1 comment

Comments

@Niloofar-Alaei
Copy link

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

@nfwhite
Copy link

nfwhite commented Oct 8, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants