Skip to content

Commit

Permalink
Update prep_new_db.py
Browse files Browse the repository at this point in the history
  • Loading branch information
EricSalomaki authored Oct 19, 2023
1 parent 7689f41 commit 7f64415
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prep_new_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ def make_new_paras(masterdbpath, paraoutdir, lines):
print(fname)
with open(paraoutdir + "/" + fname, "w") as outfasta:
for record in fasta:
p = record.id.split('..')[0]
for line in lines:
if line == record.id:
if line == p:
keep.append(record)
SeqIO.write(record, outfasta, "fasta")
else:
Expand Down

0 comments on commit 7f64415

Please sign in to comment.