You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During this time, to replicate the second part of Gemelli is it possible to extract the Python code only for the robust PCA step? I can code in R and bash but not in Python. Nevertheless I have tried. I do not have a phylogenetic lineage.
I attach you the Python code proposed if you could correct/comment it: code_proposed.zip
Nevertheless the output of sample loadings for example is not identical (see below), but the values are near. But it should be the same value not?
Data A to Gemelli software:
(3 principal components)
It looks like you closed the problem but I came here to say we have a PR here in vegan that should solve this problem.
I also took a look at your code and you could just import optspace_helper with from gemelli.rpca inmport optspace_helper which would be much easier. As you found in your notebook that function does take in a transposed rclr_table - see here. Keep in mind that you must do all proped filtering of the table yourself this way - I can't garuntee everything will be correct when run this way - I have not really done full testing of this code. Nonetheless, See attached for your updated code (simplified).
Good morning Cameron @cameronmartino
Sorry to write you again.
The rclr transformation (step 1 of 2 of Gemelli) is yet implemented on vegan R package (https://www.rdocumentation.org/packages/vegan/versions/2.6-8/topics/decostand) . In future I know that step 2 (robust PCA) in vegan will be available as you mentioned in a previous issue.
During this time, to replicate the second part of Gemelli is it possible to extract the Python code only for the robust PCA step? I can code in R and bash but not in Python. Nevertheless I have tried. I do not have a phylogenetic lineage.
I attach you the Python code proposed if you could correct/comment it: code_proposed.zip
Nevertheless the output of sample loadings for example is not identical (see below), but the values are near. But it should be the same value not?
Data A to Gemelli software:
(3 principal components)
Data A + rclr transf. in vegan (decostand function) + extracting Python code from Gemelli for applying robust PCA:
(3 principal components)
Thanks again,
Magí (David)
The text was updated successfully, but these errors were encountered: