From: Robert B. <rb...@gm...> - 2012-07-13 17:05:49
|
The display of subfeatures is influenced both by the subfeatureScale, property, *and* by the feature density (total number of features in the track's dataset divided by the length of the reference sequence in bp). See https://github.com/GMOD/jbrowse/blob/1.4.2-release/js/FeatureTrack.js#L119 https://github.com/GMOD/jbrowse/blob/1.4.2-release/js/FeatureTrack.js#L695 In the code, `scale` is the number of pixels per base pair in the current zoom level. So, the comparison (with units) is: scale (px/bp) >? feature density (features/bp) * subfeatureScale (px/feature) Setting a value of 0 for subfeatureScale will mean that subfeatures will always be shown. Does that help? Robert Buels Lead Developer JBrowse - http://jbrowse.org On 07/13/2012 10:36 AM, Hernán Bondino wrote: > Hi Robert, > > "histScale" : 0 now works perfect, > > With "subfeatureScale" I can make that the subfeatures be shown at > deeper zooms, > but not at lower zooms, I mean, > > "subfeatureScale" : 300000 shows the subfeatures only in the deepest zoom > > but > > "subfeatureScale" : 0 makes no difference with the standard zoom level > > I think this is related with the size of the feature to show, > because at some medium levels of zoom, in the same track, the subfeatures > for blocks of 200 bp are shown but the subfeatures for blocks of 100 bp > aren't. > > Do you have any idea? > > Hernán > |