Hi there!!! Here is a correlation table generated from my data frame with bacterial relative abundance. The 3rd and 4th columns respectively denotes correlation co-efficient (cor) and their P-value (p). Now, I want to filter this table to generate an output that will have interactions with p < 0.05
and cor > 0.6
and cor < -0.6.
Can anyone please tell me how can I do that? Here's a portion of table:
row | column | cor | p |
---|---|---|---|
Actinobaculum_sp_oral_taxon_183 | Actinomyces_graevenitzii | -0.083166733306677 | 0.557766591033679 |
Actinobaculum_sp_oral_taxon_183 | Actinomyces_naeslundii | -0.057666197516258 | 0.684693748325992 |
Actinomyces_graevenitzii | Actinomyces_naeslundii | -0.057666197516258 | 0.684693748325992 |
Actinobaculum_sp_oral_taxon_183 | Actinomyces_odontolyticus | 0.082972778302491 | 0.558688695520664 |
Actinomyces_graevenitzii | Actinomyces_odontolyticus | 0.086259815138003 | 0.543159275510664 |
Actinomyces_naeslundii | Actinomyces_odontolyticus | 0.260101357406385 | 0.062572519939439 |
Actinobaculum_sp_oral_taxon_183 | Actinomyces_oris | 0.001812984437111 | 0.989822610583224 |
Actinomyces_graevenitzii | Actinomyces_oris | 0.078226921082765 | 0.581472276924872 |
Actinomyces_naeslundii | Actinomyces_oris | 0.164725112347852 | 0.243223831404869 |
Actinomyces_odontolyticus | Actinomyces_oris | 0.321304480536897 | 0.02020092245847 |
Actinobaculum_sp_oral_taxon_183 | Actinomyces_sp_HMSC035G02 | -0.009475829184974 | 0.946843170060088 |
Actinomyces_graevenitzii | Actinomyces_sp_HMSC035G02 | 0.223167925805104 | 0.111768183795273 |
Actinomyces_naeslundii | Actinomyces_sp_HMSC035G02 | 0.127195351524484 | 0.368876768685618 |
Actinomyces_odontolyticus | Actinomyces_sp_HMSC035G02 | 0.728031815255434 | 9.61068558069655E-10 |
Actinomyces_oris | Actinomyces_sp_HMSC035G02 | 0.489804314937454 | 0.000228307144797 |
Actinobaculum_sp_oral_taxon_183 | Actinomyces_sp_HPA0247 | -0.122407920609607 | 0.387315423215962 |
Many thanks
dc7