plantinformatics / pretzel

Javascript full-stack framework for Big Data visualisation and analysis
GNU General Public License v3.0
44 stars 13 forks source link

Feature / marker names which are numbers are being converted to numeric type instead of string #404

Open Don-Isdale opened 4 months ago

Don-Isdale commented 4 months ago

Introduction

The following evidence suggests that marker names uploaded in spreadsheets are being converted to numbers, and this is causing problems in matching QTL Flanking Markers to the parent dataset, and in aligning paths between datasets. It may be that the marker names are being converted to numbers in the parent and not in the child dataset.

Test Evidence and Required Changes

While uploading a QTL dataset via a spreadsheet, it is getting this error (in network tab, in Pretzel it says [object Object]): Error: X : Dataset name "X "error : Block 5H Feature F Flanking Markers N are not in parent P name 5H

After deleting the QTL which was defining a single SNP, where the error was coming from, the upload then worked, but no paths are displayed when expected. (for example, marker name N2 which worked previously)

(note : X, P are dataset names, F is a feature name, N and N2 are marker numbers)

vendor-cb6ea279aadda3faa80311bb4c32d111.js:1979 Uncaught TypeError: e.match is not a function
    at e.featureNameClass (pretzel-frontend-441133ffab17e3f19a7ba70aaae17cdd.js:6054:187)
    at Object.featureEltId (pretzel-frontend-441133ffab17e3f19a7ba70aaae17cdd.js:6296:32)