Mercurial > repos > charles_s_test > seqsero2
comparison libs/compare_and_change_two_fastq_id.py @ 10:53efef402c51 draft
planemo upload commit a4fb57231f274270afbfebd47f67df05babffa4a-dirty
author | charles_s_test |
---|---|
date | Wed, 29 Nov 2017 08:34:19 -0500 |
parents | 3d6680af0bec |
children |
comparison
equal
deleted
inserted
replaced
9:acc5cd06a36a | 10:53efef402c51 |
---|---|
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) |