Mercurial > repos > fubar > jbrowse2
diff gff3_rebase.py @ 23:39b717d934a8 draft
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit be2268f4c11d54bdd44789dd88dd9017cad27887-dirty
author | fubar |
---|---|
date | Sat, 03 Feb 2024 10:17:27 +0000 |
parents | bde6b1d09f7d |
children | b1260bca5fdc |
line wrap: on
line diff
--- a/gff3_rebase.py Thu Feb 01 01:58:58 2024 +0000 +++ b/gff3_rebase.py Sat Feb 03 10:17:27 2024 +0000 @@ -117,7 +117,7 @@ start *= 3 end *= 3 - if parent.location.strand !=None and parent.location.strand >= 0: + if parent.location.strand != None and parent.location.strand >= 0: ns = parent.location.start + start ne = parent.location.start + end st = +1 @@ -137,7 +137,7 @@ if ne < 0: ne %= 3 if ns > ne: - ne, ns = ns, ne # dunno why but sometimes happens + ne, ns = ns, ne # dunno why but sometimes happens feature.location = FeatureLocation(ns, ne, strand=st) if hasattr(feature, "sub_features"):