Skip to content

science

Ana García edited this page Nov 10, 2023 · 9 revisions

Algorithms to assign colors to bars and dots of the map

PREVENTION THEME

RESISTANCE STATUS

COLORS OF BARS:

We always look at the most recent study. The colors of the bars should be based on the field RESISTANCE_STATUS. RESISTANCE_STATUS is assigned in the database: it is based on the value of mortality adjusted.

The colors should be

  • Red for CONFIRMED_RESISTANCE
  • Orange for POSSIBLE_RESISTANCE
  • Green for SUSCEPTIBLE
  • Grey for UNDETERMINED

If several studies are selected, the color that shows up in the map depends on if there is one that is red, then the dot will be red. If there is a grey one, it will be grey. If not and there is one orange, then it will be orange. If all of them are green, then it will be green. So the priority is: CONFIRMED_RESISTANCE > UNDETERMINED > POSSIBLE_RESISTANCE > SUSCEPTIBLE.

COLORS OF MAP POINTS:

We group by species and then we assign the colour according to resistance status (if it's undetermined the colour is grey) same way as in the bars.

Synergist Map

As of 2021:

  • The bar that corresponds to the test done with the Synergist (e.g. SYNERGIST_TYPE=4%) should acquire the color of the test result MECHANISM_PROXY which is the same that is in the legend of the map. The other bar should stay light grey.

INSECTICIDE RESISTANCE INTENSITY

COLORS OF MAP POINTS:

We always look at the most recent study. If several studies are selected, then we sort remaining studies by RESISTANCE_INTENSITY: HIGH_INTENSITY > MODERATE_TO_HIGH_INTENSITY > MODERATE_INTENSITY > LOW_INTENSITY > SUSCEPTIBLE > COULD_NOT_BE_RELIABLY_ASSESSED > NA.

RESISTANCE MECHANISMS DETECTION

COLORS OF MAP POINTS:

We always look at the most recent study. If several studies are selected, then we sort remaining studies by MECHANISM_STATUS: DETECTED > NOT_DETECTED > NA.

SYNERGIST EFFECT IN SUSCEPTIBILITY

COLORS OF MAP POINTS:

We always look at the most recent study. If several studies are selected, then we sort remaining studies by MECHANISM_PROXY: FULL_INVOLVEMENT > PARTIAL_INVOLVEMENT > NO_INVOLVEMENT > COULD_NOT_BE_RELIABLY_ASSESSED.

INVASIVE THEME

VECTOR OCCURRENCE

COLORS OF MAP POINTS:

We always look at the most recent study. If several studies are selected, then we sort remaining studies by INVASIVE_STATUS: INVASIVE > NATIVE > INVASIVE.

TREATMENT THEME

TREATMENT FAILURE

COLORS OF MAP POINTS:

We always look at the most recent study. If several studies are selected, then we sort remaining studies by TREATMENT_FAILURE: first we add to TREATMENT_FAILURE the value of TREATMENT_FAILURE_KM if TREATMENT_FAILURE_PP is different of null, and then we sort studies starting with those with the highest TREATMENT_FAILURE value.

DELAYED PARASITE CLEARANCE (P.f.)

COLORS OF MAP POINTS:

We always look at the most recent study. If several studies are selected, then we sort remaining studies by POSITIVE_DAY_3 starting with those with the highest POSITIVE_DAY_3 value.

Clone this wiki locally