comparison libs/compare_and_change_two_fastq_id.py @ 7:3d6680af0bec draft

planemo upload commit a4fb57231f274270afbfebd47f67df05babffa4a-dirty
author charles_s_test
date Mon, 27 Nov 2017 16:30:27 -0500
parents 6895de35a263
children 53efef402c51
comparison
equal deleted inserted replaced
6:b6281a377a18 7:3d6680af0bec
15 if x.startswith("@"): 15 if x.startswith("@"):
16 b_title=x.split(" ")[0] 16 b_title=x.split(" ")[0]
17 if a_title==b_title: 17 if a_title==b_title:
18 pass 18 pass
19 else: 19 else:
20 print "changing the title of two seperated fastq files..." 20 print("changing the title of two seperated fastq files...")
21 print a_title,b_title 21 print(a_title,b_title)
22 os.system("sed "+"-i 's/.1 / /g' "+file1) 22 os.system("sed "+"-i 's/.1 / /g' "+file1)
23 print "finished file1" 23 print("finished file1")
24 os.system("sed "+"-i 's/.2 / /g' "+file2) 24 os.system("sed "+"-i 's/.2 / /g' "+file2)
25 print "finished file2" 25 print("finished file2")
26 26
27 compare_and_change_two_fastq_id(file1,file2) 27 compare_and_change_two_fastq_id(file1,file2)