Changeset 64 for liacs/dbdm/dbdm_4/parse_fasta.py
- Timestamp:
- Dec 27, 2009, 7:57:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
liacs/dbdm/dbdm_4/parse_fasta.py
r63 r64 11 11 from reading_frames import reading_frames 12 12 13 # The mapping is kind of odd, as 'r' could mean either 'g' or 'a' 13 # The mapping is kind of odd, as 'r' could mean either 'g' or 'a', but in our 14 # case we map them all to unknown 15 14 16 fasta_translate = { 15 'r' : ' ga', # purine16 'y' : ' tc', # pyrimide17 'k' : ' gt', # keto18 'm' : ' ac', # amino19 's' : ' gc', # strong20 'w' : ' at', # weak21 'b' : ' gtc',22 'd' : ' gat',23 'h' : ' act',24 'v' : ' gca',17 'r' : 'n', # purine 18 'y' : 'n', # pyrimide 19 'k' : 'n', # keto 20 'm' : 'n', # amino 21 's' : 'n', # strong 22 'w' : 'n', # weak 23 'b' : 'n', 24 'd' : 'n', 25 'h' : 'n', 26 'v' : 'n', 25 27 } 26 28 … … 83 85 seq2 = parse_file(file2) 84 86 85 # Wrong assumption, replace is not possible as the real value is not know yet86 #seq1 = fasta.replace(seq1)87 #seq2 = fasta.replace(seq2)87 # Simplify answers 88 seq1 = fasta.replace(seq1) 89 seq2 = fasta.replace(seq2) 88 90 89 91 # Find overlap
Note:
See TracChangeset
for help on using the changeset viewer.