Hi, I want to correlate two matrices of data. First matrix is metabolomic data with 8 biological replicates and 51 metabolites. Second matrix is the transcriptomic data with 8 replicates and 64 transcripts.
Metabolomic data
ID A A A A B B B B
1 1489 1285 478 125 148 125 128 489
2 12145 25 265 454 8926 526 565 558
...... and 50 more rows like this
Transcriptomic data
ID A A A A B B B B
1 148 12 278 125 148 185 28 48
2 12145 25 75 454 8926 56 565 58
...... and 64 more rows like this
How should I organize the input file? what is the code to run in R?
Thanks
Maria
Do these data are already in R or in a spreadsheet ?
You have to identify your replicates, like A1, A2... B1, B2
You can use read.table to import your files in R
What do you want to achieve ?