Skip to content

Instantly share code, notes, and snippets.

@kenwebb
Last active December 18, 2018 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenwebb/ff588e5f277f06fd9caa295e68fdc910 to your computer and use it in GitHub Desktop.
Save kenwebb/ff588e5f277f06fd9caa295e68fdc910 to your computer and use it in GitHub Desktop.
Mosquito-borne Diseases
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Tue Dec 18 2018 12:40:09 GMT-0500 (Eastern Standard Time)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: Mosquito-borne Diseases
Description:
Url: http://www.primordion.com/Xholon/gwt/
InternalName: ff588e5f277f06fd9caa295e68fdc910
Keywords:
My Notes
--------
June 29, 2018
I will crreate this as an independent Xholon app.
It can also be dragged into a running "Island 3" app, by doing the following:
- start "Island 3" [see ref 2]
- click the "Copy to clipboard" button above
- paste the content into a text editor
- highlight all the text in the text editor
- drag the highlighted-text into the "Island 3" grid
December 15, 2018
See ottawadatalearners dengai
See my folder Documents/.../Mosquito-borneDiseases
I've downloaded various files
References
----------
(1) https://www.scientificamerican.com/article/buzz-kill-our-best-weapons-against-mosquitoes/
Dan Strickman, Buzz Kill, Scientific American, July 2018
"As mosquito-borne diseases spread, scientists are fighting back with new poisons, traps and genetic engineering techniques"
(2) http://127.0.0.1:8888/wb/editwb.html?app=Island+3&src=lstr
) http://127.0.0.1:8888/Xholon.html?app=Island+3&src=lstr&gui=none
) https://gist.github.com/kenwebb/41dceb5cd5c809a49729bcc78ef332b7
Island 3
(3) https://www.nature.com/scitable/topicpage/dengue-transmission-22399758
Dengue Transmission
"The dengue virus is spread through a human-to-mosquito-to-human cycle of transmission, with the mosquito Aedes aegypti as the primary vector."
(4) https://www.drivendata.org/competitions/44/dengai-predicting-disease-spread/
DengAI: Predicting Disease Spread
(5) https://www.cdc.gov/Dengue/
) https://www.cdc.gov/dengue/faqfacts/index.html
Dengue (pronounced den’ gee) is a disease caused by any one of four closely related dengue viruses (DENV 1, DENV 2, DENV 3, or DENV 4).
The viruses are transmitted to humans by the bite of an infected mosquito.
In the Western Hemisphere, the Aedes aegypti mosquito is the most important transmitter or vector of dengue viruses,
although a 2001 outbreak in Hawaii was transmitted by Aedes albopictus.
It is estimated that there are over 100 million cases of dengue worldwide each year.
(6) https://www.cdc.gov/dengue/entomologyecology/index.html
Time Series
(7) https://stat.ethz.ch/R-manual/R-devel/library/stats/html/ts.html
(8) http://r-statistics.co/Time-Series-Analysis-With-R.html
(9) https://www.analyticsvidhya.com/blog/2015/12/complete-tutorial-time-series-modeling/
(10) https://machinelearningmastery.com/gentle-introduction-box-jenkins-method-time-series-forecasting/
Autoregressive Integrated Moving Average Model, or ARIMA
]]></Notes>
<_-.XholonClass>
<MosquitoSystem/>
<Human/>
<Humans/>
<!-- mosquitos are vectors -->
<Mosquito>
<Aedes>
<A.albopictus/>
<A.aegypti/>
</Aedes>
<Anopheles/>
<Haemagogus/>
<Culex/>
</Mosquito>
<Mosquitos/>
<Disease>
<Chikungunya/>
<Dengue/>
<Zika/>
<Malaria/>
<YellowFever/>
<LymphaticFilariasis/>
<WestNile/>
</Disease>
<Parasite>
<Plasmodium/> <!-- causes Malaria -->
</Parasite>
<Virus>
<DengueVirus/> <!-- causes Dengue -->
</Virus>
</_-.XholonClass>
<xholonClassDetails>
<Anopheles><Color>yellow</Color></Anopheles>
</xholonClassDetails>
<MosquitoSystem>
<Mosquitos>
<Anopheles multiplicity="20"/>
</Mosquitos>
</MosquitoSystem>
<MosquitoSystembehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[
var me, beh = {
postConfigure: function() {
me = this.cnode.parent();
// move portions of this model into the Island 3 model
me.println(me.name());
var islandSystem = me.prev();
while (islandSystem) {
if (islandSystem.xhc().name() == "IslandSystem") break;
islandSystem = islandSystem.prev();
}
if (islandSystem) {
me.println(islandSystem.name());
var mosq = me.first().first(); // get first Mosquito
var gridCell = islandSystem.xpath("Space/FieldRow[3]/*[3]");
while ((mosq != null) && (gridCell != null)) {
me.println(mosq.name());
me.println(gridCell.name());
var nextMosq = mosq.next();
gridCell.append(mosq.remove());
mosq = nextMosq;
gridCell = gridCell.next().next();
}
}
}
}
//# sourceURL=MosquitoSystembehavior.js
]]></MosquitoSystembehavior>
<SvgClient><Attribute_String roleName="svgUri"><![CDATA[data:image/svg+xml,
<svg width="100" height="50" xmlns="http://www.w3.org/2000/svg">
<g>
<title>Mosquitos</title>
<rect id="MosquitoSystem/Mosquitos" fill="#98FB98" height="50" width="50" x="25" y="0"/>
<g>
<title>Anopheles - oops, they're off to the Island</title>
<rect id="MosquitoSystem/Mosquitos/Anopheles" fill="#6AB06A" height="50" width="10" x="80" y="0"/>
</g>
</g>
</svg>
]]></Attribute_String><Attribute_String roleName="setup">${MODELNAME_DEFAULT},${SVGURI_DEFAULT}</Attribute_String></SvgClient>
</XholonWorkbook>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment