Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Ability to set/control the sequence track strand in Batch Script/Socket #836

Open
bbreton opened this issue Aug 5, 2020 · 2 comments
Labels
bug enhancement Indicates new feature requests

Comments

@bbreton
Copy link

bbreton commented Aug 5, 2020

https://software.broadinstitute.org/software/igv/sequence_track_options

In the sequence track I would like to be able to set the strand (+/-) which is currently controlled in the GUI only with "Flip strand" when using the Batch Script/Socket control methods.

My specific use case for this issue is I want it to set it to the correct strand when using a Batch Script/Socket control doing snapshots so it has the right direction. Explicitly setting the strand makes more sense for this use case, but I could work with the ability to flip it as long as I could tell the starting state in case that is easier to do or fits other uses better.

Also (perhaps this should be a separate issue) the current strand of the sequence track isn't saved in the Save Session xml file as I looked into using loading a session as a workaround for no Batch Script command to control it. I feel like it would make sense for it to be saved in the session.

My testing was done with 2.8.9.

Thank you IGV team for all your work and contributions to the community!

@jrobinso
Copy link
Contributor

jrobinso commented Aug 7, 2020

Yes a command would make sense. The second issue is a bug, that should be in the session. Will look at both.

bbreton pushed a commit to bbreton/igv that referenced this issue Nov 18, 2020
Adds saving the sequence track last strand to the preferences
Adds saving the attributes SequenceTrack.shouldShowTranslation and sequenceTranslationStrandValue to the igv_session.xml file for the Reference sequence xml.
Adds a command for batch scripting and socket control to set the strand as well as shouldShowTranslation.

Details:

New commands:

setSequenceStrand: valid values are case insensitive: +, POSITIVE, -, NEGATIVE
setSequenceShowTranslation: valid values are case insensitive: TRUE, FALSE

New preferences (under hidden since it is controlled with the clickable arrow):
SEQUENCE_TRANSLATION_STRAND: valid values are case insensitive: +, POSITIVE, -, NEGATIVE

New igv_session values:
Panel.Track.org.broad.igv.track.SequenceTrack.shouldShowTranslation: set show/hide translation
Panel.Track.org.broad.igv.track.SequenceTrack.sequenceTranslationStrandValue: set translation strand
bbreton pushed a commit to bbreton/igv that referenced this issue Nov 18, 2020
jrobinso added a commit that referenced this issue Dec 4, 2020
…and-commands

Git Issue #836 SequenceTrack commands, preferences and session work
jrobinso added a commit that referenced this issue Dec 4, 2020
@jrobinso jrobinso added bug enhancement Indicates new feature requests labels Dec 31, 2021
@jrobinso
Copy link
Contributor

@bbreton is there anything still outstanding (i.e. left to do) here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

2 participants