Skip to content

Commit

Permalink
Site updated: 2023-10-25 20:13:38
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangShaw committed Oct 25, 2023
1 parent 687ede9 commit b3f8345
Show file tree
Hide file tree
Showing 145 changed files with 5,144 additions and 1,174 deletions.
4 changes: 4 additions & 0 deletions 2022/06/24/Bioinfo-motif-discovery/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,10 @@ <h2 id="其他工具"><a href="#其他工具" class="headerlink" title="其他

<div class="card-action article-tags">

<a href="/tags/R/">
<span class="chip bg-color">R</span>
</a>

<a href="/tags/rstudio-server/">
<span class="chip bg-color">rstudio-server</span>
</a>
Expand Down
10 changes: 9 additions & 1 deletion 2022/09/08/rserver-change-R/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ <h1 class="description center-align post-title">rstudio-server 更换 R 内核</

<div class="article-tag">

<a href="/tags/R/">
<span class="chip bg-color">R</span>
</a>

<a href="/tags/rstudio-server/">
<span class="chip bg-color">rstudio-server</span>
</a>
Expand All @@ -393,7 +397,7 @@ <h1 class="description center-align post-title">rstudio-server 更换 R 内核</

<div class="post-date info-break-policy">
<i class="far fa-calendar-check fa-fw"></i>更新日期:&nbsp;&nbsp;
2023-10-11
2023-10-17
</div>


Expand Down Expand Up @@ -585,6 +589,10 @@ <h2 id="BiocManager-版本低"><a href="#BiocManager-版本低" class="headerlin

<div class="article-tag">

<a href="/tags/R/">
<span class="chip bg-color">R</span>
</a>

<a href="/tags/rstudio-server/">
<span class="chip bg-color">rstudio-server</span>
</a>
Expand Down
4 changes: 4 additions & 0 deletions 2022/09/09/Bioinfo-scRNA-seq1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,10 @@ <h2 id="CellRanger"><a href="#CellRanger" class="headerlink" title="CellRanger">

<div class="card-action article-tags">

<a href="/tags/R/">
<span class="chip bg-color">R</span>
</a>

<a href="/tags/rstudio-server/">
<span class="chip bg-color">rstudio-server</span>
</a>
Expand Down
29 changes: 27 additions & 2 deletions 2022/09/29/linux-common-cmd-Rmd/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ <h1 class="description center-align post-title">linux其他常用命令</h1>

<div class="post-date info-break-policy">
<i class="far fa-calendar-check fa-fw"></i>更新日期:&nbsp;&nbsp;
2023-09-09
2023-10-25
</div>


Expand Down Expand Up @@ -513,7 +513,32 @@ <h1 id="rename"><a href="#rename" class="headerlink" title="rename"></a>rename</
<p>注意:上述替换,只会发生在第一个匹配的字符串,所以感觉安装个 perl 版本的 rename 很舒服?</p>
<p>缺点是无法实现循环,按标号重命名的目的。</p>
<p>perl 版本的好处就是可以使用正则表达式</p>

<h1 id="文件-文件夹判断"><a href="#文件-文件夹判断" class="headerlink" title="文件/文件夹判断"></a>文件/文件夹判断</h1><p>判断文件是否存在</p>
<pre class="line-numbers language-bash" data-language="bash"><code class="language-bash"><span class="token keyword">if</span> <span class="token punctuation">[</span> <span class="token operator">!</span> -f <span class="token string">"<span class="token variable">$file</span>"</span> <span class="token punctuation">]</span><span class="token punctuation">;</span> <span class="token keyword">then</span> <span class="token builtin class-name">echo</span> <span class="token string">"file not exist"</span><span class="token punctuation">;</span> <span class="token keyword">fi</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>

<p>判断文件是否为空</p>
<pre class="line-numbers language-bash" data-language="bash"><code class="language-bash"><span class="token keyword">if</span> <span class="token punctuation">[</span> <span class="token operator">!</span> -s <span class="token string">"<span class="token variable">$file</span>"</span> <span class="token punctuation">]</span><span class="token punctuation">;</span> <span class="token keyword">then</span> <span class="token builtin class-name">echo</span> <span class="token string">"file is NULL"</span><span class="token punctuation">;</span> <span class="token keyword">fi</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>

<pre class="line-numbers language-bash" data-language="bash"><code class="language-bash">–b 当file存在并且是块文件时返回真
-c 当file存在并且是字符文件时返回真
-d 当pathname存在并且是一个目录时返回真
-e 判断对象是否存在
-f 判断对象是否存在,并且为常规文件
-L 判断对象是否存在,并且为符号链接
-h 判断对象是否存在,并且为软链接
-k 当由pathname指定的文件或目录存在并且设置了“粘滞”位时返回真
-p 当file存在并且是命令管道时返回为真
-r 当由pathname指定的文件或目录存在并且可读时返回为真
-s 判断对象是否存在,并且长度不为0
-r 判断对象是否存在,并且可读
-u 当由pathname指定的文件或目录存在并且设置了SUID位时返回真
-w 判断对象是否存在,并且可写
-o 当由pathname指定的文件或目录存在并且被子当前进程的有效用户ID所指定的用户拥有时返回真
-x 判断对象是否存在,并且可执行
-O 判断对象是否存在,并且属于当前用户
-G 判断对象是否存在,并且属于当前用户组
-nt 判断file1是否比file2新
-ot 判断file1是否比file2旧<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>

</div>
<hr/>
Expand Down
34 changes: 12 additions & 22 deletions 2023/10/12/R-library-install/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -838,18 +838,17 @@ <h1 class="description center-align post-title">R 包安装</h1>
<article id="prenext-posts" class="prev-next articles">
<div class="row article-row">

<div class="article col s12 m6" data-aos="fade-up" data-aos="fade-up">
<div class="article col s12 m6" data-aos="fade-up">
<div class="article-badge left-badge text-color">
<i class="far fa-dot-circle"></i>&nbsp;本篇
</div>
<i class="fas fa-chevron-left"></i>&nbsp;上一篇</div>
<div class="card">
<a href="/2023/10/12/R-library-install/">
<a href="/2023/10/20/R-script-edit/">
<div class="card-image">


<img src="/medias/featureimages/27.jpg" class="responsive-img" alt="R 包安装">
<img src="/medias/featureimages/18.jpg" class="responsive-img" alt="R 脚本编写指南">

<span class="card-title">R 包安装</span>
<span class="card-title">R 脚本编写指南</span>
</div>
</a>
<div class="card-content article-content">
Expand All @@ -859,9 +858,9 @@ <h1 class="description center-align post-title">R 包安装</h1>

</div>
<div class="publish-info">
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2023-10-12
</span>
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2023-10-20
</span>
<span class="publish-author">

<i class="fas fa-bookmark fa-fw icon-category"></i>
Expand All @@ -874,24 +873,15 @@ <h1 class="description center-align post-title">R 包安装</h1>
</span>
</div>
</div>


<div class="card-action article-tags">

<a href="/tags/devtools/">
<span class="chip bg-color">devtools</span>
</a>

<a href="/tags/tidyverse/">
<span class="chip bg-color">tidyverse</span>
</a>

<a href="/tags/leafcutter/">
<span class="chip bg-color">leafcutter</span>
<a href="/tags/R/">
<span class="chip bg-color">R</span>
</a>

<a href="/tags/BiocManager/">
<span class="chip bg-color">BiocManager</span>
<a href="/tags/script/">
<span class="chip bg-color">script</span>
</a>

</div>
Expand Down
Loading

0 comments on commit b3f8345

Please sign in to comment.