Skip to content

Commit

Permalink
refactor: getWSLpath to get Unix path in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
edkerk committed Feb 4, 2022
1 parent 3ddeb6e commit 6e99ef5
Show file tree
Hide file tree
Showing 10 changed files with 687 additions and 612 deletions.
952 changes: 473 additions & 479 deletions doc/external/kegg/getKEGGModelForOrganism.html

Large diffs are not rendered by default.

80 changes: 80 additions & 0 deletions doc/external/kegg/getWSLpath.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>Description of getWSLpath</title>
<meta name="keywords" content="getWSLpath">
<meta name="description" content="getWSLpath">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="m2html v1.5 &copy; 2003-2005 Guillaume Flandin">
<meta name="robots" content="index, follow">
<link type="text/css" rel="stylesheet" href="../../m2html.css">
</head>
<body>
<a name="_top"></a>
<div><a href="../../index.html">Home</a> &gt; <a href="../index.html">external</a> &gt; <a href="index.html">kegg</a> &gt; getWSLpath.m</div>

<!--<table width="100%"><tr><td align="left"><a href="../../index.html"><img alt="<" border="0" src="../../left.png">&nbsp;Master index</a></td>
<td align="right"><a href="index.html">Index for external\kegg&nbsp;<img alt=">" border="0" src="../../right.png"></a></td></tr></table>-->

<h1>getWSLpath
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="box"><strong>getWSLpath</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="box"><strong>function path=getWSLpath(path) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre class="comment"> getWSLpath
Translate Windows-style path to its Unix WSL (Windows Subsystem for
Linux) equivalent.

Input:
path string with directory of file path, in Windows-style (e.g.
'C:\Directory\')

Output:
path string with directory of file path, in Unix style (e.g.
'/mnt/c/Directory/')

Uses the WSL function 'wslpath' to translate the path.

Usage: path=getWSLpath(path)</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../../matlabicon.gif)">
</ul>
This function is called by:
<ul style="list-style-image:url(../../matlabicon.gif)">
<li><a href="getKEGGModelForOrganism.html" class="code" title="function model=getKEGGModelForOrganism(organismID,fastaFile,dataDir,outDir,keepSpontaneous,keepUndefinedStoich,keepIncomplete,keepGeneral,cutOff,minScoreRatioKO,minScoreRatioG,maxPhylDist,nSequences,seqIdentity,globalModel)">getKEGGModelForOrganism</a> getKEGGModelForOrganism</li></ul>
<!-- crossreference -->



<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function path=getWSLpath(path)</a>
0002 <span class="comment">% getWSLpath</span>
0003 <span class="comment">% Translate Windows-style path to its Unix WSL (Windows Subsystem for</span>
0004 <span class="comment">% Linux) equivalent.</span>
0005 <span class="comment">%</span>
0006 <span class="comment">% Input:</span>
0007 <span class="comment">% path string with directory of file path, in Windows-style (e.g.</span>
0008 <span class="comment">% 'C:\Directory\')</span>
0009 <span class="comment">%</span>
0010 <span class="comment">% Output:</span>
0011 <span class="comment">% path string with directory of file path, in Unix style (e.g.</span>
0012 <span class="comment">% '/mnt/c/Directory/')</span>
0013 <span class="comment">%</span>
0014 <span class="comment">% Uses the WSL function 'wslpath' to translate the path.</span>
0015 <span class="comment">%</span>
0016 <span class="comment">% Usage: path=getWSLpath(path)</span>
0017 [~,path]=system([<span class="string">'wsl wslpath '''</span> path <span class="string">''''</span>]);
0018 path=path(1:end-1);<span class="comment">% Remove final character (line-break)</span>
0019 <span class="keyword">end</span></pre></div>
<hr><address>Generated by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" title="Matlab Documentation in HTML">m2html</a></strong> &copy; 2005</address>
</body>
</html>
2 changes: 1 addition & 1 deletion doc/external/kegg/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1>Index for external\kegg</h1>

<h2>Matlab files in this directory:</h2>
<table>
<tr><td><img src="../../matlabicon.gif" alt="" border="">&nbsp;<a href="constructMultiFasta.html">constructMultiFasta</a></td><td>constructMultiFasta </td></tr><tr><td><img src="../../matlabicon.gif" alt="" border="">&nbsp;<a href="getGenesFromKEGG.html">getGenesFromKEGG</a></td><td>getGenesFromKEGG </td></tr><tr><td><img src="../../matlabicon.gif" alt="" border="">&nbsp;<a href="getKEGGModelForOrganism.html">getKEGGModelForOrganism</a></td><td>getKEGGModelForOrganism </td></tr><tr><td><img src="../../matlabicon.gif" alt="" border="">&nbsp;<a href="getMetsFromKEGG.html">getMetsFromKEGG</a></td><td>getMetsFromKEGG </td></tr><tr><td><img src="../../matlabicon.gif" alt="" border="">&nbsp;<a href="getModelFromKEGG.html">getModelFromKEGG</a></td><td>getModelFromKEGG </td></tr><tr><td><img src="../../matlabicon.gif" alt="" border="">&nbsp;<a href="getPhylDist.html">getPhylDist</a></td><td>getPhylDist </td></tr><tr><td><img src="../../matlabicon.gif" alt="" border="">&nbsp;<a href="getRxnsFromKEGG.html">getRxnsFromKEGG</a></td><td>getRxnsFromKEGG </td></tr></table>
<tr><td><img src="../../matlabicon.gif" alt="" border="">&nbsp;<a href="constructMultiFasta.html">constructMultiFasta</a></td><td>constructMultiFasta </td></tr><tr><td><img src="../../matlabicon.gif" alt="" border="">&nbsp;<a href="getGenesFromKEGG.html">getGenesFromKEGG</a></td><td>getGenesFromKEGG </td></tr><tr><td><img src="../../matlabicon.gif" alt="" border="">&nbsp;<a href="getKEGGModelForOrganism.html">getKEGGModelForOrganism</a></td><td>getKEGGModelForOrganism </td></tr><tr><td><img src="../../matlabicon.gif" alt="" border="">&nbsp;<a href="getMetsFromKEGG.html">getMetsFromKEGG</a></td><td>getMetsFromKEGG </td></tr><tr><td><img src="../../matlabicon.gif" alt="" border="">&nbsp;<a href="getModelFromKEGG.html">getModelFromKEGG</a></td><td>getModelFromKEGG </td></tr><tr><td><img src="../../matlabicon.gif" alt="" border="">&nbsp;<a href="getPhylDist.html">getPhylDist</a></td><td>getPhylDist </td></tr><tr><td><img src="../../matlabicon.gif" alt="" border="">&nbsp;<a href="getRxnsFromKEGG.html">getRxnsFromKEGG</a></td><td>getRxnsFromKEGG </td></tr><tr><td><img src="../../matlabicon.gif" alt="" border="">&nbsp;<a href="getWSLpath.html">getWSLpath</a></td><td>getWSLpath </td></tr></table>

<h2>Other Matlab-specific files in this directory:</h2>
<ul style="list-style-image:url(../../matlabicon.gif)">
Expand Down
Loading

0 comments on commit 6e99ef5

Please sign in to comment.