Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

track config should take precedence of trackline #994

Closed
paul-shannon opened this issue Oct 10, 2019 · 4 comments
Closed

track config should take precedence of trackline #994

paul-shannon opened this issue Oct 10, 2019 · 4 comments
Assignees

Comments

@paul-shannon
Copy link

paul-shannon commented Oct 10, 2019

With this config:

   var config = {format: "bed",
                 name: trackName,
                 url: url,
                 indexed:false,
                 displayMode: displayMode,
                 sourceType: "file",
                 color: color,
                 order: Number.MAX_VALUE,
		 height: trackHeight,
                 type: "annotation"};

and despite trackName being promoters I now see, when revisiting some old code, that the promoter track is always given the track label refGene. I cannot find any cause of this in my code (either R or javascript). Any ideas?

The string "refGene" does not appear in any of my code, neither in R nor Javascript.
I see it mentioned once in the igv.js code base, in featureParsers.js:

* Decode a UCSC "genePredExt" record.  refGene files are in this format

The track I display is (in my R class structure) a UCSCBedAnnotationTrack. So maybe it's not completely nuts for me to ask if featureParsers.js somehow substitutes "refGene" for my requested track name?

@jrobinso
Copy link
Contributor

jrobinso commented Oct 10, 2019 via email

@paul-shannon
Copy link
Author

@jrobinso That was it - thanks. An R library I use ("rtracklayer") uses an inherited track name when it exports an object to a file, creating a bed file track line with the default name. I now simply overwrite that name with the user's choice.

@jrobinso
Copy link
Contributor

Im going to reopen this because I think the track config should take precedence over the track line.

@jrobinso jrobinso reopened this Oct 11, 2019
@jrobinso jrobinso changed the title bed track always give "refGene" label track config should take precedence of trackline Nov 21, 2019
@jrobinso jrobinso added this to the 2.7.0 milestone Oct 15, 2020
@jrobinso jrobinso self-assigned this Oct 15, 2020
@jrobinso
Copy link
Contributor

This has been corrected, track config parameters now have precedence over track line parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants