上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 31 下一页

2019年10月27日

R 常用代码段

摘要: #用来根据不同的细胞来源重新画TSNE图cell_source <-colnames(immune_nobatch) cell_type <- strsplit(cell_source,split = '_') ct <-rep(c('N'), times = length(cell_source)) for( i in 1:length(cell_source)){ ct[i] = ... 阅读全文

posted @ 2019-10-27 13:29 若流芳千古 阅读(418) 评论(0) 推荐(0)

2019年10月24日

Windows+anaconda+jupyter notebook+R+python3.6

摘要: Windows+anaconda+jupyter notebook+R+python3.6 环境配置 1. 设置国内清华大学镜像 打开 anaconda prompt,输入命令 conda config --add channels https://mirrors.tuna.tsinghua.edu 阅读全文

posted @ 2019-10-24 17:02 若流芳千古 阅读(363) 评论(0) 推荐(0)

2019年10月22日

latex beamer技巧

摘要: 下面是整个ppt的模板 \documentclass[10pt, aspectratio=43]{beamer} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{verbatim} \usepackage{ams 阅读全文

posted @ 2019-10-22 15:30 若流芳千古 阅读(3640) 评论(2) 推荐(0)

2019年10月18日

LSTM细节

摘要: 为什么使用tanh? 为了克服梯度消失问题,我们需要一个二阶导数在趋近零点之前能维持很长距离的函数。tanh是具有这种属性的合适的函数。 为什么要使用Sigmoid? 由于Sigmoid函数可以输出0或1,它可以用来决定忘记或记住信息。 阅读全文

posted @ 2019-10-18 20:03 若流芳千古 阅读(184) 评论(0) 推荐(0)

2019年10月16日

R Seurat 单细胞处理pipline 代码

摘要: 1 options(stringsAsFactors = F ) 2 rm(list = ls()) 3 library(Seurat) 4 library(dplyr) 5 library(ggplot2) 6 library(Hmisc) 7 library(pheatmap) 8 #读入数据 9 10 11 #合并gene去batch 12 expr_1 <- readRDS("C:/Gu_ 阅读全文

posted @ 2019-10-16 09:31 若流芳千古 阅读(2320) 评论(0) 推荐(0)

2019年10月12日

R 大小写转换

摘要: >x = "CAGTTTCTTGAGTCTGATTAATTCAGGTTTCGGGGT"#定义字符串变量x>tolower(x)[1] "cagtttcttgagtctgattaattcaggtttcggggt"#将x中的字符全部转换为小写字母>y = tolower(x)>y[1] "cagtttc 阅读全文

posted @ 2019-10-12 09:31 若流芳千古 阅读(1468) 评论(0) 推荐(0)

2019年10月9日

ACM 求全排列(字典序、邻位对换、递增进位制数,递减进位制数)

摘要: 字典序:(联合康托展开就也可以按照中介数求) 邻位对换、递增进位制数,递减进位制数:具体的实现和算法讲解如下: 代码。。C++版的实现并不好。。因为是挨个向后找的,如果K很大的时候会超时,不过。。。思路是这样。。。,第二版C++没有完成。。。因为不想写了,思路很简单,一次加减K就可以了 python 阅读全文

posted @ 2019-10-09 22:21 若流芳千古 阅读(1009) 评论(0) 推荐(0)

2019年9月18日

R 配色(挑花眼的色卡19色)

摘要: 效果如下: 20色: 24色 阅读全文

posted @ 2019-09-18 16:14 若流芳千古 阅读(2510) 评论(1) 推荐(0)

2019年9月15日

R which

摘要: 1 setwd("E:/courses/molecular biology/homework1st") 2 genes <- read.table('genes.txt',sep = '\t',header = T) 3 4 chrID<-c("chr1","chr2","chr3","chr4","chr5","chr6","chr7","chr8","chr9 阅读全文

posted @ 2019-09-15 17:24 若流芳千古 阅读(325) 评论(0) 推荐(0)

2019年9月14日

Leetcode 17. Letter Combinations of a Phone Number(水)

摘要: 17. Letter Combinations of a Phone Number Medium Medium Given a string containing digits from 2-9 inclusive, return all possible letter combinations t 阅读全文

posted @ 2019-09-14 09:45 若流芳千古 阅读(199) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 31 下一页

导航