You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: QtSLiM/help/SLiMHelpClasses.html
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -945,12 +945,13 @@
945
945
<p class="p6">In SLiM 5 and later, in models with multiple chromosome the output includes the symbol of the chromosome associated with each mutation.</p>
946
946
<p class="p6"><span class="s3">In SLiM 3.3 and later, the output format includes the nucleotides associated with any nucleotide-based mutations.</span></p>
947
947
<p class="p4">Output is generally done in a <span class="s1">late()</span> event, so that the output reflects the state of the simulation at the end of a tick.</p>
<p class="p4">Output the state of the entire population.<span class="Apple-converted-space"> </span>If the optional parameter <span class="s1">filePath</span> is <span class="s1">NULL</span> (the default), output will be sent to Eidos’s output stream.<span class="Apple-converted-space"> </span>Otherwise, output will be sent to the filesystem path specified by <span class="s1">filePath</span>, overwriting that file if <span class="s1">append</span> if <span class="s1">F</span>, or appending to the end of it if <span class="s1">append</span> is <span class="s1">T</span><span class="s2">.</span><span class="Apple-converted-space"> </span>When writing to a file, a <span class="s1">logical</span> flag, <span class="s1">binary</span>, may be supplied as well.<span class="Apple-converted-space"> </span>If <span class="s1">binary</span> is <span class="s1">T</span>, the population state will be written as a binary file instead of a text file (binary data cannot be written to the standard output stream).<span class="Apple-converted-space"> </span>The binary file is usually smaller, and in any case will be read much faster than the corresponding text file would be read.<span class="Apple-converted-space"> </span>Binary files are not guaranteed to be portable between platforms; in other words, a binary file written on one machine may not be readable on a different machine (but in practice it usually will be, unless the platforms being used are fairly unusual).<span class="Apple-converted-space"> </span>If <span class="s1">binary</span> is <span class="s1">F</span> (the default), a text file will be written.</p>
950
950
<p class="p4">Beginning with SLiM 2.3, the <span class="s1">spatialPositions</span> parameter may be used to control the output of the spatial positions of individuals in species for which continuous space has been enabled using the <span class="s1">dimensionality</span> option of <span class="s1">initializeSLiMOptions()</span><span class="s2">.</span><span class="Apple-converted-space"> </span>If <span class="s1">spatialPositions</span> is <span class="s1">F</span>, the output will not contain spatial positions, and will be identical to the output generated by SLiM 2.1 and later.<span class="Apple-converted-space"> </span>If <span class="s1">spatialPositions</span> is <span class="s1">T</span>, spatial position information will be output if it is available.<span class="Apple-converted-space"> </span>If the species does not have continuous space enabled, the <span class="s1">spatialPositions</span> parameter will be ignored.<span class="Apple-converted-space"> </span>Positional information may be output for all output destinations – the Eidos output stream, a text file, or a binary file.</p>
951
951
<p class="p6"><span class="s3">Beginning with SLiM 3.0, the </span><span class="s4">ages</span><span class="s3"> parameter may be used to control the output of the ages of individuals in nonWF simulations.<span class="Apple-converted-space"> </span>If </span><span class="s4">ages</span><span class="s3"> is </span><span class="s4">F</span><span class="s3">, the output will not contain ages, preserving backward compatibility with the output format of SLiM 2.1 and later.<span class="Apple-converted-space"> </span>If </span><span class="s4">ages</span><span class="s3"> is </span><span class="s4">T</span><span class="s3">, ages will be output for nonWF models.<span class="Apple-converted-space"> </span>In WF simulations, the </span><span class="s4">ages</span><span class="s3"> parameter will be ignored.</span></p>
952
952
<p class="p6"><span class="s3">Beginning with SLiM 3.3, the </span><span class="s4">ancestralNucleotides</span><span class="s3"> parameter may be used to control the output of the ancestral nucleotide sequence in nucleotide-based models.<span class="Apple-converted-space"> </span>If </span><span class="s4">ancestralNucleotides</span><span class="s3"> is </span><span class="s4">F</span><span class="s3">, the output will not contain ancestral nucleotide information, and so the ancestral sequence will not be restored correctly if the saved file is loaded with </span><span class="s4">readPopulationFile()</span><span class="s3">.<span class="Apple-converted-space"> </span>This option is provided because the ancestral sequence may be quite large, for models with a long chromosome (e.g., 1 GB if the chromosome is 10</span><span class="s20"><sup>9</sup></span><span class="s3"> bases long, when saved in text format, or 0.25 GB when saved in binary format).<span class="Apple-converted-space"> </span>If the model is not nucleotide-based (as enabled with the </span><span class="s4">nucleotideBased</span><span class="s3"> parameter to </span><span class="s4">initializeSLiMOptions()</span><span class="s3">), the </span><span class="s4">ancestralNucleotides</span><span class="s3"> parameter will be ignored.<span class="Apple-converted-space"> </span>Note that in nucleotide-based models the output format will <i>always</i> include the nucleotides associated with any nucleotide-based mutations; the </span><span class="s4">ancestralNucleotides</span><span class="s3"> flag governs only the ancestral sequence.</span></p>
953
-
<p class="p6">Beginning with SLiM 3.5, the <span class="s1">pedigreeIDs</span> parameter may be used to request that pedigree IDs be written out (and read in by <span class="s1">readFromPopulationFile()</span>, subsequently).<span class="Apple-converted-space"> </span>This option is turned off (<span class="s1">F</span>) by default, to preserve backward compatibility; if it is turned on (<span class="s1">T</span>), different file version values will be used, and backward compatibility with previous versions of SLiM will be lost.<span class="Apple-converted-space"> </span>This option may only be used if SLiM’s optional pedigree tracking has been enabled with <span class="s1">initializeSLiMOptions(keepPedigrees=T)</span>.</p>
953
+
<p class="p6">Beginning with SLiM 3.5, the <span class="s1">pedigreeIDs</span> parameter may be used to request that pedigree IDs be written out (and read in by <span class="s1">readFromPopulationFile()</span>, subsequently).<span class="Apple-converted-space"> </span>This option is turned off (<span class="s1">F</span>) by default, for brevity.<span class="Apple-converted-space"> </span>This option may only be used if SLiM’s optional pedigree tracking has been enabled with <span class="s1">initializeSLiMOptions(keepPedigrees=T)</span>.</p>
954
+
<p class="p6">Beginning with SLiM 5.0, the <span class="s1">individualTags</span> parameter may be used to request that tag values for all individuals be written out (and read in by <span class="s1">readFromPopulationFile()</span>, subsequently).<span class="Apple-converted-space"> </span>This option is turned off (<span class="s1">F</span>) by default, for brevity; if it turned on (<span class="s1">T</span>), the values of all tags for all individuals (specifically, the <span class="s1">tag</span>, <span class="s1">tagF</span>, <span class="s1">tagL0</span>, <span class="s1">tagL1</span>, <span class="s1">tagL2</span>, <span class="s1">tagL3</span>, and <span class="s1">tagL4</span> properties) will be written, as described further in section 27.1.1.</p>
954
955
<p class="p4">Output is generally done in a <span class="s1">late()</span> event, so that the output reflects the state of the simulation at the end of a tick.</p>
<p class="p6"><span class="s5">Output all of the given mutations.<span class="Apple-converted-space"> </span>This can be used to output all mutations of a given mutation type, for example.<span class="Apple-converted-space"> </span></span><span class="s3">If the optional parameter </span><span class="s4">filePath</span><span class="s3"> is </span><span class="s4">NULL</span><span class="s3"> (the default), output will be sent to Eidos’s output stream.<span class="Apple-converted-space"> </span>Otherwise, output will be sent to the filesystem path specified by </span><span class="s4">filePath</span><span class="s3">, overwriting that file if </span><span class="s4">append</span><span class="s3"> if </span><span class="s4">F</span><span class="s3">, or appending to the end of it if </span><span class="s4">append</span><span class="s3"> is </span><span class="s4">T</span><span class="s3">.</span></p>
@@ -8684,11 +8684,32 @@ Beginning with SLiM 3.3, the
8684
8684
\f3\fs18 readFromPopulationFile()
8685
8685
\f4\fs20 , subsequently). This option is turned off (
8686
8686
\f3\fs18 F
8687
-
\f4\fs20 ) by default, to preserve backward compatibility; if it is turned on (
8688
-
\f3\fs18 T
8689
-
\f4\fs20 ), different file version values will be used, and backward compatibility with previous versions of SLiM will be lost. This option may only be used if SLiM\'92s optional pedigree tracking has been enabled with
8687
+
\f4\fs20 ) by default, for brevity. This option may only be used if SLiM\'92s optional pedigree tracking has been enabled with
8690
8688
\f3\fs18 initializeSLiMOptions(keepPedigrees=T)
8691
8689
\f4\fs20 .\
8690
+
Beginning with SLiM 5.0, the
8691
+
\f3\fs18 individualTags
8692
+
\f4\fs20 parameter may be used to request that tag values for all individuals be written out (and read in by
8693
+
\f3\fs18 readFromPopulationFile()
8694
+
\f4\fs20 , subsequently). This option is turned off (
8695
+
\f3\fs18 F
8696
+
\f4\fs20 ) by default, for brevity; if it turned on (
8697
+
\f3\fs18 T
8698
+
\f4\fs20 ), the values of all tags for all individuals (specifically, the
8699
+
\f3\fs18 tag
8700
+
\f4\fs20 ,
8701
+
\f3\fs18 tagF
8702
+
\f4\fs20 ,
8703
+
\f3\fs18 tagL0
8704
+
\f4\fs20 ,
8705
+
\f3\fs18 tagL1
8706
+
\f4\fs20 ,
8707
+
\f3\fs18 tagL2
8708
+
\f4\fs20 ,
8709
+
\f3\fs18 tagL3
8710
+
\f4\fs20 , and
8711
+
\f3\fs18 tagL4
8712
+
\f4\fs20 properties) will be written, as described further in section 27.1.1.\
0 commit comments