Giter Club home page Giter Club logo

mungbean_pm's Introduction

mungbean_pm's People

Contributors

adamhsparks avatar emdelponte avatar paulmelloy avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

mungbean_pm's Issues

Description of columns in table

Could we have a description of the columns in this table added to the text?

```{r data_summary, echo=FALSE, message=FALSE, warning=FALSE}

I'm unclear on what "mean_treat_replicates" is. At first I though it was the number of replicates in the study but the fractional number doesn't support that and the col heading isn't clear.

Create simplified data file

@PaulMelloy, could you please create a simplified data file in .csv format for us to use that has the following columns and put it in the /data folder of the repository?

year (int)
location (char)
host_genotype (char)
row_spacing.m (double)
first_sign_disease (date)
fungicide_ai (char)
fungicide_application_1 (date)
fungicide_application_2 (date)
fungicide_application_3 (date)
total_fungicide (int)
grain_yield.t.ha (double)
grain_yield_error (double)
PM_final_severity (double)
PM_final_severity_error (double)

In cases where there are more than one control due to a fungicide application not being made, please average those rows into one value.

@emdelponte, are there other columns you would like to have or other suggestions?

Matching vectors with NA values

Throwing a question out there,
I am probably missing a rookie error here
is there a way in R to specify how NAs are tested when asking if x == y?
ie if I want NA == NA to return TRUE is there a base function for that?

I wrote a function same() to handle them how I want the to be handled, but surely this is a problem others have had to?
Cheers

Files in /R

There are quite a number of files in /R, many are related with weather data, which doesn't enter into this analysis. Any extraneous files should be removed before this repository is made public.

Also, the files should be checked for consistency and for any non-standard code, e.g. hard-coded paths as found in /R/Cleaning_historical_data.R, etc. to ensure that the workflow is reproducible

Unable to rebuild book

I'm unable to reproduce this.

I keep getting this error.

r Error in rma.mv(yi = grain_yield.t.ha., V = vi, mods = ~spray_management * : Optimizer (optim) did not achieve convergence (convergence = 1).
from

```{r onset_Metafor-analysis, cache=TRUE}
.
When I try to build the book after adding the links to the preprint and article.

Fungicide AI rates are unclear

See: https://github.com/openplantpathology/Mungbean_PM/blob/Adam/data/1902%20powdery%20mildew-Mungbean%20-%20Collated%20means.csv

I've split the Fungicide column into two cols, dose_ai_f1_g.ha and dose_ai_f2_g.ha so that we can have them properly formatted as double in R.

However, several of the rows, e.g., 87, 88, 95, 96, for dual mode-of-action fungicides only list one rate. This is inconsistent with other rows that correctly state the rate for both AIs.

The rate for fungicide AIs needs to be added for all fungicides. This is assuming we have the rate in the records.

The data wrangling vignette appears to still be incomplete and need checking

From the text of the file itself.

This file is not complete and there are a number of things that need checking - Mean squares are only calculated for the triazoles and controls - If the years for each trial are input correctly - If the disease and yield errors are calculated and that they are shuffled correctly into the data frame - AUDPC needs to be checked for starting dates and if trials have been omitted - Check that what is generated from this file matches the main file and update - write.csv should have row.names = FALSE

If this isn't complete, then it needs to be checked and completed so that we can finish the analysis and then the paper that we've been working on.

It doesn't appear to be a documented vignette, rather it's several chunks of code just pasted in a Markdown file and run, to what purpose? How does this fit in the analysis workflow?

Also, I don't understand why it's not a part of the workflow itself if it is actually a part of the analysis that was performed.

Data file missing

In the commit log I found a message that the data file was now sourced from the shared OneDrive link. However, I cannot find any link in any of the Rmd files to the shared OneDrive link. Any data import lines point to the data/...xlsx file that no longer exists.

Issue with `same()` comparing value against vector, stops knitting

@paul Melloy, there's an issue in your function, same(), or at least how you've used it here:

```{r cluster_clusters, warning=FALSE}

It results in an error when I try to use it. It's because you're comparing something of length 1 with a vector of length 173 and so it takes only the first value of that vector, which may be what you want but it's not programmed correctly that I can tell.

master* > str(clusters[i, "cluster_1"])
 chr "Late"
master* > str(slim_PM_dat$cluster_1)
 chr [1:173] "Late" "Recommended" "Late" "Recommended" "Late" ...
master* 

weather.rmd code need fixing

Much of the code in this Rmd file is broken and needs to be fixed.

This should be looked into at a later date if there is a need for the information in this chapter

"..." in text?

Additional meta-analysis models tested variables ... for their influence on the SpraySchedule variables ability to mitigate yield loss.

Additional meta-analysis models tested variables ...

Not sure what's supposed to be here?

PM_MB_updated.csv provenance

@PaulMelloy, I'm going through the code in the book and am unable to determine the actual provenance of this file. This should be a read only file, but it looks like at some point it's overwritten during the book knitting?

How are there AUDPC and AUDPS values in this file? Those calculations should be done on-the-fly and if necessary results should be stored in the "cache" directory, which I created this morning in my branch I'm working on.

The data folder should be read only, we should not be writing back into it or any files contained inside of it.

APPS_abstract

I have uploaded an abstract draft for submission to the Australasian Plant Pathology Society (APPS) conference. The deadline is tomorrow (25/7/19) at midnight.
Does anyone have any comments or edits?
The file can be found at ./Presentations/2019_APPS_Meta-PowderyMildewMungbean_Abstract.Rmd
Cheers

02_weather.Rmd

I've been looking at/working with the 02_weather.Rmd file and have some questions about it.

It has duplicate code in some places, and/or just doesn't run and it only has weather for a few locations, not all.

So, is this really necessary for our meta-analysis? I can't see what it really adds at this point and appears to have several issues in it's current form. If there's a clear reason for us to use it, I have some existing code for climograms that can clean it up and improve the figures, but I'm not convinced it's necessary to have for this work.

No relationship between AUDPC and yield?

The text states that there appears to be no relationship between yield and AUDPC in the graph or linear model. But when I knit/run the linear model this is the result*:

Call:
lm(formula = grain_yield.t.ha. ~ AUDPC_m, data = PM_MB_means)

Residuals:
    Min      1Q  Median      3Q     Max 
-0.9620 -0.4077 -0.0783  0.3836  1.3954 

Coefficients:
            Estimate Std. Error t value            Pr(>|t|)    
(Intercept) 1.038082   0.051249   20.26 <0.0000000000000002 ***
AUDPC_m     0.001032   0.000395    2.61              0.0095 ** 
---
Signif. codes:  0***0.001**0.01*0.05.0.1 ‘ ’ 1

Residual standard error: 0.537 on 314 degrees of freedom
  (39 observations deleted due to missingness)
Multiple R-squared:  0.0213,	Adjusted R-squared:  0.0181 
F-statistic: 6.82 on 1 and 314 DF,  p-value: 0.00945

Am I just confused about what's being referred to here? This is found here:

There is no relationship as per the linear model.

*In my branch I've removed the restriction to only look at row spacing of 0.75m. However, this model still indicates significance with or without this restriction.

Were two meta-analysis packages used?

Line

The data were analysed in the R statistical software environment, version 4.0.1, [@RCoreTeam2020] using two contributed meta-analysis packages, `metafor`, version 2-4.0, [@Viechtbauer2010] and `netmeta`, version 1.2-1, [@Rucker2020].
says that two were used. Did we use both netMeta and metafor? I thought in the end only metafor was used.

Several places seem to reference the use of netMeta but I can't find any analysis actually carried out with it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.