353a34ac7e7638457db3f55e57452069113d860b braney Sun Sep 6 13:34:28 2026 -0700 Add a bigNet track type, a net of alignments in a bigBed, refs #20824 Track hubs have had no way to show a real net. The usual stand-in is a net rendered as a maf, which loses the level structure that makes a net useful for establishing orthologous sequence. bigNet holds the netAlign columns in a bigBed, so a hub can carry the net itself. The format is bed6+20: the target in chrom/chromStart/chromEnd, the query sequence in name, the query strand in strand, then level and the rest of the netAlign fields. The trackDb line is type bigNet mirroring type netAlign. chainTrack is the plain trackDb name of the bigChain track in the same hub; hgc adds the hub prefix itself. chainNetLoadRangeHub() builds a chainNet from a bigBed range query and hands it to the same helpToNet() the SQL path uses, so the nesting is rebuilt the same way. netDraw picks its loader off tg->isBigBed and the drawing code below that is untouched. genericNetClick does the same for the details page and follows the named chain track for the alignment. Also bounds the level walk in helpToNet() by help->maxDepth. It could read one past the end of the levels array. netToBigNet converts a net file to bedToBigBed input. It writes the tab line itself rather than calling bigNetTabOut, because autoSql prints a double with %g and that drops digits off a chain score. diff --git src/hg/htdocs/goldenPath/help/trackDb/trackDbLibrary.shtml src/hg/htdocs/goldenPath/help/trackDb/trackDbLibrary.shtml index 6e5550b8eaf..90543346bd7 100644 --- src/hg/htdocs/goldenPath/help/trackDb/trackDbLibrary.shtml +++ src/hg/htdocs/goldenPath/help/trackDb/trackDbLibrary.shtml @@ -160,30 +160,31 @@

Valid settings:

altGraphX, bam, bed, bed5FloatScore, bedGraph, bedRnaElements, bigBarChart, bigBed, bigInteract, bigLolly, bigPsl, bigChain, bigMaf, + bigNet, bigWig, broadPeak, chain, clonePos, coloredExon, ctgPos, downloadsOnly, encodeFiveC, expRatio, factorSource, genePred, gvf, hic, ld2, narrowPeak, @@ -210,30 +211,31 @@

type

Required: Yes

Declares the format of the data and is used to determine display methods and options.

Valid settings for a hub:

bam/cram, bigBarChart, bigBed, bigChain, bigGenePred, bigInteract, bigLolly, bigMaf, bigNarrowPeak, + bigNet, bigPsl, bigWig, halSnake, hic, vcfTabix, vcfPhasedTrio.

Detailed descriptions of each type can be found below. In many cases the type setting includes additional parameters to further specify the data format. Some track types have additional setting requirements, to be discussed below.

Example:

   type bigBed 6 +
@@ -463,41 +465,42 @@
lollyMaxSize <integer>
The maximum size of a lollipop in the file, used to establish margins.
yAxisLabel.<integer> <integer> <on/off> <R,G,B> <string>
Add a label on the y axis at the given position. Draw a line of color if requested.
yAxisNumLabels.<on/off> <integer>
Turn the y axis number labels on or off
-
+
bigDataUrl <url/relativePath>

Required: For Hubs

The location of a remote data file containing the bulk of the data for the track. This setting is required for all data tracks in a track hub.

The setting is either the full URL (including http: or another protocol) or it is relative to the directory in which the trackDb file containing this setting is located. The file must be in one of the supported remote data file formats: bam/cram, bigBarChart, bigBed, bigChain, bigLolly, - bigInteract, bigMaf, bigPsl, bigGenePred, bigMethyl, bigNarrowPeak, bigWig, vcfTabix, or hic. + bigInteract, bigMaf, bigNet, bigPsl, bigGenePred, bigMethyl, bigNarrowPeak, bigWig, vcfTabix, + or hic. Note that bam/cram and vcfTabix/vcfPhasedTrio types require a separate index file that must have the same name as the data file plus a standard suffix (".bai" and ".tbi" respectively), unless bigDataIndex is used. All occurrences of the string $D in the URL will be substituted with the genome assembly database name. This allows a trackDb entry to be used with for multiple assemblies. $D substitution is not implemented for track hubs.

Example:

   bigDataUrl http://vizhub.wustl.edu/VizHub/hg19/biBrainH3K4me1.bb
  or
   bigDataUrl biBrainH3K4me1.bb
@@ -1273,30 +1276,37 @@
type bigPsl
There are no extra options that can appear on the type bigPsl line.
type bigChain targetDb
You must specify the target database in the type bigChain line.
+
+
+ type bigNet targetDb chainTrack
+You must give the target database and the name of the chain track that holds the alignments +in the type bigNet line. The chain track is in the same hub. +
+
type bigNarrowPeak
There are no extra options that can appear on the type bigNarrowPeak line.
type bigGenePred
There are no extra options that can appear on the type bigGenePred line.
type bigMaf