Skip to content

Commit

Permalink
move strand specification to FeatureLocation
Browse files Browse the repository at this point in the history
  • Loading branch information
stevendbrown committed Feb 28, 2024
1 parent 955fb41 commit 71033c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gffutils/biopython_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ def to_seqfeature(feature):
return SeqFeature(
# Convert from GFF 1-based to standard Python 0-based indexing used by
# BioPython
FeatureLocation(feature.start - 1, feature.stop),
FeatureLocation(
feature.start - 1,
feature.stop,
strand=_biopython_strand[feature.strand]),
id=feature.id,
type=feature.featuretype,
strand=_biopython_strand[feature.strand],
qualifiers=qualifiers,
)

Expand Down

0 comments on commit 71033c1

Please sign in to comment.