Light1992

Codice script Python

Jul 1st, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. import re
  2. with open('FD.fastq', 'r' ) as f:
  3. content = f.read()
  4.  
  5. content_new = re.sub('(@[0-9A-Z]*) [^\\r\\n]*', r'\1/1', content, flags = re.M)
  6. f = open('FD_out2.txt', 'w')
  7. f.write('a')
  8. f.close()
Advertisement
Add Comment
Please, Sign In to add comment