Mercurial > repos > rlegendre > ribo_tools
comparison get_codon_frequency.py @ 14:344bacf6acb8 draft
Uploaded
author | rlegendre |
---|---|
date | Fri, 10 Apr 2015 03:18:56 -0400 |
parents | 7c944fd9907e |
children | 702e60e819c2 |
comparison
equal
deleted
inserted
replaced
13:7c944fd9907e | 14:344bacf6acb8 |
---|---|
92 | 92 |
93 if len(read) == 0: | 93 if len(read) == 0: |
94 continue | 94 continue |
95 len_read = len(read.split('\t')[9]) | 95 len_read = len(read.split('\t')[9]) |
96 # if it's read of good length | 96 # if it's read of good length |
97 if len_read == kmer and (tag in line or multi_tag not in line): | 97 if len_read == kmer and (tag in read or multi_tag not in read): |
98 feat = read.split('\t') | 98 feat = read.split('\t') |
99 seq = feat[9] | 99 seq = feat[9] |
100 # if it's a reverse read | 100 # if it's a reverse read |
101 if feat[1] == '16' : | 101 if feat[1] == '16' : |
102 if site == "A" : | 102 if site == "A" : |