MySQL structure for 2D array lookup? -



MySQL structure for 2D array lookup? -

sim trying create mysql database looking in big dataset. have set of info (n number) samples , list of genes in info collection , able lookup value based on pairing 1 sample 1 gene. in the table below have info genes, samples , value, , know best way sort set on mysql fast lookup.

in info have 35.000 different genes , aomunt of samples can vmay vary between 2000-15000. (i dont have specific number, because have finished info yet.)

|------------------------------------------------------| | | sample1 | sample2 | |------------------|----------------|------------------| | gene1 | value1 | value2 | |------------------|----------------|------------------| | gene2 | value3 | value4 | |------------------|----------------|------------------|

what best way set info on mysql database? "easiest" way thought of right away throwing in database in next output, seems big disaster. how can approach correctly?

|----------------------------------------- ------------| | gene1 | sample1 | value1 | |------------------|----------------|------------------| | gene1 | sample2 | value2 | |------------------|----------------|------------------| | gene2 | sample1 | value3 | |------------------|----------------|------------------| | gene2 | sample2 | value4 | |------------------|----------------|------------------|

mysql

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -