Skip to content

Commit

Permalink
fixed linear argument
Browse files Browse the repository at this point in the history
  • Loading branch information
BjornFJohansson committed Oct 18, 2023
1 parent f802a51 commit 2f3091c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pydna/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ def embl_gb_fasta(raw, ds, path=None):
nf.__dict__ = _deepcopy(f.__dict__)
parsed.features = nfs
if ds and path:
result_list.append(
_GenbankFile.from_SeqRecord(parsed, linear=not circular, circular=circular, path=path)
)
result_list.append(_GenbankFile.from_SeqRecord(parsed, circular=circular, path=path))
elif ds:
result_list.append(_Dseqrecord.from_SeqRecord(parsed, linear=not circular, circular=circular))
result_list.append(_Dseqrecord.from_SeqRecord(parsed, circular=circular))
else:
parsed.annotations.update({"molecule_type": "DNA"})
result_list.append(parsed)
Expand Down

0 comments on commit 2f3091c

Please sign in to comment.