Uploaded image for project: 'Bug Repository'
  1. Bug Repository
  2. BUG-701

color Glyphs by RGB value in BED file

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None

      Description

      Please re-assign (or not) as you see fit.

      This is a new feature request and I know it's getting late in the game. But if you could slip it in without risking too many bugs, I would appreciate it!

      BED file has "rgb" filed, which is comma-separated red, green, blue values.

      If a BED file contains data in this field, please color the corresponding Glyphs using the designated RGB values.

      All other Glyphs would be colored using the default colors or whatever is specified in annots.xml, if there is one.

      If user selects a track and uses the color swatches or change foreground command, then all the Glyphs should change to the new color. If user resets to default, then the original colors should be restored, determined by the RGB field in cases where that field was set.

      We need this to color-code annotation types. We have started updating Arabidopsis and rice gene models and want to use color to indicate revision status and types of revisions.

        Attachments

          Issue Links

            Activity

            Hide
            hiralv Hiral Vora (Inactive) added a comment -

            Done in r13426-13432.

            Show
            hiralv Hiral Vora (Inactive) added a comment - Done in r13426-13432.
            Hide
            alyssa Alyssa Gulledge (Inactive) added a comment -

            I need a file which has this information in it (or at least the range of a file) to test.

            Show
            alyssa Alyssa Gulledge (Inactive) added a comment - I need a file which has this information in it (or at least the range of a file) to test.
            Hide
            ann.loraine Ann Loraine added a comment -

            You can create one using one of the TAIR10 files.
            Hand-edit the RGB field.
            Test a file that has multiple colors set and which also has no colors set using the RGB field.

            Show
            ann.loraine Ann Loraine added a comment - You can create one using one of the TAIR10 files. Hand-edit the RGB field. Test a file that has multiple colors set and which also has no colors set using the RGB field.
            Hide
            ann.loraine Ann Loraine added a comment -

            Create one using a a BED file checked out from QL and hand-edit following the BED spec described in the UCSC FAQ. (Find it by google-searching "UCSC BED format.")
            To get part of a file, do this:
            $ gunzip -c FILE.bed.gz > SAMPLE.bed
            then open in a text editor and edit.
            Be sure to include lines in which the RGB is not set as well as lines that are.

            Show
            ann.loraine Ann Loraine added a comment - Create one using a a BED file checked out from QL and hand-edit following the BED spec described in the UCSC FAQ. (Find it by google-searching "UCSC BED format.") To get part of a file, do this: $ gunzip -c FILE.bed.gz > SAMPLE.bed then open in a text editor and edit. Be sure to include lines in which the RGB is not set as well as lines that are.
            Hide
            alyssa Alyssa Gulledge (Inactive) added a comment -

            "at column 9 itemRgb - An RGB value of the form R,G,B (e.g. 255,0,0). If the track line itemRgb attribute is set to "On", this RBG value will determine the display color of the data contained in this BED line. NOTE: It is recommended that a simple color scheme (eight colors or less) be used with this attribute to avoid overwhelming the color resources of the Genome Browser and your Internet browser."

            Attached is a 2 line bed file for chr 2 of A thal. It loads the two items, but they are the default color, not the adjusted colors (notice that the colors are set as 255,0,0 and 0,255,0).

            So this is not working.

            Show
            alyssa Alyssa Gulledge (Inactive) added a comment - "at column 9 itemRgb - An RGB value of the form R,G,B (e.g. 255,0,0). If the track line itemRgb attribute is set to "On", this RBG value will determine the display color of the data contained in this BED line. NOTE: It is recommended that a simple color scheme (eight colors or less) be used with this attribute to avoid overwhelming the color resources of the Genome Browser and your Internet browser." Attached is a 2 line bed file for chr 2 of A thal. It loads the two items, but they are the default color, not the adjusted colors (notice that the colors are set as 255,0,0 and 0,255,0). So this is not working.
            Hide
            hiralv Hiral Vora (Inactive) added a comment -

            It requires a track line
            track name="Bed Test File" description="Test bed file" color=255,255,0 itemRgb="on" useScore=0 url="http://www.google.com/search?q=$$"
            (try new attachment)

            Do you want to always turn it on irrespective of itemRgb value?

            Show
            hiralv Hiral Vora (Inactive) added a comment - It requires a track line track name="Bed Test File" description="Test bed file" color=255,255,0 itemRgb="on" useScore=0 url="http://www.google.com/search?q=$$" (try new attachment) Do you want to always turn it on irrespective of itemRgb value?
            Hide
            alyssa Alyssa Gulledge (Inactive) added a comment -

            Load A thal, chr2. Load the larger file (.5kb). See that there is a red mark aoe and a green mark below. Change the color of the track - the marks should now match the FG color. Use Anntotations tab and 'restore default' to track. The red and green should reappear.

            Show
            alyssa Alyssa Gulledge (Inactive) added a comment - Load A thal, chr2. Load the larger file (.5kb). See that there is a red mark aoe and a green mark below. Change the color of the track - the marks should now match the FG color. Use Anntotations tab and 'restore default' to track. The red and green should reappear.

              People

              • Assignee:
                Unassigned
                Reporter:
                ann.loraine Ann Loraine
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: