My advice, before doing anything else is: (1) think very hard about what your final data are going to look like, (2) try to determine which statistical tests are appropriate to your data and (3) if unsure, seek professional statistical advice from colleagues. Judging by your comment above, you would benefit from (3).
For example, calculation of appropriate sample size using statistical power may or may not be appropriate to your situation. Do you have a null hypothesis? Such as: I expect no significant difference in urinary metabolite concentration between groups A and B (where groups A and B are defined by a simple metric). If so, then determining the appropriate sample size for a t-test is useful; otherwise it is not.
It seems to me that you have a multivariate problem, to which simple analyses such as t-tests or chi-squared tests are not applicable. There are 30+ haplotypes (or phenotypes), which you hypothesize will have an effect on metabolite concentration. So your data are going to look something like this:
v1 v2 v3 v4 .. v30 C
n1 nv11 nv12 nv13 nv14 .. nv130 n1C
n2 nv21 nv22 nv23 nv24 .. nv230 n2C
n3 nv31 nv32 nv33 nv34 .. nv330 n3C
n4 nv41 nv42 nv43 nv44 .. nv430 n4C
..
Where v1, v2...v30 are the haplotypes/phenotypes; n1, n2... are the subjects (people); nv is the observation of variable v for subject n and in column C, the concentration measurement for each subject. If you were using R, you would create a data frame or matrix to represent the data as shown above. You would then explore the data in various ways, with the aim of understanding how variables v1..v30 contribute to the outcome, C.
If these things mean little to you, again I strongly suggest that you seek advice from your local friendly statistician and spend time thinking about the structure of your data and appropriate methods.
ok, it sounds that i have to learn this R. i've just started.
i have to correlate the absence or a presence of more than 30 haplotypes and their corresponding phenotypes to my results i.e the actually "from the urine" obtained phenotype divided in 3 categories. so i'm having here two categorical variables, is it a chi square test then or what? what do you mean by the standard deviation of my test? and how is the test is going to help me in sample size calculation?