Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other data transformations prior to beta diversity calculations #5

Closed
adityabandla opened this issue Feb 11, 2021 · 6 comments
Closed

Comments

@adityabandla
Copy link

Hi Ning,

It would be great if other normalisation measures (e.g. hellinger or log) can be made available across the iCAMP R functions which calculate beta diversity. I am looking to apply the hellinger transformations and as such down-weight highly abundant species in my samples

Regards, Adi

@adityabandla
Copy link
Author

adityabandla commented Feb 22, 2021

@DaliangNing Is this something that you consider is feasible to implement?

@DaliangNing
Copy link
Owner

Sorry for my late responses (a busy 'proposal season'). As I replied to another issue, it is surely feasible. I will try to add the option in the next two to three weeks.

@DaliangNing
Copy link
Owner

DaliangNing commented Apr 18, 2021

Please try the latest version of iCAMP (version >= 1.4.3, can be download from /RPackage/AllVersions). In the function 'icamp.big', the option 'comm' should still be the community matrix before the transformation, but you may set 'transform.method' as any method recognizable by the function 'decostand' in package 'vegan'. The taxonomic dissimilarity index can also be changed by setting 'taxo.metric' to another method, e.g., 'euclidean'.

Please also check the file 'icamp.test.r' in /Examples/SimpleOTU, the steps 9.6, for example code.

@DaliangNing
Copy link
Owner

@adityabandla please let me know if the new version (1.4.3) can address your concern. I will close this issue if no more question : )

@adityabandla
Copy link
Author

Dear Ning, sorry for the delay in circling back to this issue. In my dataset, we have several replicates from a transect and we have many such transects. For our analysis, we would like to compare the transect averages. In doing so, I end up with a relative abundance matrix as the starting point for the iCAMP analysis. However, I'm not sure if there is away to use iCAMP with such an input?

@DaliangNing DaliangNing reopened this Jun 18, 2021
@DaliangNing
Copy link
Owner

@adityabandla yes, the latest version of iCAMP (version 1.4.7) allows users to input proportional data table (values are all within 0 to 1) as a community matrix. The version has not been uploaded to CRAN, thus can only download from https://github.com/DaliangNing/iCAMP1/tree/master/RPackage/AllVersions.

Reminder: I used Dirichlet distribution to perform randomization in the null model, which is theoretically very close to the previous null model using count data, but in fact, I did find some difference. It should be considered as a different null model algorithm from the previous one. You may check the code in the function RC.pc, where i used 'DirichletReg::rdirichlet' to generate the randomized data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants