Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-2877

Create annot.xml file from track hub's trackDb.txt file

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Story Points:
      1
    • Sprint:
      Spring 6 2021 May 31 - June 11, Summer 1 2021 Jun 14 - Jun 25, Summer 2 2021 Jun 28 - Jul 9

      Description

      We just need name parameter from trackDb.txt file. In future we might extract more information from trackDb.txt file like color. We can get the location of trackhubDB.txt file from the following API https://api.genome.ucsc.edu/list/hubGenomes?hubUrl=http://hgdownload.soe.ucsc.edu/hubs/mouseStrains/hub.txt

        Attachments

          Issue Links

            Activity

            chirag24 Chirag Chandrahas Shetty (Inactive) created issue -
            chirag24 Chirag Chandrahas Shetty (Inactive) made changes -
            Field Original Value New Value
            Epic Link IGBF-2831 [ 19524 ]
            chirag24 Chirag Chandrahas Shetty (Inactive) made changes -
            Assignee Ann Loraine [ aloraine ]
            chirag24 Chirag Chandrahas Shetty (Inactive) made changes -
            Description We just need name parameter from trackDb.txt file. In future we might extract more information from trackDb.txt file like color.

            We just need name parameter from trackDb.txt file. In future we might extract more information from trackDb.txt file like color. We can get the location of trackhubDB.txt file from the following API https://api.genome.ucsc.edu/list/hubGenomes?hubUrl=http://hgdownload.soe.ucsc.edu/hubs/mouseStrains/hub.txt
              

            omarne Omkar Marne (Inactive) made changes -
            Assignee Omkar Marne [ omarne ]
            omarne Omkar Marne (Inactive) made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            Show
            omarne Omkar Marne (Inactive) added a comment - - edited https://bitbucket.org/omarne/track-hub-converter-webapp/src/main/ Link for reference code : https://www.geeksforgeeks.org/how-to-convert-lists-to-xml-in-python/
            omarne Omkar Marne (Inactive) made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            omarne Omkar Marne (Inactive) made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            omarne Omkar Marne (Inactive) made changes -
            Status First Level Review in Progress [ 10301 ] Needs 1st Level Review [ 10005 ]
            chirag24 Chirag Chandrahas Shetty (Inactive) made changes -
            Link This issue blocks IGBF-2878 [ IGBF-2878 ]
            Show
            chirag24 Chirag Chandrahas Shetty (Inactive) added a comment - diff: https://bitbucket.org/chirag06/track-hub-converter-webapp/commits/d9970089e5caab7b313d72cf9e26247d67d3241e?at=IGBF-2877
            Hide
            omarne Omkar Marne (Inactive) added a comment - - edited
            Show
            omarne Omkar Marne (Inactive) added a comment - - edited Irvin Naylor Please pull the changes. Pull requests - https://bitbucket.org/Inaylor01/track-hub-converter-webapp/pull-requests/4/igbf-2877
            Hide
            omarne Omkar Marne (Inactive) added a comment - - edited

            Dr. [~aloraine] I compared all the trackdb.txt files and all the files have similar parameters ( track, long label, short label and type). So we can use either of the parameters as title.
            Currently, we have used track as 'title' which would be fine I guess.

            Below are the links for all trackdb.txt files.

            http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001632525.1_BALB_cJ_v1//GCA_001632525.1_BALB_cJ_v1.trackDb.txt

            http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624445.1_CAST_EiJ_v1//GCA_001624445.1_CAST_EiJ_v1.trackDb.txt

            http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624185.1_129S1_SvImJ_v1//GCA_001624185.1_129S1_SvImJ_v1.trackDb.txt

            http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624535.1_FVB_NJ_v1//GCA_001624535.1_FVB_NJ_v1.trackDb.txt

            http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001632555.1_C57BL_6NJ_v1//GCA_001632555.1_C57BL_6NJ_v1.trackDb.txt

            http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624295.1_AKR_J_v1//GCA_001624295.1_AKR_J_v1.trackDb.txt

            http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624215.1_A_J_v1//GCA_001624215.1_A_J_v1.trackDb.txt

            http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624745.1_NZO_HlLtJ_v1//GCA_001624745.1_NZO_HlLtJ_v1.trackDb.txt

            http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624675.1_NOD_ShiLtJ_v1//GCA_001624675.1_NOD_ShiLtJ_v1.trackDb.txt

            http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624865.1_SPRET_EiJ_v1//GCA_001624865.1_SPRET_EiJ_v1.trackDb.txt

            http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001632575.1_C3H_HeJ_v1//GCA_001632575.1_C3H_HeJ_v1.trackDb.txt

            http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624835.1_WSB_EiJ_v1//GCA_001624835.1_WSB_EiJ_v1.trackDb.txt

            http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624475.1_CBA_J_v1//GCA_001624475.1_CBA_J_v1.trackDb.txt

            http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624775.1_PWK_PhJ_v1//GCA_001624775.1_PWK_PhJ_v1.trackDb.txt

            http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001632615.1_LP_J_v1//GCA_001632615.1_LP_J_v1.trackDb.txt

            http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624505.1_DBA_2J_v1//GCA_001624505.1_DBA_2J_v1.trackDb.txt

            https://ftp.ncbi.nlm.nih.gov/snp/population_frequency/TrackHub/20200227123210/hg19/trackDb.txt

            Show
            omarne Omkar Marne (Inactive) added a comment - - edited Dr. [~aloraine] I compared all the trackdb.txt files and all the files have similar parameters ( track, long label, short label and type). So we can use either of the parameters as title. Currently, we have used track as 'title' which would be fine I guess. Below are the links for all trackdb.txt files. http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001632525.1_BALB_cJ_v1//GCA_001632525.1_BALB_cJ_v1.trackDb.txt http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624445.1_CAST_EiJ_v1//GCA_001624445.1_CAST_EiJ_v1.trackDb.txt http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624185.1_129S1_SvImJ_v1//GCA_001624185.1_129S1_SvImJ_v1.trackDb.txt http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624535.1_FVB_NJ_v1//GCA_001624535.1_FVB_NJ_v1.trackDb.txt http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001632555.1_C57BL_6NJ_v1//GCA_001632555.1_C57BL_6NJ_v1.trackDb.txt http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624295.1_AKR_J_v1//GCA_001624295.1_AKR_J_v1.trackDb.txt http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624215.1_A_J_v1//GCA_001624215.1_A_J_v1.trackDb.txt http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624745.1_NZO_HlLtJ_v1//GCA_001624745.1_NZO_HlLtJ_v1.trackDb.txt http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624675.1_NOD_ShiLtJ_v1//GCA_001624675.1_NOD_ShiLtJ_v1.trackDb.txt http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624865.1_SPRET_EiJ_v1//GCA_001624865.1_SPRET_EiJ_v1.trackDb.txt http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001632575.1_C3H_HeJ_v1//GCA_001632575.1_C3H_HeJ_v1.trackDb.txt http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624835.1_WSB_EiJ_v1//GCA_001624835.1_WSB_EiJ_v1.trackDb.txt http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624475.1_CBA_J_v1//GCA_001624475.1_CBA_J_v1.trackDb.txt http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624775.1_PWK_PhJ_v1//GCA_001624775.1_PWK_PhJ_v1.trackDb.txt http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001632615.1_LP_J_v1//GCA_001632615.1_LP_J_v1.trackDb.txt http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624505.1_DBA_2J_v1//GCA_001624505.1_DBA_2J_v1.trackDb.txt https://ftp.ncbi.nlm.nih.gov/snp/population_frequency/TrackHub/20200227123210/hg19/trackDb.txt
            omarne Omkar Marne (Inactive) made changes -
            Assignee Omkar Marne [ omarne ]
            Hide
            ann.loraine Ann Loraine added a comment - - edited

            A trackDb.txt "database" record typically contains:

            • bigDataURL
            • track
            • long label
            • short label

            type to annots.xml fields:

            track hub field -> annots "file" element attributes:

            • bigDataUrl -> name
            • long label -> description (if available)
            • short label -> title

            option for how to construct title field:

            • [track] / [type] / [short label]
            Show
            ann.loraine Ann Loraine added a comment - - edited A trackDb.txt "database" record typically contains: bigDataURL track long label short label type to annots.xml fields: track hub field -> annots "file" element attributes: bigDataUrl -> name long label -> description (if available) short label -> title option for how to construct title field: [track] / [type] / [short label]
            Hide
            ann.loraine Ann Loraine added a comment - - edited

            Question:

            Given this trackDb.txt:

            How do I "open" it using the UCSC Genome Browser?

            We need to be able to easily do this so that we can do a proper mapping between trackDb.txt fields and annots.xml fields.

            Show
            ann.loraine Ann Loraine added a comment - - edited Question: Given this trackDb.txt: http://hgdownload.soe.ucsc.edu//hubs//mouseStrains//GCA_001624835.1_WSB_EiJ_v1//GCA_001624835.1_WSB_EiJ_v1.trackDb.txt How do I "open" it using the UCSC Genome Browser? We need to be able to easily do this so that we can do a proper mapping between trackDb.txt fields and annots.xml fields.
            Hide
            ann.loraine Ann Loraine added a comment -

            Next step: modify or use your code to literally create a quickload "site" for your local computer (just create all the required files)

            Look at: https://bitbucket.org/lorainelab/igbquickload/src/master/

            Show
            ann.loraine Ann Loraine added a comment - Next step: modify or use your code to literally create a quickload "site" for your local computer (just create all the required files) Look at: https://bitbucket.org/lorainelab/igbquickload/src/master/
            ann.loraine Ann Loraine made changes -
            Sprint Spring 6 2021 May 31 - June 11 [ 122 ] Spring 6 2021 May 31 - June 11, Summer 1 2021 Jun 14 - Jun 25 [ 122, 123 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            chirag24 Chirag Chandrahas Shetty (Inactive) made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            chirag24 Chirag Chandrahas Shetty (Inactive) made changes -
            Status First Level Review in Progress [ 10301 ] To-Do [ 10305 ]
            chirag24 Chirag Chandrahas Shetty (Inactive) made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            chirag24 Chirag Chandrahas Shetty (Inactive) made changes -
            Assignee Chirag Chandrahas Shetty [ chirag24 ]
            chirag24 Chirag Chandrahas Shetty (Inactive) made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            chirag24 Chirag Chandrahas Shetty (Inactive) made changes -
            Assignee Chirag Chandrahas Shetty [ chirag24 ]
            ann.loraine Ann Loraine made changes -
            Sprint Spring 6 2021 May 31 - June 11, Summer 1 2021 Jun 14 - Jun 25 [ 122, 123 ] Spring 6 2021 May 31 - June 11, Summer 1 2021 Jun 14 - Jun 25, Summer 2 2021 Jun 28 - Jul 9 [ 122, 123, 124 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            inaylor Irvin Naylor (Inactive) made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            inaylor Irvin Naylor (Inactive) made changes -
            Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
            inaylor Irvin Naylor (Inactive) made changes -
            Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
            inaylor Irvin Naylor (Inactive) made changes -
            Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
            inaylor Irvin Naylor (Inactive) made changes -
            Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
            inaylor Irvin Naylor (Inactive) made changes -
            Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
            inaylor Irvin Naylor (Inactive) made changes -
            Assignee Chirag Chandrahas Shetty [ chirag24 ]
            inaylor Irvin Naylor (Inactive) made changes -
            Resolution Done [ 10000 ]
            Status Post-merge Testing In Progress [ 10003 ] Closed [ 6 ]

              People

              • Assignee:
                chirag24 Chirag Chandrahas Shetty (Inactive)
                Reporter:
                chirag24 Chirag Chandrahas Shetty (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: