Annanilsson-code / ProjectAppliedMolBiophys

Project in the course Applied Molecular Biophysics 2020
1 stars 1 forks source link

PCA correct? #17

Open Annanilsson-code opened 3 years ago

Annanilsson-code commented 3 years ago

https://github.com/Annanilsson-code/ProjectAppliedMolBiophys/blob/c216065e5e98d00f7e55a59d3040328479833428/PCA.py#L55

This is how we compute and plot the PCA components. What do you think about the code?

This is the result of separating the three axes/projections in 6yhs. image

FilipeMaia commented 3 years ago

Looks good! I imagine the overlapping clusters are the same as with the other method, right?

Annanilsson-code commented 3 years ago

Thanks! I think so. If we look at the labels it is 0 and 1 in "classes" that more easily start to overlap. Can we assume that they are colored in the order by which we put the projections in "proj"? So if proj = [sum_x, sum_y, sum_z], then 0 corresponds to sum_x, 1 to sum_y and 2 to sum_z?

image image

FilipeMaia commented 3 years ago

Yes you can.