Chevy Blog

射,有似乎君子,失诸正鹄,反求诸其身。

Bowtei2_Hisat2_pip_to_bam_files

using | and tee to reduce tmp files

#!/bin/bash # PROBLEM: want to preseve the terminal output from bowtie2, but also copy the stderr from bowtie into a separate file # SOLUTION: use `tee` along with some bash stream redirection to ...

Create your R package

(Connect Rstudio to Github and push project to Github)

1. Use Rstudio to create a new project for package Reference:R Package Development > Start from a brand new environment. 2. Connecting Rstudio to Github Reference:how-to-use-git-github-with-r...

group pvalue calculation and visualization using rstatix and ggpubr

Add color to life.

1. Get example data library(tidyverse) library(rstatix) example <- tibble::tibble( para = rnorm(n = 30, mean = 300, sd = 20) %>% round(digits = 2), dose = rep(rep(c("dose_1", "dose_2...

ggplot2_plot_raster

一悟归身处,何山路不通。

Shwo how to ggplot2 using stat_density 使用geom_raster来画这张图 Reference: https://ggplot2.tidyverse.org/reference/geom_tile.html library(tidyverse) ## ── Attaching core tidyverse packages ─────...

春晖の学习资源整合

秋色从西来,苍然满关中。

引言 对于看到过的很棒的R语言学习网站,现予以整理,以待后览 Topic Description Link 学习网站     用rmarkdown定制你的数据分析报告 - 今日使用mageck有感- 我要做R语言全栈...

How to calculate correlation R2 and slope

不采百花,难酿好蜜。

Using rstatix do quick calculation library(tidyverse) library(rstatix) iris %>% group_by(Species) %>% cor_test(Sepal.Width, Sepal.Length, method = "pearson") ## # A tibble: 3 × 9 ## ...

Posting Rmarkdowns to your Jekyll website

蟠木不雕饰,且将斤斧疏。

前言 最近习惯使用rmarkdown来写东西,主要好处是能够兼容图片,还可以一键推送到RPubs。 但是rmakrdown写完以后,遇到一个问题,以往使用markdown写的记录,可以很方便的转到Jekyll里面的post生成blog用于记录和分享,rmakrdown是不兼容的,但是保留脚本生成的图片其实还是我的刚需,所以就Jekyll和rmarkdown的联通做了一些搜索,予以记...

Install Rstudio Server introduction

君子欲讷于言而敏于行。

本文由 简悦 SimpRead 转码, 原文地址 claudiu.psychlab.eu Tutorials from Claudiu’s blog Install R (r-base) 1. Install helper software software-properties-common and dirmngr software-properties-c...

Rstatix calculate correlation R2 and slope

君子欲讷于言而敏于行。

测试在R里面,使用tidyverse搭配rstatix更简便的做计算,例如t.test()/cor() library(tidyverse) library(rstatix) iris %>% group_by(Species) %>% cor_test(Sepal.Width, Sepal.Length, method = "pearson") bdims_sum...

SPR数据的建模及作图

转载学习来源

本文由 简悦 SimpRead 转码, 原文地址 stackoverflow.com I am trying to fit association-dissociation SPR kinetics data for a protein and small molecule for two concentrations using ggplot2. The data is here...