forked from SysBioChalmers/RAVEN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: getWSLpath to get Unix path in Windows
- Loading branch information
Showing
10 changed files
with
687 additions
and
612 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 © 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> > <a href="../index.html">external</a> > <a href="index.html">kegg</a> > getWSLpath.m</div> | ||
|
||
<!--<table width="100%"><tr><td align="left"><a href="../../index.html"><img alt="<" border="0" src="../../left.png"> Master index</a></td> | ||
<td align="right"><a href="index.html">Index for external\kegg <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> © 2005</address> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.