Coder Social home page Coder Social logo

Comments (6)

jrobinso avatar jrobinso commented on August 20, 2024

from igv.

lamz138138 avatar lamz138138 commented on August 20, 2024

Hi @jrobinso ! Thanks for your quick response. I generated above two ways after reading the describe below, but they are not work, so I open this issue. Is it because I did not write it correct? Besides, I do not know how to write colorScale.

##Segmented Copy Number Track Defaults
CN_FREQ.AMP_THRESHOLD CN freq amplification threshold float 0.1
CN_FREQ.DEL_THRESHOLD CN freq deletion threshold float -0.1
NO_DATA.COLOR No data color 216,216,216
NO_CALL.COLOR No call color 150,150,150
COLOR_LEGENDS Color Legends colorScale

from igv.

jrobinso avatar jrobinso commented on August 20, 2024

I'm not sure what you are showing me. Could you post the actual batch script you are using?

from igv.

lamz138138 avatar lamz138138 commented on August 20, 2024

Here are my files and command:

cat igv.pref
IGV.Bounds=0, 0, 2560, 1440
cat igv_script.bat
new
geome hg38
expand Refseq%20Genes
preference CN_FREQ.AMP_THRESHOLD 0.05
preference CN_FREQ.DEL_THRESHOLD -0.05
load input_cnv_ratio.seg
snapshotDirectory /path/to/igv_screenshot
goto chr3 35483850 35794496
region chr3 35639173 35794496
snapshot temp.png
exit

xvfb-run -d -s "-screen 0 2560X1440X24" /path/to/igv/install/2.16.0/igv.sh -b igv_script.bat --preferences igv.pref

I am not sure whether "CN_FREQ.AMP_THRESHOLD 0.05" and "CN_FREQ.DEL_THRESHOLD -0.05" will set value [-0.05, 0.5] to white. I also want to know how can I set the maximum value to 0.5 and the minimum value to -0.5?
Current, for example, I have a segment value is -0.09, it will be white after running above command, but I would like to make it light blue.

from igv.

jrobinso avatar jrobinso commented on August 20, 2024

The easiest way to discover preferences syntax is to configure what you want in the UI, then look at the "prefs.properties" file in your igv folder. You can edit heatmap legends visually from the "View > Color Legends" menu. Here's the result of a rather random edit

COLOR_SCALE_COPY_NUMBER=ContinuousColorScale;-0.5;-2.5;0.5;2.5;102,255,51;255,255,255;0,204,204

The thresholds you are setting only impact the frequency track that appears above the heatmap, they have no impact on the color scale

from igv.

lamz138138 avatar lamz138138 commented on August 20, 2024

This is really helpful. I solve the problem. Thank you very much!

from igv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.