@@ -101,17 +101,17 @@ def get_orfs(genomic_accession, strand, region_start, region_end, region_seq,
101101 else :
102102 real_start = start + region_start
103103 real_end = stop + region_start - 1 + 3 # (+3 for stop codon)
104- # genomic_key = genomic_accession + '_' + strand + '_' + str(real_start) + '_' + str(real_end)
105- # # if detected small orf already is annotated, don't print it in fasta
106- # # Store nonetheless the RBS values in protein dict
107- # if genomic_key in coord_to_anno_pep:
108- # protein_dict[coord_to_anno_pep[genomic_key]]['RBS_bin'] = None
109- # protein_dict[coord_to_anno_pep[genomic_key]]['RBS_spacer'] = None
110- # protein_dict[coord_to_anno_pep[genomic_key]]['RBS_motif'] = None
111- # # outfile.write('>' + coord_to_anno_pep[genomic_key] + ' ' + genomic_accession + '_[' + str(real_start) + '-' + str(real_end) + '](' + strand +
112- # # ')_Anchor=' + anchor_protein + '_RBS_bin=' + str(rbs_bin) + ';RBS_motif=' + rbs_motif + ';RBS_spacer=' + str(rbs_spacer) + '\n')
113- # # outfile.write(orf_seq + '\n')
114- # # break
104+ genomic_key = genomic_accession + '_' + strand + '_' + str (real_start ) + '_' + str (real_end )
105+ # if detected small orf already is annotated, don't print it in fasta
106+ # Store nonetheless the RBS values in protein dict
107+ if genomic_key in coord_to_anno_pep :
108+ protein_dict [coord_to_anno_pep [genomic_key ]]['RBS_bin' ] = None
109+ protein_dict [coord_to_anno_pep [genomic_key ]]['RBS_spacer' ] = None
110+ protein_dict [coord_to_anno_pep [genomic_key ]]['RBS_motif' ] = None
111+ # outfile.write('>' + coord_to_anno_pep[genomic_key] + ' ' + genomic_accession + '_[' + str(real_start) + '-' + str(real_end) + '](' + strand +
112+ # ')_Anchor=' + anchor_protein + '_RBS_bin=' + str(rbs_bin) + ';RBS_motif=' + rbs_motif + ';RBS_spacer=' + str(rbs_spacer) + '\n')
113+ # outfile.write(orf_seq + '\n')
114+ # break
115115
116116 # if orf has a relevant RBS, fill protein_dict, cognate_dict and pair_dict
117117 if rbs_bin in bins_allowed :
0 commit comments