view templates/trackDb/layout.txt @ 64:9d8d6b976fc2 draft

Uploaded
author yating-l
date Wed, 09 Aug 2017 16:39:27 -0400
parents 4c4e8941feda
children 4ca7cbf2d9b8
line wrap: on
line source

% for trackDb in trackDbs:
    % if "bigWig" in trackDb.trackType:

track ${trackDb.trackName}
longLabel ${trackDb.longLabel}
shortLabel ${trackDb.shortLabel}
bigDataUrl ${trackDb.trackDataURL}
visibility ${trackDb.visibility}
priority ${trackDb.priority}
color ${trackDb.track_color}
group ${trackDb.group_name.lower().replace(' ', '_')}
type ${trackDb.trackType}
autoScale on
maxHeightPixels 100:32:8
windowingFunction mean+whiskers

    % elif "bigBed 12 +" in trackDb.trackType and trackDb.database:

track ${trackDb.trackName}
longLabel ${trackDb.longLabel}
shortLabel ${trackDb.shortLabel}
bigDataUrl ${trackDb.trackDataURL}
type ${trackDb.trackType}
visibility ${trackDb.visibility}
thickDrawItem ${trackDb.thickDrawItem}
priority ${trackDb.priority}
color ${trackDb.track_color}
group ${trackDb.group_name.lower().replace(' ', '_')}
searchIndex name
        % if "NCBI" in trackDb.database:
url https://www.ncbi.nlm.nih.gov/protein/$$
urlLabel ${trackDb.database} Details:
iframeUrl https://www.ncbi.nlm.nih.gov/protein/$$
iframeOptions height='600' width='800'
        % elif "UniProt" in trackDb.database:
url http://www.uniprot.org/uniprot/$$
urlLabel ${trackDb.database} Details:
iframeUrl http://www.uniprot.org/uniprot/$$
iframeOptions height='600' width='800'
        % elif "FlyBase" in trackDb.database:
url http://flybase.org/reports/$$
urlLabel ${trackDb.database} Details:
iframeUrl http://flybase.org/reports/$$
iframeOptions height='600' width='800'
        % else:
url https://www.ncbi.nlm.nih.gov/gquery/?term=$$
urlLabel NCBI Details:
iframeUrl https://www.ncbi.nlm.nih.gov/gquery/?term=$$
iframeOptions height='600' width='800'
        % endif
        
    % elif "bigPsl" in trackDb.trackType and trackDb.database:
    
track ${trackDb.trackName}
longLabel ${trackDb.longLabel}
shortLabel ${trackDb.shortLabel}
bigDataUrl ${trackDb.trackDataURL}
type ${trackDb.trackType}
visibility ${trackDb.visibility}
thickDrawItem ${trackDb.thickDrawItem}
priority ${trackDb.priority}
color ${trackDb.track_color}
group ${trackDb.group_name.lower().replace(' ', '_')}
% if ${trackDb.search_index}:
searchTrix ${trackDb.search_index}
% endif
searchIndex name
    % if "NCBI" in trackDb.database:
url https://www.ncbi.nlm.nih.gov/nuccore/$$
urlLabel NCBI Details:
iframeUrl https://www.ncbi.nlm.nih.gov/nuccore/$$
iframeOptions height='600' width='800'
    % else:
url https://www.ncbi.nlm.nih.gov/gquery/?term=$$
urlLabel NCBI Details:
iframeUrl https://www.ncbi.nlm.nih.gov/gquery/?term=$$
iframeOptions height='600' width='800'
    % endif

    % else:

## See this http://genome.ucsc.edu/goldenPath/help/hgTrackHubHelp.html
track ${trackDb.trackName}
longLabel ${trackDb.longLabel}
shortLabel ${trackDb.shortLabel}
bigDataUrl ${trackDb.trackDataURL}
type ${trackDb.trackType}
visibility ${trackDb.visibility}
thickDrawItem ${trackDb.thickDrawItem}
priority ${trackDb.priority}
color ${trackDb.track_color}
group ${trackDb.group_name.lower().replace(' ', '_')}
searchIndex name
    % endif
% endfor