Chevy Blog

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

使用 fontmod 为 win32 应用程序自定义字体(转载)

本文由 简悦 SimpRead 转码, 原文地址 sspai.com 六年后的今天,水深火热的 Windows 用户依旧要为 Windows 上一些使用着古老技术的客户端糟糕的字体渲染买单。 Matrix 精选 Matrix 是少数派的写作社区,我们主张分享真实的产品体验,有实用价值的经验与思考。我们会不定期挑选 Matrix 最优质的文章,展示来自用户的最真实的体验和...

Mass Spec Compound Analysis

含烟惹雾每依依,万绪千条拂落晖。

Load Data # Load the merged mass spectrometry data and compound scaffold group data ms_data_merged <- readRDS("ms_data_merged.Rds") cpds_scaffold_group <- readRDS("cpds_lscaffold_group.Rds")...

A dotplot with outlier

You can sense the passage of time through the record.

Data Preparation Load the dataset and adjust outliers in IC50 values. Replace any value of 1000 in the IC50 column with a calculated outlier value. data <- readxl::read_excel("ic50.xlsx", shee...

Scripts for MD5 check

笑抚江南竹根枕,一樽呼起鼻中雷。[对酒 宋 陈与义]

本次想要记录使用shell或者python对指定目录下的文件进行md5完整性检验 md5文件一般都会保存在对应文件的相同目录下,需要针对多个子目录挨个进行md5sum -c的话未免有点麻烦。 需要cd到子文件夹下进行md5sum -c 所以函数式样的编程就很方便。 主体思考 对每个文件生成md5,并和已经存在的md5进行比较,如果相同就可以print Pass shell...

Different Length List to Dataframe in R

故人何不返,春花复应晚。

1. Set a demo list # Your input list gene_list <- list( GeneListA = c("A", "B", "C", "D", "E", "F"), GeneListB = c("A", "F", "H"), GeneListC = c("A", "C", "D", "H"), GeneListD = NA ) p...

Bowtei2_Hisat2_pip_to_bam_files

芳林新叶催陈叶,流水前波让后波。

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 copy the stderr st...

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语言全栈...