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

color the positive and negative strand #14

Open
beancoco opened this issue Apr 17, 2020 · 5 comments
Open

color the positive and negative strand #14

beancoco opened this issue Apr 17, 2020 · 5 comments

Comments

@beancoco
Copy link

Hello.I‘m using this software and it helps me a lot.
I was wondering if it could color the positive and negative strand .

Thank you.

@jrobinso
Copy link

Hi I'm not Steve but I think I can answer this one. There are 2 ways to do this, actually 3.

To color by strands temporarily use this command

preference SAM.COLOR_BY READ_STRAND

To do this permanently, or until you change it, open prefs.properties in your "igv" folder with a plain text editor. Be sure IGV is not running when you do this. Add the following line

SAM.COLOR_BY=READ_STRAND

The "igv" folder is under your home directory.

Or, open IGV, load a bam file, right click, and select "Color alignments by> read strand". Then shutdown IGV. This is another way to accomplish the above with manual editing the prefs.properties file.

@stevekm
Copy link
Owner

stevekm commented Nov 11, 2020

@jrobinso do you know where to find a list of these available preferences that can be set this way? I saw the page here;

https://software.broadinstitute.org/software/igv/prefs.properties

but it does not describe this preference SAM.COLOR_BY, or much of anything else.

If there was a list of these preferences then I could easily add an option to the script to include them in the IGV .bat file.

Thanks

@stevekm
Copy link
Owner

stevekm commented Nov 11, 2020

a bit of digging on Google lead me to an example in a repo here;

https://github.com/lbergelson/variant-to-igv/blob/master/igv.prefs.properties

and what seems to be a larger list here;

https://github.com/igvteam/igv/blob/master/src/main/resources/org/broad/igv/prefs/preferences.tab

@jrobinso
Copy link

@stevekm You found the list before I could respond. The second reference is the most complete list.

@stevekm
Copy link
Owner

stevekm commented Sep 9, 2021

I am gonna mark this as an enhancement since it shouldnt be too difficult to bundle extra preferences into the .bat file, though at the moment I do not really have an ETA for when I might implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants