Skip to content

Commit 7574910

Browse files
committed
rebase.py -ctn
1 parent 944bd9f commit 7574910

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

plasmid_opt.py

+11-17
Original file line numberDiff line numberDiff line change
@@ -95,20 +95,6 @@
9595
orfs1 = [orf[0].end()+1, orf[1], o_seq, o_seq.translate(table=11)]
9696
orfs.append(orfs1)
9797

98-
# in_frame_stop = []
99-
# for i in range(len(stop_codon_list) - 1):
100-
# for j in range((len(full_seq_str) - stop_codon_list[i].start())/3):
101-
# in_frame = stop_codon_list[i].start() + (3 * j)
102-
# for stop in stop_codon_list:
103-
# if stop.start() in in_frame:
104-
# in_frame_stop.append(stop)
105-
# # print in_frame_stop
106-
# for x in range(len(in_frame_stop) - 1):
107-
# orf = (in_frame_stop[x+1].start() - in_frame_stop[x].start())
108-
# if orf >= 100:
109-
# print in_frame_stop[x]
110-
# print orf
111-
11298
# ESEARCH HOST GENOME IDLIST
11399

114100
# Entrez.email = "[email protected]"
@@ -191,16 +177,24 @@
191177
for cds in cds_list:
192178
gene_dicts.append(cds.qualifiers)
193179

180+
# print gene_dicts[50]
181+
# for trans in gene_dicts:
182+
# if 'product' in trans:
183+
# # print(trans['product'])
184+
# else:
185+
# pass
186+
194187
for trans in gene_dicts:
195188
if 'translation' in trans:
196189
AA_seqs.append(trans['translation'])
197190
else:
198191
pass
199192

200-
print AA_seqs[300]
201193

202-
# print(genome_dict[genome_IdList[0]][0])
203-
# print(len(genome_dict))
194+
# BLAST GENOME
195+
196+
# for aa in AA_seqs:
197+
# blast_result = NCBIWWW.qblast("blastp", "nr", aa)
204198

205199
# X BP GENOME SEGMENTS
206200
# gen_bp_ol = []

0 commit comments

Comments
 (0)