Peer Review History

Original SubmissionSeptember 1, 2024
Decision Letter - Abhik Ghosh, Editor

PONE-D-24-38304CooccurrenceAffinity: An R package for computing a novel metric of affinity in co-occurrence data that corrects for pervasive errors in traditional indicesPLOS ONE

Dear Dr. Mainali,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

Please submit your revised manuscript by Nov 18 2024 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:

  • A rebuttal letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.
  • A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.
  • An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols.

We look forward to receiving your revised manuscript.

Kind regards,

Abhik Ghosh

Academic Editor

PLOS ONE

Journal Requirements:

When submitting your revision, we need you to address these additional requirements.

1. Please ensure that your manuscript meets PLOS ONE's style requirements, including those for file naming. The PLOS ONE style templates can be found at https://journals.plos.org/plosone/s/file?id=wjVg/PLOSOne_formatting_sample_main_body.pdf and https://journals.plos.org/plosone/s/file?id=ba62/PLOSOne_formatting_sample_title_authors_affiliations.pdf

2. Please note that PLOS ONE has specific guidelines on code sharing for submissions in which author-generated code underpins the findings in the manuscript. In these cases, we expect all author-generated code to be made available without restrictions upon publication of the work. Please review our guidelines at https://journals.plos.org/plosone/s/materials-and-software-sharing#loc-sharing-code and ensure that your code is shared in a way that follows best practice and facilitates reproducibility and reuse.

3. Please note that funding information should not appear in any section or other areas of your manuscript. We will only publish funding information present in the Funding Statement section of the online submission form. Please remove any funding-related text from the manuscript.

4. Thank you for stating the following financial disclosure: “KM was supported by the Grayce B. Kerr Fund, Inc, and by the National Science Foundation DBI-1639145 under funding received for the National Socio-Environmental Synthesis Center (SESYNC).”

Please state what role the funders took in the study. If the funders had no role, please state: "The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript." If this statement is not correct you must amend it as needed. Please include this amended Role of Funder statement in your cover letter; we will change the online submission form on your behalf.

5. Please provide a complete Data Availability Statement in the submission form, ensuring you include all necessary access information or a reason for why you are unable to make your data freely accessible. If your research concerns only data provided within your submission, please write "All data are in the manuscript and/or supporting information files" as your Data Availability Statement.

6. Please amend the manuscript submission data (via Edit Submission) to include author Eric Slud.

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.

Reviewer #1: Partly

Reviewer #2: Yes

**********

2. Has the statistical analysis been performed appropriately and rigorously?

Reviewer #1: Yes

Reviewer #2: Yes

**********

3. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: Yes

**********

4. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.

Reviewer #1: No

Reviewer #2: Yes

**********

5. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #1: Manuscript PONE-D-24-38304 titled “CooccurrenceAffinity: An R package for computing a novel metric of affinity in co- occurrence data that corrects for pervasive errors in traditional indices” presents a new R package – CooccurrenceAffinity. This package can be used to analyze species co-occurrence data an represent them using graphical visualization. To this end, the authors use a new metric – alpha, assuming null distribution or randomization of the association, thus adding to the accuracy of the analysis.

Here are my thoughts.

Try and avoid repetitions of phrases between title and keywords.

Line 18 – please elaborate the phrase “many problems” in about a line. You may wish to combine part of the trailing line as well.

Minor grammatical errors relating to verb and article use are present in the manuscript. For example, line 30 among others.

The major concern with this manuscript is that the authors have chosen to use a very confusing approach towards their main goal. The index as proposed by the authors and claimed to be free from errors unlike traditional methods.

The proposed affinity index relies on assumptions similar to the fixed row-equiprobable column (FE) null model, which is not mentioned. This makes the claims of the authors regarding novelty as overestimated, as the method is not as original as is led to believe.

The second critique in my opinion is the assumption that all sites are equally suitable for species, which may not hold in real-world datasets with heterogeneous sites, such as islands or even populations dispersed along gradients. The proposed method may underperform in such cases. The assumption of equiprobability needs to be revisited and established with proper justification i.e., limitations of the presented theory.

My third concern about the R package's implementation is inconsistent results from the same data. The reliability of the package is brought into question. This limits practical applicability.

Reviewer #2: The manuscript titled "CooccurrenceAffinity: An R package for computing a novel metric of affinity in co-occurrence data" introduces a valuable tool for ecological and biogeographical research. The CooccurrenceAffinity R package offers a new affinity metric, α, addressing the limitations of traditional co-occurrence indices like Jaccard and Sørensen-Dice. The package's ability to compute maximum likelihood estimates (MLE) of α, along with four different confidence intervals, makes it a powerful tool for researchers dealing with binary presence-absence data. The manuscript is well-structured and provides detailed explanations of the methods and the theoretical underpinnings of the metric. The integration of this package into ecological workflows can provide more reliable interpretations of species associations, which is a significant contribution to the field. However, some areas need clarification and improvement, both in terms of mathematical rigor and writing style, to enhance the paper's clarity and utility for readers.

Comment1:

The manuscript heavily relies on MLE for α, which can lead to biased results in small sample sizes, a common issue in ecological studies. It would be beneficial to include a discussion on the limitations of MLE in such contexts. Consider exploring alternative methods, such as bias-corrected MLE or Bayesian estimators, which may offer more robust results when working with small datasets. Adding such a discussion would improve the paper's applicability across a wider range of sample sizes.

Comment2:

The use of hat α values to avoid ±∞ for extreme co-occurrence values introduces potential distortions in the results. It's important to further explain the impact of these hat values on interpretation and provide clear guidance for users on how to handle such cases in biological applications.

Comment3:

While the manuscript presents four types of confidence intervals, it does not fully explain the trade-offs between more conservative intervals (e.g., Clopper-Pearson) and exploratory ones (e.g., midP, midQ). Including a more detailed discussion on when to use each type of CI, especially in exploratory versus confirmatory research, would enhance the utility of the method. Guidance on managing undercoverage risks in exploratory studies would also be helpful.

Comment4:

The paper overlooks the need for adjusting for multiple comparisons when analyzing numerous species pairs, which can increase the risk of Type I errors. Addressing this by suggesting corrections such as Bonferroni or False Discovery Rate (FDR) would enhance the reliability of the results in large-scale ecological analyses, where multiple pairwise comparisons are common.

Comment5:

The assumption of independent co-occurrences ignores spatial autocorrelation, which is crucial in ecological studies. Acknowledging this limitation and suggesting future extensions to incorporate spatial dependence would make the method more broadly applicable to real-world scenarios where spatial structure plays a significant role.

Comment6:

The ecological interpretation of α as a log-odds ratio may not be intuitive for all readers. Providing additional examples or practical explanations of what different values of α represent in terms of species interactions (e.g., competition, facilitation) would make the metric more accessible and meaningful for ecologists.

Comment7:

Some sentences in the manuscript are overly long and complex, making them difficult to follow. Simplifying these sentences and using clearer, more concise language will improve the readability and overall flow of the manuscript.

Minor

Comment1:

The manuscript uses passive voice excessively, which can make the writing less engaging. For instance, “It was found that the MLE provided reliable estimates” could be improved by switching to active voice: “We found that the MLE provided reliable estimates.” This would make the writing clearer and more direct.

Comment2:

Some terms are not clearly defined when first introduced. For example, “Affinity is calculated using the log-odds ratio” is unclear without defining what affinity or the log-odds ratio means. A clearer explanation would help, such as: “Affinity refers to the degree of association between two species based on their co-occurrence. The log-odds ratio quantifies this relationship, indicating how much more likely species are to co-occur than by chance.”

Comment3:

Some sentences are too long and include multiple ideas, making them difficult to follow. For example: “The novel metric of affinity, α, is introduced to resolve issues in traditional indices, and it is computed through the MLE, which provides a better estimation for species association, making it more reliable for large datasets, although small datasets may still present challenges.” This could be broken down into clearer sentences: “The novel metric of affinity, α, resolves issues in traditional indices. It is computed using the MLE, providing a more reliable estimation for species association in large datasets. However, small datasets may still present challenges.”

Comment4:

The abstract is wordy and lacks a clear focus on the paper’s key contributions. For example, “We provide functions for analysis and plotting based on various data formats, and compute the novel metric along with traditional indices such as Jaccard and Simpson.” This could be made more concise, such as: “We introduce the CooccurrenceAffinity R package, which computes a novel metric of species affinity (α) and corrects biases in traditional indices. The package provides functions for analyzing co-occurrence data and generating visual outputs.”

**********

6. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

**********

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step.

Revision 1

We have provided a detailed document as a separate upload responding to the reviewers' comments.

Attachments
Attachment
Submitted filename: response to reviewers v2.4.pdf
Decision Letter - Abhik Ghosh, Editor

CooccurrenceAffinity: An R package for computing a novel metric of affinity in co-occurrence data that corrects for pervasive errors in traditional indices

PONE-D-24-38304R1

Dear Dr. Mainali,

We’re pleased to inform you that your manuscript has been judged scientifically suitable for publication and will be formally accepted for publication once it meets all outstanding technical requirements.

Within one week, you’ll receive an e-mail detailing the required amendments. When these have been addressed, you’ll receive a formal acceptance letter and your manuscript will be scheduled for publication.

An invoice will be generated when your article is formally accepted. Please note, if your institution has a publishing partnership with PLOS and your article meets the relevant criteria, all or part of your publication costs will be covered. Please make sure your user information is up-to-date by logging into Editorial Manager at Editorial Manager® and clicking the ‘Update My Information' link at the top of the page. If you have any questions relating to publication charges, please contact our Author Billing department directly at authorbilling@plos.org.

If your institution or institutions have a press office, please notify them about your upcoming paper to help maximize its impact. If they’ll be preparing press materials, please inform our press team as soon as possible -- no later than 48 hours after receiving the formal acceptance. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

Kind regards,

Abhik Ghosh

Academic Editor

PLOS ONE

Additional Editor Comments (optional):

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. If the authors have adequately addressed your comments raised in a previous round of review and you feel that this manuscript is now acceptable for publication, you may indicate that here to bypass the “Comments to the Author” section, enter your conflict of interest statement in the “Confidential to Editor” section, and submit your "Accept" recommendation.

Reviewer #2: All comments have been addressed

**********

2. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.

Reviewer #2: Yes

**********

3. Has the statistical analysis been performed appropriately and rigorously?

Reviewer #2: Yes

**********

4. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #2: Yes

**********

5. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.

Reviewer #2: Yes

**********

6. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #2: (No Response)

**********

7. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #2: No

**********

Formally Accepted
Acceptance Letter - Abhik Ghosh, Editor

PONE-D-24-38304R1

PLOS ONE

Dear Dr. Mainali,

I'm pleased to inform you that your manuscript has been deemed suitable for publication in PLOS ONE. Congratulations! Your manuscript is now being handed over to our production team.

At this stage, our production department will prepare your paper for publication. This includes ensuring the following:

* All references, tables, and figures are properly cited

* All relevant supporting information is included in the manuscript submission,

* There are no issues that prevent the paper from being properly typeset

If revisions are needed, the production department will contact you directly to resolve them. If no revisions are needed, you will receive an email when the publication date has been set. At this time, we do not offer pre-publication proofs to authors during production of the accepted work. Please keep in mind that we are working through a large volume of accepted articles, so please give us a few weeks to review your paper and let you know the next and final steps.

Lastly, if your institution or institutions have a press office, please let them know about your upcoming paper now to help maximize its impact. If they'll be preparing press materials, please inform our press team within the next 48 hours. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

If we can help with anything else, please email us at customercare@plos.org.

Thank you for submitting your work to PLOS ONE and supporting open access.

Kind regards,

PLOS ONE Editorial Office Staff

on behalf of

Dr. Abhik Ghosh

Academic Editor

PLOS ONE

Open letter on the publication of peer review reports

PLOS recognizes the benefits of transparency in the peer review process. Therefore, we enable the publication of all of the content of peer review and author responses alongside final, published articles. Reviewers remain anonymous, unless they choose to reveal their names.

We encourage other journals to join us in this initiative. We hope that our action inspires the community, including researchers, research funders, and research institutions, to recognize the benefits of published peer review reports for all parts of the research system.

Learn more at ASAPbio .