[genome] bedDetail 12 columns format question

4 views
Skip to first unread message

Enrique Medina-Acosta

unread,
Mar 21, 2018, 4:04:21 PM3/21/18
to UCSC Genome Browser Mailing List, quique

Dear UCSC Genome Browser Developer team,

 

I have a problem formatting BED12 column track files into bedDetail 12 column track files.

 

I regularly use, with great success (!), the bedDetail 6 column format, to get hyperlinked description fields ( information of several features of each item), but for some reason, I don´t get through formatting any BED12 column file into a bedDetail.

 

I searched the UCSC archive for hints, but the query I found (here) did not help me much.   

 

Attached are two examples, one of a working bedDetail 6 column track file and one instance of a BED12 column track file, for which I would like to convert into a bedDetail 12 column track file.

 

What am I missing?

 

Thank you,

 

Enrique



Prof. Dr. Enrique Medina-Acosta, M.Sc., PhD.
MyCVLattes - CNPq
MyResearcherID (ISI Web of Knowledge)
MyORCID

Senior Associate Professor
Unit Coordinator - Molecular Identification and Diagnostics Unit - NUDIM
Laboratory of Biotechnology, Center for Biosciences and Biotechnology
Universidade Estadual do Norte Fluminense Darcy Ribeiro - UENF
Building P4, rooms 212/228
Avenida Alberto Lamego 2000, Parque Califórnia, CEP 28013-602, Campos dos Goytacazes, RJ, Brazil.
Tel: +55 22 27397085



Track file examples bedDetail 6 columns and 12 columns plus description.txt

Christopher Lee

unread,
Mar 22, 2018, 12:18:05 PM3/22/18
to Enrique Medina-Acosta, UCSC Genome Browser Mailing List, quique
Hello Enrique,

Thank you for your question about turning a bed12 into a bedDetail
custom track. BedDetail format uses either the first 3 standard bed
fields or the first 12 standard bed fields, plus two additional
fields, as explained here:
http://genome.ucsc.edu/FAQ/FAQformat#format1.7

These two additional fields are an ID field, and the second field is a
long description, and can contain HTML, as you have noted in your
example tracks. The problem with the bed12 you shared is that it was
missing the ID field after the blockStarts field.

Additionally, you can use ID field to dynamically generate links to
outside websites, like in the example track from the documentation:

track name=HbVar type=bedDetail description="HbVar custom track"
db=hg19 visibility=3
url="http://globin.bx.psu.edu/cgi-bin/hbvar/query_vars3?display_format=page&mode=output&id=$$"
chr11 5246919 5246920 Hb_North_York 2619 Hemoglobin variant
chr11 5255660 5255661 HBD c.1 G>A 2659 delta0 thalassemia


Here "2619" will be substituted where the '$$' is in the URL:
http://globin.bx.psu.edu/cgi-bin/hbvar/query_vars3?display_format=page&mode=output&id=$$

There are many more URL substitutions available, as described here:
http://genome.ucsc.edu/goldenPath/help/trackDb/trackDbHub.html#url

Please let us know if you have any further questions!

Thanks,

Christopher Lee
UCSC Genomics Institute

Want to share the Browser with colleagues?
Host a workshop: http://bit.ly/ucscTraining

Thank you again for your inquiry and using the UCSC Genome Browser. If
you have any further questions, please reply to gen...@soe.ucsc.edu.
All messages sent to that address are archived on a
publicly-accessible forum. If your question includes sensitive data,
you may send it instead to genom...@soe.ucsc.edu.
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "UCSC Genome Browser Public Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to genome+un...@soe.ucsc.edu.
> To post to this group, send email to gen...@soe.ucsc.edu.
> Visit this group at https://groups.google.com/a/soe.ucsc.edu/group/genome/.
> To view this discussion on the web visit
> https://groups.google.com/a/soe.ucsc.edu/d/msgid/genome/CADv9Q1Bf3iBOHY0D-t-piDj4WaiQp8ZW54Y%2BcXAmN0eLf6zYFQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/a/soe.ucsc.edu/d/optout.
Reply all
Reply to author
Forward
0 new messages