mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:17:08 +00:00
Remove dead code
This commit is contained in:
@@ -581,41 +581,6 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
rawSequencesIJErrorLayer(options = {}) {
|
|
||||||
const { positions, values } = this.sequenceBinaryData;
|
|
||||||
if (!positions.length || !values[3] || !values[4]) {
|
|
||||||
console.warn('No valid data for rawSequencesIJErrorLayer');
|
|
||||||
|
|
||||||
return new HeatmapLayer({
|
|
||||||
id: 'seqrh',
|
|
||||||
data: [],
|
|
||||||
...options
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
const weights = Float32Array.from(values[3], (ei, i) => {
|
|
||||||
const ej = values[4][i];
|
|
||||||
return Math.sqrt(ei * ei + ej * ej) / 10; // Euclidean distance in meters
|
|
||||||
});
|
|
||||||
|
|
||||||
return new HeatmapLayer({
|
|
||||||
id: 'seqrh',
|
|
||||||
data: {
|
|
||||||
length: weights.length,
|
|
||||||
positions,
|
|
||||||
weights
|
|
||||||
/*
|
|
||||||
attributes: {
|
|
||||||
getPosition: { value: positions, type: 'float32', size: 2 },
|
|
||||||
getWeight: { value: weights, type: 'float32', size: 1 }
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
},
|
|
||||||
getPosition: (d, {index, data}) => [ data.positions[index*2], data.positions[index*2+1] ],
|
|
||||||
getWeight: (d, {index, data}) => data.weights[index],
|
|
||||||
colorDomain: [2, 20],
|
|
||||||
radiusPixels: 25,
|
|
||||||
aggregation: 'MEAN',
|
|
||||||
pickable: false,
|
pickable: false,
|
||||||
...options
|
...options
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user