Skip to content

Commit

Permalink
Merge pull request #228 from stevendbrown/to_seqfeature_strand
Browse files Browse the repository at this point in the history
move strand specification to FeatureLocation in `to_seqfeature`
  • Loading branch information
daler authored Apr 9, 2024
2 parents 32e48a1 + 71033c1 commit cd01ff5
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 cd01ff5

Please sign in to comment.