From 71033c19929378da9749b5ec5f5458253f82b313 Mon Sep 17 00:00:00 2001 From: Steven Brown Date: Wed, 28 Feb 2024 19:34:38 +0000 Subject: [PATCH] move strand specification to FeatureLocation --- gffutils/biopython_integration.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gffutils/biopython_integration.py b/gffutils/biopython_integration.py index b49e541..e6a80ab 100644 --- a/gffutils/biopython_integration.py +++ b/gffutils/biopython_integration.py @@ -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, )