Skip to content

Commit

Permalink
Avoid Biopyton SeqFeature .strand alias
Browse files Browse the repository at this point in the history
This was missing in Biopython 1.82. Closes #34
  • Loading branch information
peterjc committed Jan 5, 2024
1 parent 676bcec commit 5d7c156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biorun/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def record_generator(rec):
brec = BioRec(id=uid, ann=ann, parent=parent, seq=seq, type=ftype, desc=desc, source=rec.id)

# Correct the feature coordinates.
brec.strand = feat.strand
brec.strand = feat.location.strand

brec.start, brec.end = int(feat.location.start) + 1, int(feat.location.end)
brec.locs = [(loc.start + 1, loc.end, loc.strand) for loc in
Expand Down

0 comments on commit 5d7c156

Please sign in to comment.