Skip to content

Commit f009a7f

Browse files
committed
resize CRISPR models
1 parent 1ff4350 commit f009a7f

4 files changed

Lines changed: 137 additions & 137 deletions

File tree

Sample Models/Biology/CRISPR/CRISPR Bacterium LevelSpace.nlogox

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta0" snapToGrid="true">
2+
<model version="NetLogo 7.0.0-beta1" snapToGrid="true">
33
<code><![CDATA[globals [
44
; Housekeeping variables
55
cell-wall ; Patch-set containing cell wall patches for boundary checking
@@ -407,12 +407,23 @@ end
407407
; Copyright 2019 Uri Wilensky.
408408
; See Info tab for full copyright and license.]]></code>
409409
<widgets>
410-
<view x="190" wrappingAllowedX="false" y="20" frameRate="30.0" minPycor="-8" height="327" showTickCounter="true" patchSize="19.0" fontSize="10" wrappingAllowedY="false" width="631" tickCounterLabel="ticks" maxPycor="8" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
411-
<button x="20" y="20" height="40" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="80" sizeVersion="0">setup n-values initial-array-size [random max-virus-types] guide-unbind-chance processivity crispr-function</button>
412-
<button x="110" y="20" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="70" sizeVersion="0">go</button>
413-
<monitor x="430" precision="17" y="505" height="45" fontSize="11" display="Viruses" width="70" sizeVersion="0">count viruses</monitor>
414-
<monitor x="775" precision="17" y="505" height="45" fontSize="11" display="Length" width="50" sizeVersion="0">length array</monitor>
415-
<plot x="190" autoPlotX="true" yMax="10.0" autoPlotY="true" y="355" xMin="0.0" height="140" legend="true" xMax="10.0" yMin="0.0" display="CRISPR Elements" width="310" sizeVersion="0">
410+
<view x="200" wrappingAllowedX="false" y="7" frameRate="30.0" minPycor="-8" height="327" showTickCounter="true" patchSize="19.0" fontSize="10" wrappingAllowedY="false" width="631" tickCounterLabel="ticks" maxPycor="8" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
411+
<button x="5" y="5" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="80" display="setup">setup n-values initial-array-size [random max-virus-types] guide-unbind-chance processivity crispr-function</button>
412+
<button x="5" y="55" height="45" disableUntilTicks="true" forever="false" kind="Observer" width="190">common-infection</button>
413+
<button x="95" y="5" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="100">go</button>
414+
<button x="5" y="110" height="45" disableUntilTicks="true" forever="false" kind="Observer" width="190" display="random-infection">infect random max-virus-types</button>
415+
<switch x="5" y="160" height="37" on="false" variable="labels?" width="190" display="labels?"></switch>
416+
<note x="5" y="200" backgroundDark="0" fontSize="12" width="190" markdown="false" height="90" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Even after a successful
417+
infection, turn labels on
418+
and off by toggling
419+
the switch and
420+
pressing go.</note>
421+
<slider x="5" step="1" y="290" max="30" width="190" display="initial-array-size" height="50" min="1" direction="Horizontal" default="15.0" variable="initial-array-size"></slider>
422+
<slider x="5" step="1" y="345" max="100" width="190" display="max-virus-types" height="50" min="1" direction="Horizontal" default="30.0" variable="max-virus-types"></slider>
423+
<slider x="5" step="1" y="400" max="10" width="190" display="guide-unbind-chance" height="50" min="0" direction="Horizontal" default="5.0" variable="guide-unbind-chance" units="%"></slider>
424+
<slider x="5" step="1" y="455" max="100" width="190" display="processivity" height="50" min="0" direction="Horizontal" default="80.0" variable="processivity" units="%"></slider>
425+
<slider x="5" step="1" y="510" max="100" width="190" display="CRISPR-function" height="50" min="0" direction="Horizontal" default="100.0" variable="CRISPR-function" units="%"></slider>
426+
<plot x="200" autoPlotX="true" yMax="10.0" autoPlotY="true" y="340" xMin="0.0" height="195" legend="true" xMax="10.0" yMin="0.0" width="310" display="CRISPR Elements">
416427
<setup></setup>
417428
<update></update>
418429
<pen interval="1.0" mode="0" display="Guide RNAs" color="-10899396" legend="true">
@@ -432,7 +443,15 @@ end
432443
<update>plot count cas-dimers</update>
433444
</pen>
434445
</plot>
435-
<plot x="520" autoPlotX="true" yMax="10.0" autoPlotY="true" y="355" xMin="0.0" height="140" legend="true" xMax="10.0" yMin="0.0" display="Guide RNAs" width="305" sizeVersion="0">
446+
<monitor x="200" precision="17" y="540" height="60" fontSize="11" width="100" display="Guide RNAs">count guide-rnas</monitor>
447+
<monitor x="305" precision="17" y="540" height="60" fontSize="11" width="100" display="Cas9s">count cas9s</monitor>
448+
<monitor x="410" precision="17" y="540" height="60" fontSize="11" width="100" display="Cas1/2s">count cas-dimers</monitor>
449+
<note x="55" y="605" backgroundDark="0" fontSize="12" width="175" markdown="false" height="70" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">The virus event monitor
450+
shows what interactions
451+
are taking place.</note>
452+
<monitor x="360" precision="17" y="605" height="60" fontSize="11" width="100" display="Viruses">count viruses</monitor>
453+
<monitor x="200" precision="17" y="605" height="60" fontSize="11" width="155" display="Virus event monitor">virus-event</monitor>
454+
<plot x="515" autoPlotX="true" yMax="10.0" autoPlotY="true" y="340" xMin="0.0" height="195" legend="true" xMax="10.0" yMin="0.0" width="320" display="Guide RNAs">
436455
<setup>set-plot-x-range 0 max-virus-types</setup>
437456
<update>update-histogram-ranges sentence ([sequence] of guide-RNAs) (array) 1</update>
438457
<pen interval="1.0" mode="1" display="RNAs" color="-16777216" legend="true">
@@ -444,28 +463,9 @@ end
444463
<update>histogram array</update>
445464
</pen>
446465
</plot>
447-
<slider x="20" step="1" y="300" max="30" display="initial-array-size" height="33" min="1" direction="Horizontal" default="15.0" variable="initial-array-size" width="160" sizeVersion="0"></slider>
448-
<slider x="20" step="1" y="345" max="100" display="max-virus-types" height="33" min="1" direction="Horizontal" default="30.0" variable="max-virus-types" width="160" sizeVersion="0"></slider>
449-
<monitor x="520" precision="17" y="505" height="45" fontSize="11" display="Bacterial CRISPR Array" width="245" sizeVersion="0">array</monitor>
450-
<monitor x="190" precision="17" y="505" height="45" fontSize="11" display="Guide RNAs" width="70" sizeVersion="0">count guide-rnas</monitor>
451-
<monitor x="270" precision="17" y="505" height="45" fontSize="11" display="Cas9s" width="70" sizeVersion="0">count cas9s</monitor>
452-
<monitor x="350" precision="17" y="505" height="45" fontSize="11" display="Cas1/2s" width="70" sizeVersion="0">count cas-dimers</monitor>
453-
<slider x="20" step="1" y="435" max="100" display="processivity" height="33" min="0" direction="Horizontal" default="80.0" variable="processivity" units="%" width="160" sizeVersion="0"></slider>
454-
<slider x="20" step="1" y="480" max="100" display="CRISPR-function" height="33" min="0" direction="Horizontal" default="100.0" variable="CRISPR-function" units="%" width="160" sizeVersion="0"></slider>
455-
<button x="20" y="70" height="45" disableUntilTicks="true" forever="false" kind="Observer" width="160" sizeVersion="0">common-infection</button>
456-
<button x="20" y="125" height="45" disableUntilTicks="true" forever="false" kind="Observer" display="random-infection" width="160" sizeVersion="0">infect random max-virus-types</button>
457-
<monitor x="520" precision="17" y="560" height="45" fontSize="11" display="Viral sequences" width="305" sizeVersion="0">sort [sequence] of viruses</monitor>
458-
<switch x="20" y="180" height="33" on="false" variable="labels?" display="labels?" width="160" sizeVersion="0"></switch>
459-
<monitor x="190" precision="17" y="560" height="45" fontSize="11" display="Virus event monitor" width="310" sizeVersion="0">virus-event</monitor>
460-
<slider x="20" step="1" y="390" max="10" display="guide-unbind-chance" height="33" min="0" direction="Horizontal" default="5.0" variable="guide-unbind-chance" units="%" width="160" sizeVersion="0"></slider>
461-
<note x="20" y="220" height="75" backgroundDark="0" fontSize="12" width="165" markdown="false" textColorLight="-16777216" backgroundLight="0">Even after a successful
462-
infection, turn labels on
463-
and off by toggling
464-
the switch and
465-
pressing go.</note>
466-
<note x="25" y="555" height="70" backgroundDark="0" fontSize="12" width="175" markdown="false" textColorLight="-16777216" backgroundLight="0">The virus event monitor
467-
shows what interactions
468-
are taking place.</note>
466+
<monitor x="735" precision="17" y="540" height="60" fontSize="11" width="100" display="Length">length array</monitor>
467+
<monitor x="515" precision="17" y="540" height="60" fontSize="11" width="215" display="Bacterial CRISPR Array">array</monitor>
468+
<monitor x="515" precision="17" y="605" height="60" fontSize="11" width="320" display="Viral sequences">sort [sequence] of viruses</monitor>
469469
</widgets>
470470
<info><![CDATA[## WHAT IS IT?
471471

Sample Models/Biology/CRISPR/CRISPR Bacterium.nlogox

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta0" snapToGrid="true">
2+
<model version="NetLogo 7.0.0-beta1" snapToGrid="true">
33
<code><![CDATA[globals [
44
; Housekeeping variables
55
cell-wall ; Patch-set containing cell wall patches for boundary checking
@@ -387,12 +387,22 @@ end
387387
; Copyright 2019 Uri Wilensky.
388388
; See Info tab for full copyright and license.]]></code>
389389
<widgets>
390-
<view x="190" wrappingAllowedX="false" y="20" frameRate="30.0" minPycor="-8" height="327" showTickCounter="true" patchSize="19.0" fontSize="10" wrappingAllowedY="false" width="631" tickCounterLabel="ticks" maxPycor="8" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
391-
<button x="20" y="20" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="80" sizeVersion="0">setup</button>
392-
<button x="110" y="20" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="70" sizeVersion="0">go</button>
393-
<monitor x="430" precision="17" y="505" height="45" fontSize="11" display="Viruses" width="70" sizeVersion="0">count viruses</monitor>
394-
<monitor x="775" precision="17" y="505" height="45" fontSize="11" display="Length" width="50" sizeVersion="0">length array</monitor>
395-
<plot x="190" autoPlotX="true" yMax="10.0" autoPlotY="true" y="355" xMin="0.0" height="140" legend="true" xMax="10.0" yMin="0.0" display="CRISPR System Elements" width="310" sizeVersion="0">
390+
<view x="205" wrappingAllowedX="false" y="7" frameRate="30.0" minPycor="-8" height="327" showTickCounter="true" patchSize="19.0" fontSize="10" wrappingAllowedY="false" width="631" tickCounterLabel="ticks" maxPycor="8" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
391+
<button x="5" y="7" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="80">setup</button>
392+
<slider x="5" step="1" y="285" max="30" width="195" display="initial-array-size" height="50" min="1" direction="Horizontal" default="15.0" variable="initial-array-size"></slider>
393+
<slider x="5" step="1" y="340" max="100" width="195" display="max-virus-types" height="50" min="1" direction="Horizontal" default="30.0" variable="max-virus-types"></slider>
394+
<switch x="5" y="155" height="37" on="false" variable="labels?" width="195" display="labels?"></switch>
395+
<note x="5" y="195" backgroundDark="0" fontSize="12" width="195" markdown="false" height="86" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Even after a successful
396+
infection, turn labels on
397+
and off by toggling
398+
the switch and
399+
pressing go.</note>
400+
<button x="5" y="105" height="45" disableUntilTicks="true" forever="false" kind="Observer" width="195" display="random-infection">infect random max-virus-types</button>
401+
<button x="5" y="55" height="45" disableUntilTicks="true" forever="false" kind="Observer" width="195">common-infection</button>
402+
<slider x="5" step="1" y="395" max="10" width="195" display="guide-unbind-chance" height="50" min="0" direction="Horizontal" default="5.0" variable="guide-unbind-chance" units="%"></slider>
403+
<slider x="5" step="1" y="450" max="100" width="195" display="processivity" height="50" min="0" direction="Horizontal" default="80.0" variable="processivity" units="%"></slider>
404+
<slider x="5" step="1" y="505" max="100" width="195" display="crispr-function" height="50" min="0" direction="Horizontal" default="20.0" variable="crispr-function" units="%"></slider>
405+
<plot x="205" autoPlotX="true" yMax="10.0" autoPlotY="true" y="340" xMin="0.0" height="185" legend="true" xMax="10.0" yMin="0.0" width="310" display="CRISPR System Elements">
396406
<setup></setup>
397407
<update></update>
398408
<pen interval="1.0" mode="0" display="Guide RNAs" color="-10899396" legend="true">
@@ -412,7 +422,12 @@ end
412422
<update>plot count cas-dimers</update>
413423
</pen>
414424
</plot>
415-
<plot x="520" autoPlotX="true" yMax="10.0" autoPlotY="true" y="355" xMin="0.0" height="140" legend="true" xMax="10.0" yMin="0.0" display="Guide RNAs" width="305" sizeVersion="0">
425+
<monitor x="205" precision="17" y="530" height="60" fontSize="11" width="100" display="Guide RNAs">count guide-rnas</monitor>
426+
<monitor x="205" precision="17" y="595" height="60" fontSize="11" width="140" display="Virus event monitor">virus-event</monitor>
427+
<note x="60" y="595" backgroundDark="0" fontSize="12" width="170" markdown="false" height="60" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">The virus event monitor
428+
shows what interactions
429+
are taking place.</note>
430+
<plot x="520" autoPlotX="true" yMax="10.0" autoPlotY="true" y="340" xMin="0.0" height="185" legend="true" xMax="10.0" yMin="0.0" width="315" display="Guide RNAs">
416431
<setup>set-plot-x-range 0 max-virus-types</setup>
417432
<update>update-histogram-ranges sentence ([sequence] of guide-rnas) (array) 1</update>
418433
<pen interval="1.0" mode="1" display="RNAs" color="-16777216" legend="true">
@@ -424,28 +439,13 @@ end
424439
<update>histogram array</update>
425440
</pen>
426441
</plot>
427-
<slider x="20" step="1" y="300" max="30" display="initial-array-size" height="33" min="1" direction="Horizontal" default="15.0" variable="initial-array-size" width="160" sizeVersion="0"></slider>
428-
<slider x="20" step="1" y="345" max="100" display="max-virus-types" height="33" min="1" direction="Horizontal" default="30.0" variable="max-virus-types" width="160" sizeVersion="0"></slider>
429-
<monitor x="520" precision="17" y="505" height="45" fontSize="11" display="Bacterial CRISPR Array" width="245" sizeVersion="0">array</monitor>
430-
<monitor x="190" precision="17" y="505" height="45" fontSize="11" display="Guide RNAs" width="70" sizeVersion="0">count guide-rnas</monitor>
431-
<monitor x="270" precision="17" y="505" height="45" fontSize="11" display="Cas9s" width="70" sizeVersion="0">count cas9s</monitor>
432-
<monitor x="350" precision="17" y="505" height="45" fontSize="11" display="Cas1/2s" width="70" sizeVersion="0">count cas-dimers</monitor>
433-
<slider x="20" step="1" y="435" max="100" display="processivity" height="33" min="0" direction="Horizontal" default="80.0" variable="processivity" units="%" width="160" sizeVersion="0"></slider>
434-
<slider x="20" step="1" y="480" max="100" display="crispr-function" height="33" min="0" direction="Horizontal" default="20.0" variable="crispr-function" units="%" width="160" sizeVersion="0"></slider>
435-
<button x="20" y="70" height="45" disableUntilTicks="true" forever="false" kind="Observer" width="160" sizeVersion="0">common-infection</button>
436-
<button x="20" y="125" height="45" disableUntilTicks="true" forever="false" kind="Observer" display="random-infection" width="160" sizeVersion="0">infect random max-virus-types</button>
437-
<monitor x="520" precision="17" y="560" height="45" fontSize="11" display="Viral sequences" width="305" sizeVersion="0">sort [sequence] of viruses</monitor>
438-
<switch x="20" y="180" height="33" on="false" variable="labels?" display="labels?" width="160" sizeVersion="0"></switch>
439-
<monitor x="190" precision="17" y="560" height="45" fontSize="11" display="Virus event monitor" width="310" sizeVersion="0">virus-event</monitor>
440-
<slider x="20" step="1" y="390" max="10" display="guide-unbind-chance" height="33" min="0" direction="Horizontal" default="5.0" variable="guide-unbind-chance" units="%" width="160" sizeVersion="0"></slider>
441-
<note x="20" y="220" height="86" backgroundDark="0" fontSize="12" width="185" markdown="false" textColorLight="-16777216" backgroundLight="0">Even after a successful
442-
infection, turn labels on
443-
and off by toggling
444-
the switch and
445-
pressing go.</note>
446-
<note x="20" y="555" height="60" backgroundDark="0" fontSize="12" width="170" markdown="false" textColorLight="-16777216" backgroundLight="0">The virus event monitor
447-
shows what interactions
448-
are taking place.</note>
442+
<monitor x="415" precision="17" y="530" height="60" fontSize="11" width="100" display="Cas1/2s">count cas-dimers</monitor>
443+
<monitor x="310" precision="17" y="530" height="60" fontSize="11" width="100" display="Cas9s">count cas9s</monitor>
444+
<monitor x="365" precision="17" y="595" height="60" fontSize="11" width="100" display="Viruses">count viruses</monitor>
445+
<monitor x="735" precision="17" y="530" height="60" fontSize="11" width="100" display="Length">length array</monitor>
446+
<monitor x="520" precision="17" y="530" height="60" fontSize="11" width="210" display="Bacterial CRISPR Array">array</monitor>
447+
<monitor x="520" precision="17" y="595" height="60" fontSize="11" width="315" display="Viral sequences">sort [sequence] of viruses</monitor>
448+
<button x="90" y="7" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="110">go</button>
449449
</widgets>
450450
<info><![CDATA[## WHAT IS IT?
451451

0 commit comments

Comments
 (0)