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
<p>As optional keyword arguments cannot be used with Python’s built-in
1783
+
<codeclass="docutils literal notranslate"><spanclass="pre">format</span></code> function or with formatted strings, the <codeclass="docutils literal notranslate"><spanclass="pre">Alignment</span></code> class
1784
+
has a <codeclass="docutils literal notranslate"><spanclass="pre">format</span></code> method with optional arguments to customize the
1785
+
alignment format. For example, you can use the optional <codeclass="docutils literal notranslate"><spanclass="pre">scoring</span></code> argument
1786
+
to provide a substitution matrix (see Section
1787
+
<aclass="reference internal" href="chapter_pairwise.html#sec-pairwise-substitution-scores"><spanclass="std std-ref">Substitution scores</span></a>) to let the printed alignment reflect
1788
+
the substitution scores as follows:</p>
1789
+
<ulclass="simple">
1790
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">|</span></code> for identical residues,</p></li>
1791
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">:</span></code> for substitutions with a positive score,</p></li>
1792
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">.</span></code> for substitutions with a negative score,</p></li>
1793
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-</span></code> for gaps.</p></li>
<p>Instead of the substitution matrix, you can also use a <codeclass="docutils literal notranslate"><spanclass="pre">PairwiseAligner</span></code>
1826
+
object (see Chapter <aclass="reference internal" href="chapter_pairwise.html#chapter-pairwise"><spanclass="std std-ref">Pairwise sequence alignment</span></a>) as the <codeclass="docutils literal notranslate"><spanclass="pre">scoring</span></code> argument
1827
+
to use the substitution matrix associated with the aligner.</p>
1782
1828
<p>By specifying one of the formats shown in
1783
1829
Section <aclass="reference internal" href="#sec-alignformats"><spanclass="std std-ref">Alignment file formats</span></a>, <codeclass="docutils literal notranslate"><spanclass="pre">format</span></code> will create a string
1784
1830
showing the alignment in the requested format:</p>
<p>As optional keyword arguments cannot be used with Python’s built-in
1814
-
<codeclass="docutils literal notranslate"><spanclass="pre">format</span></code> function or with formatted strings, the <codeclass="docutils literal notranslate"><spanclass="pre">Alignment</span></code> class
1815
-
has a <codeclass="docutils literal notranslate"><spanclass="pre">format</span></code> method with optional arguments to customize the
1816
-
alignment format, as described in the subsections below. For example, we
1817
-
can print the alignment in BED format (see
1818
-
section <aclass="reference internal" href="#subsec-align-bed"><spanclass="std std-ref">Browser Extensible Data (BED)</span></a>) with a specific number of
1819
-
columns:</p>
1859
+
<p>As another example, we can print the alignment in BED format (see
1860
+
section <aclass="reference internal" href="#subsec-align-bed"><spanclass="std std-ref">Browser Extensible Data (BED)</span></a>) with a specific number of columns:</p>
0 commit comments