Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost denovo_28June]# python
- Python 2.7.15 |Anaconda, Inc.| (default, Dec 14 2018, 19:04:19)
- [GCC 7.3.0] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import re
- >>> with open ('FD.fastq', 'r' ) as f:
- ... content = f.read()
- ... content_new = re.sub('(@[0-9A-Z]]*) [^\\r\\n]*', r'\1/1', content, flags = re.M)
- File "<stdin>", line 3
- content_new = re.sub('(@[0-9A-Z]]*) [^\\r\\n]*', r'\1/1', content, flags = re.M)
- ^
- SyntaxError: invalid syntax
- >>> f = open('output.txt', 'w')
- >>> f.write(content_new)
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- NameError: name 'content_new' is not defined
- >>> f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement