|
|
|
|
|
<!DOCTYPE html> |
|
<html class="writer-html5" lang="en" > |
|
<head> |
|
<meta charset="utf-8"> |
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
|
|
<title>API — D-SCRIPT v1.0-beta documentation</title> |
|
|
|
|
|
|
|
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /> |
|
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script> |
|
<script src="../_static/jquery.js"></script> |
|
<script src="../_static/underscore.js"></script> |
|
<script src="../_static/doctools.js"></script> |
|
<script src="../_static/language_data.js"></script> |
|
|
|
<script type="text/javascript" src="../_static/js/theme.js"></script> |
|
|
|
|
|
<link rel="index" title="Index" href="../genindex.html" /> |
|
<link rel="search" title="Search" href="../search.html" /> |
|
<link rel="next" title="dscript.commands" href="dscript.commands.html" /> |
|
<link rel="prev" title="Data" href="../data.html" /> |
|
</head> |
|
|
|
<body class="wy-body-for-nav"> |
|
|
|
|
|
<div class="wy-grid-for-nav"> |
|
|
|
<nav data-toggle="wy-nav-shift" class="wy-nav-side"> |
|
<div class="wy-side-scroll"> |
|
<div class="wy-side-nav-search" > |
|
|
|
|
|
|
|
<a href="../index.html" class="icon icon-home" alt="Documentation Home"> D-SCRIPT |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div role="search"> |
|
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> |
|
<input type="text" name="q" placeholder="Search docs" /> |
|
<input type="hidden" name="check_keywords" value="yes" /> |
|
<input type="hidden" name="area" value="default" /> |
|
</form> |
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
<ul class="current"> |
|
<li class="toctree-l1"><a class="reference internal" href="../installation.html">Installation</a></li> |
|
<li class="toctree-l1"><a class="reference internal" href="../usage.html">Usage</a></li> |
|
<li class="toctree-l1"><a class="reference internal" href="../data.html">Data</a></li> |
|
<li class="toctree-l1 current"><a class="current reference internal" href="#">API</a><ul> |
|
<li class="toctree-l2"><a class="reference internal" href="dscript.commands.html">dscript.commands</a></li> |
|
<li class="toctree-l2"><a class="reference internal" href="dscript.models.html">dscript.models</a></li> |
|
<li class="toctree-l2"><a class="reference internal" href="#dscript-alphabets">dscript.alphabets</a></li> |
|
<li class="toctree-l2"><a class="reference internal" href="#module-dscript.fasta">dscript.fasta</a></li> |
|
<li class="toctree-l2"><a class="reference internal" href="#dscript-language-model">dscript.language_model</a></li> |
|
<li class="toctree-l2"><a class="reference internal" href="#dscript-pretrained">dscript.pretrained</a></li> |
|
<li class="toctree-l2"><a class="reference internal" href="#dscript-utils">dscript.utils</a></li> |
|
</ul> |
|
</li> |
|
</ul> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
</nav> |
|
|
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> |
|
|
|
|
|
<nav class="wy-nav-top" aria-label="top navigation"> |
|
|
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> |
|
<a href="../index.html">D-SCRIPT</a> |
|
|
|
</nav> |
|
|
|
|
|
<div class="wy-nav-content"> |
|
|
|
<div class="rst-content"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div role="navigation" aria-label="breadcrumbs navigation"> |
|
|
|
<ul class="wy-breadcrumbs"> |
|
|
|
<li><a href="../index.html" class="icon icon-home"></a> »</li> |
|
|
|
<li>API</li> |
|
|
|
|
|
<li class="wy-breadcrumbs-aside"> |
|
|
|
|
|
<a href="../_sources/api/index.rst.txt" rel="nofollow"> View page source</a> |
|
|
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
|
|
<hr/> |
|
</div> |
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> |
|
<div itemprop="articleBody"> |
|
|
|
<div class="section" id="api"> |
|
<h1>API<a class="headerlink" href="#api" title="Permalink to this headline">¶</a></h1> |
|
<div class="toctree-wrapper compound"> |
|
<ul> |
|
<li class="toctree-l1"><a class="reference internal" href="dscript.commands.html">dscript.commands</a><ul> |
|
<li class="toctree-l2"><a class="reference internal" href="dscript.commands.html#dscript-commands-embed">dscript.commands.embed</a></li> |
|
<li class="toctree-l2"><a class="reference internal" href="dscript.commands.html#dscript-commands-train">dscript.commands.train</a></li> |
|
<li class="toctree-l2"><a class="reference internal" href="dscript.commands.html#dscript-commands-eval">dscript.commands.eval</a></li> |
|
<li class="toctree-l2"><a class="reference internal" href="dscript.commands.html#dscript-commands-predict">dscript.commands.predict</a></li> |
|
</ul> |
|
</li> |
|
<li class="toctree-l1"><a class="reference internal" href="dscript.models.html">dscript.models</a><ul> |
|
<li class="toctree-l2"><a class="reference internal" href="dscript.models.html#dscript-models-embedding">dscript.models.embedding</a></li> |
|
<li class="toctree-l2"><a class="reference internal" href="dscript.models.html#dscript-models-contact">dscript.models.contact</a></li> |
|
<li class="toctree-l2"><a class="reference internal" href="dscript.models.html#dscript-models-interaction">dscript.models.interaction</a></li> |
|
</ul> |
|
</li> |
|
</ul> |
|
</div> |
|
<div class="section" id="dscript-alphabets"> |
|
<h2>dscript.alphabets<a class="headerlink" href="#dscript-alphabets" title="Permalink to this headline">¶</a></h2> |
|
</div> |
|
<div class="section" id="module-dscript.fasta"> |
|
<span id="dscript-fasta"></span><h2>dscript.fasta<a class="headerlink" href="#module-dscript.fasta" title="Permalink to this headline">¶</a></h2> |
|
<dl class="py function"> |
|
<dt id="dscript.fasta.parse"> |
|
<code class="sig-prename descclassname">dscript.fasta.</code><code class="sig-name descname">parse</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">f</span></em>, <em class="sig-param"><span class="n">comment</span><span class="o">=</span><span class="default_value">'#'</span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/dscript/fasta.html#parse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#dscript.fasta.parse" title="Permalink to this definition">¶</a></dt> |
|
<dd><p>Parse a file in <code class="docutils literal notranslate"><span class="pre">.fasta</span></code> format.</p> |
|
<dl class="field-list simple"> |
|
<dt class="field-odd">Parameters</dt> |
|
<dd class="field-odd"><ul class="simple"> |
|
<li><p><strong>f</strong> (<em>_io.TextIOWrapper</em>) – Input file object</p></li> |
|
<li><p><strong>comment</strong> (<em>str</em>) – Character used for comments</p></li> |
|
</ul> |
|
</dd> |
|
<dt class="field-even">Returns</dt> |
|
<dd class="field-even"><p>names, sequence</p> |
|
</dd> |
|
<dt class="field-odd">Return type</dt> |
|
<dd class="field-odd"><p>list[str], list[str]</p> |
|
</dd> |
|
</dl> |
|
</dd></dl> |
|
|
|
<dl class="py function"> |
|
<dt id="dscript.fasta.parse_directory"> |
|
<code class="sig-prename descclassname">dscript.fasta.</code><code class="sig-name descname">parse_directory</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">directory</span></em>, <em class="sig-param"><span class="n">extension</span><span class="o">=</span><span class="default_value">'.seq'</span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/dscript/fasta.html#parse_directory"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#dscript.fasta.parse_directory" title="Permalink to this definition">¶</a></dt> |
|
<dd><p>Parse all files in a directory ending with <code class="docutils literal notranslate"><span class="pre">extension</span></code>.</p> |
|
<dl class="field-list simple"> |
|
<dt class="field-odd">Parameters</dt> |
|
<dd class="field-odd"><ul class="simple"> |
|
<li><p><strong>directory</strong> (<em>str</em>) – Input directory</p></li> |
|
<li><p><strong>extension</strong> (<em>str</em>) – Extension of all files to read in</p></li> |
|
</ul> |
|
</dd> |
|
<dt class="field-even">Returns</dt> |
|
<dd class="field-even"><p>names, sequence</p> |
|
</dd> |
|
<dt class="field-odd">Return type</dt> |
|
<dd class="field-odd"><p>list[str], list[str]</p> |
|
</dd> |
|
</dl> |
|
</dd></dl> |
|
|
|
<dl class="py function"> |
|
<dt id="dscript.fasta.write"> |
|
<code class="sig-prename descclassname">dscript.fasta.</code><code class="sig-name descname">write</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">nam</span></em>, <em class="sig-param"><span class="n">seq</span></em>, <em class="sig-param"><span class="n">f</span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/dscript/fasta.html#write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#dscript.fasta.write" title="Permalink to this definition">¶</a></dt> |
|
<dd><p>Write a file in <code class="docutils literal notranslate"><span class="pre">.fasta</span></code> format.</p> |
|
<dl class="field-list simple"> |
|
<dt class="field-odd">Parameters</dt> |
|
<dd class="field-odd"><ul class="simple"> |
|
<li><p><strong>nam</strong> (<em>list</em><em>[</em><em>str</em><em>]</em>) – List of names</p></li> |
|
<li><p><strong>seq</strong> (<em>list</em><em>[</em><em>str</em><em>]</em>) – List of sequences</p></li> |
|
<li><p><strong>f</strong> (<em>_io.TextIOWrapper</em>) – Output file object</p></li> |
|
</ul> |
|
</dd> |
|
</dl> |
|
</dd></dl> |
|
|
|
</div> |
|
<div class="section" id="dscript-language-model"> |
|
<h2>dscript.language_model<a class="headerlink" href="#dscript-language-model" title="Permalink to this headline">¶</a></h2> |
|
</div> |
|
<div class="section" id="dscript-pretrained"> |
|
<h2>dscript.pretrained<a class="headerlink" href="#dscript-pretrained" title="Permalink to this headline">¶</a></h2> |
|
</div> |
|
<div class="section" id="dscript-utils"> |
|
<h2>dscript.utils<a class="headerlink" href="#dscript-utils" title="Permalink to this headline">¶</a></h2> |
|
</div> |
|
</div> |
|
|
|
|
|
</div> |
|
|
|
</div> |
|
<footer> |
|
|
|
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> |
|
|
|
<a href="dscript.commands.html" class="btn btn-neutral float-right" title="dscript.commands" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a> |
|
|
|
|
|
<a href="../data.html" class="btn btn-neutral float-left" title="Data" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a> |
|
|
|
</div> |
|
|
|
|
|
<hr/> |
|
|
|
<div role="contentinfo"> |
|
<p> |
|
|
|
© Copyright 2020, Samuel Sledzieski, Rohit Singh |
|
|
|
</p> |
|
</div> |
|
|
|
|
|
|
|
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a |
|
|
|
<a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> |
|
|
|
provided by <a href="https://readthedocs.org">Read the Docs</a>. |
|
|
|
</footer> |
|
|
|
</div> |
|
</div> |
|
|
|
</section> |
|
|
|
</div> |
|
|
|
|
|
<script type="text/javascript"> |
|
jQuery(function () { |
|
SphinxRtdTheme.Navigation.enable(true); |
|
}); |
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
|
|
</body> |
|
</html> |