Skip to content

Difficult to move gene locus? #22

@TheLostLambda

Description

@TheLostLambda

As far as I understand, I'd need to get the position of a gene with position(), move that, then get the locus for that gene with locus(), then write a function that can rebuild that same (arbitrarily nested) locus type with the new position spliced in? I'd need to, myself, write the code for unwrapping complements, joins, etc, and building them back up identically (with only the positions changed)?

Is there an easier way to do this that I'm missing? Or is this something that could be added?

Ideally I'd just do something like gene.position = new_position, or even new_locus.position = new_position; locus!(gene, new_locus), but the immutability doesn't allow that currently and I'm not seeing another straightforward way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions