坐山雕

导航

2021年1月13日

档案

摘要: 中国(北京)国际人才开发中心 第 三人力资源部 电话:010-51607600 地址:北京市海淀区阜成路 58 号新 洲商务大厦 6 层(100048) 010-62563009 阅读全文

posted @ 2021-01-13 12:10 坐山雕 阅读(40) 评论(0) 推荐(0) 编辑

ubuntu adduser sudo

摘要: sudo adduser jingkai sudo usermod -aG sudo jingkai 阅读全文

posted @ 2021-01-13 11:16 坐山雕 阅读(57) 评论(0) 推荐(0) 编辑

IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

摘要: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! SSH连接时出现Host key verification failed的原因及解决方法 vi ~/.ssh/known_hosts 阅读全文

posted @ 2021-01-13 11:12 坐山雕 阅读(81) 评论(0) 推荐(0) 编辑

2021年1月11日

pheatmap in R. How to get clusters

摘要: res=RES$i DF<-data.frame("A","B",stringsAsFactors = FALSE) for (i in 1:length(res$tree_row$order)){ ROW_CLUSTER_ORDER=i ROW_CLUSTER_NAME=res$tree_row$ 阅读全文

posted @ 2021-01-11 13:43 坐山雕 阅读(57) 评论(0) 推荐(0) 编辑

2021年1月10日

R split column

摘要: ROW_ORDER<-data.frame("Factory_Order"=as.integer(PHEAT_CLU$tree_row$order), "ori_Factory_Names"=as.character(PHEAT_CLU$tree_row$labels)) ROW_ORDER$ORD 阅读全文

posted @ 2021-01-10 13:51 坐山雕 阅读(76) 评论(0) 推荐(0) 编辑

shiny server One main panel and 2 side panels

摘要: library(shiny) ui <- shinyUI(fluidPage( titlePanel("Old Faithful Geyser Data"), fluidRow( column(2, sliderInput("bins", "Number of bins:", min = 1, ma 阅读全文

posted @ 2021-01-10 11:32 坐山雕 阅读(53) 评论(0) 推荐(0) 编辑

How can you show the rownames in pheatmap on the left side of the graph?

摘要: library(pheatmap)library(grid)library(gtable) colors = c(seq(-5,-1,length=1000),seq(-.999999,.999999,length=1000),seq(1, 5,length=1000))my_palette <- 阅读全文

posted @ 2021-01-10 11:05 坐山雕 阅读(285) 评论(1) 推荐(0) 编辑

Shiny R aligning buttons

摘要: div(style="display:inline-block",submitButton("Analysis"), style="float:right"), div(style="display:inline-block",downloadButton('downloadData', 'Down 阅读全文

posted @ 2021-01-10 10:42 坐山雕 阅读(45) 评论(0) 推荐(0) 编辑

2021年1月8日

python dict by value

摘要: for w in sorted(d, key=d.get, reverse=True): print(w, d[w]) 阅读全文

posted @ 2021-01-08 10:44 坐山雕 阅读(48) 评论(0) 推荐(0) 编辑

2021年1月7日

Save the History of Your Work in R

摘要: savehistory(file = "Chapter3.Rhistory") savehistory(file = "Chapter3.Rhistory") 阅读全文

posted @ 2021-01-07 21:09 坐山雕 阅读(47) 评论(0) 推荐(0) 编辑

2021年1月6日

boxplot

摘要: IN="TEST2.bdg.valpeak.tsv"FIN=read.table(IN,header=FALSE)print(head(FIN))DV<-data.frame(FIN[which(FIN$V3 == -1),])DP<-data.frame(FIN[which(FIN$V3 == 1 阅读全文

posted @ 2021-01-06 12:07 坐山雕 阅读(93) 评论(0) 推荐(0) 编辑

Box Plot in Python using Matplotlib

摘要: import matplotlib.pyplot as plt import numpy as np # Creating dataset np.random.seed(10) data_1 = np.random.normal(100, 10, 200) data_2 = np.random.no 阅读全文

posted @ 2021-01-06 11:58 坐山雕 阅读(69) 评论(0) 推荐(0) 编辑

sshfs远程挂载

摘要: sshfs远程挂载 1 2 3 4 5 #常用命令 sshfs -o nonempty,reconnect,allow_other,exec -p22 zjy@172.21.0.10:/data/zjy /data/zjy cat /etc/fstab sshfs#zjy@172.21.0.10:/ 阅读全文

posted @ 2021-01-06 11:06 坐山雕 阅读(164) 评论(0) 推荐(0) 编辑

Find peaks and valleys in dataset

摘要: import numpy as np import matplotlib.pyplot as plt %matplotlib inline # example data with peaks: x = np.linspace(-1,3,1000) data = -0.1*np.cos(12*x)+ 阅读全文

posted @ 2021-01-06 10:51 坐山雕 阅读(70) 评论(0) 推荐(0) 编辑

2021年1月4日

save_pheatmap_pdf

摘要: save_pheatmap_pdf <- function(x, filename, width=7, height=7) { stopifnot(!missing(x)) stopifnot(!missing(filename)) pdf(filename, width=width, height 阅读全文

posted @ 2021-01-04 13:16 坐山雕 阅读(144) 评论(0) 推荐(0) 编辑

2021年1月3日

Shiny-server的安装及初步使用

摘要: https://www.bioinfo-scrounger.com/archives/98/ 安装Shiny 安装R sudo apt install r-base 安装Rstudio-server sudo apt-get install gdebi-core sudo apt-get insta 阅读全文

posted @ 2021-01-03 10:34 坐山雕 阅读(564) 评论(0) 推荐(0) 编辑

install R 4.0 in ubuntu

摘要: #1 清除R3先 sudo apt-get --purge remove r-base sudo apt-get --purge remove r-base-core sudo apt-get --purge remove r-base-dev ##1.1 remove rstudio sudo d 阅读全文

posted @ 2021-01-03 09:03 坐山雕 阅读(201) 评论(0) 推荐(0) 编辑

2020年12月31日

ruan shinny in mac

摘要: #/bin/bash ABSPATH=$(dirname /${0#\/}) cd $ABSPATH pwd R --slave --no-restore -e 'print(getwd());shiny::runApp("VLOUPE.R",launch.browser=TRUE)' 阅读全文

posted @ 2020-12-31 16:37 坐山雕 阅读(26) 评论(0) 推荐(0) 编辑

2020年12月29日

tree list in R

摘要: write.csv(data.frame(list.files("/DIR/DIR/", all.files = TRUE,recursive = TRUE,full.names = TRUE)),file="/DIR/DIR/CSV.csv") list.dirs("/DIR/DIR/", ful 阅读全文

posted @ 2020-12-29 13:01 坐山雕 阅读(48) 评论(0) 推荐(0) 编辑

react-treeview. tree view of directory

摘要: https://github.com/chenglou/react-treeview install npm: sudo yum install nodejs# centos apt-get install npm #ubuntu React-treeview Easy, light, flexib 阅读全文

posted @ 2020-12-29 12:48 坐山雕 阅读(158) 评论(0) 推荐(0) 编辑

ggplot plot summary table

摘要: DATA=RSUM$ROWSUM FDATA<-data.frame(round(unclass(summary(DATA)),2), check.names = FALSE, stringsAsFactors = FALSE) colnames(FDATA)<-"values" grid.arra 阅读全文

posted @ 2020-12-29 12:14 坐山雕 阅读(63) 评论(0) 推荐(0) 编辑

ggplot test

摘要: library(ggpubr)my_comparisons <- list( c("0.5", "1"), c("1", "2"), c("0.5", "2") )options(repr.plot.width=4, repr.plot.height=4)ggplot(ToothGrowth, ae 阅读全文

posted @ 2020-12-29 11:56 坐山雕 阅读(77) 评论(0) 推荐(0) 编辑

Ubuntu 18.04 安装R 4.0.2 和Rstudio server

摘要: 1、软件源文件,添加CRAN源(默认安装成功是R3.4版本,使用这个方法更新也是可以的) sudo vim /etc/apt/sources.list添加一行cran源,网上有人推荐清华的源,但是我试了,不好用,还是阿里云这个好用deb http://mirrors.aliyun.com/CRAN/ 阅读全文

posted @ 2020-12-29 11:22 坐山雕 阅读(289) 评论(0) 推荐(0) 编辑

how to find out R library location in Mac OSX?

摘要: 28 With .Library you get your default library locationWith .libPaths("your/path") you can also get/set you library trees (see ?.libPaths)and with getw 阅读全文

posted @ 2020-12-29 10:49 坐山雕 阅读(45) 评论(0) 推荐(0) 编辑

Shiny allows you to build interactive web apps from R. This file explains how to run Shiny in CoCalc

摘要: https://doc.cocalc.com/howto/shiny-server.html Create a new file kmeans.r Split the editor and open up a Linux Terminal in one frame – see Frame Edito 阅读全文

posted @ 2020-12-29 10:47 坐山雕 阅读(61) 评论(0) 推荐(0) 编辑

install rstudio server in ubuntu20

摘要: Rstudio 各种版本下载网页 https://rstudio.com/products/rstudio/download/preview/ sudo apt upgrade sudo apt update ## https://rstudio.com/products/rstudio/downl 阅读全文

posted @ 2020-12-29 10:40 坐山雕 阅读(235) 评论(0) 推荐(0) 编辑

scp a folder a port

摘要: ssh mike@10.20.1.109 -p 2222 scp -P 2222 -r /FIN mike@10.20.1.109:/home/mike 阅读全文

posted @ 2020-12-29 10:06 坐山雕 阅读(44) 评论(0) 推荐(0) 编辑

2020年12月27日

NextCloud 最新官方源代码安装包及客户端下载

摘要: https://blog.csdn.net/liujinbao8000/article/details/81365937 阅读全文

posted @ 2020-12-27 14:55 坐山雕 阅读(359) 评论(0) 推荐(0) 编辑

How To Install MySQL 8.0 In Ubuntu 18.04

摘要: https://phoenixnap.com/kb/how-to-install-mysql-on-ubuntu-18-04 阅读全文

posted @ 2020-12-27 14:27 坐山雕 阅读(31) 评论(0) 推荐(0) 编辑

find: ‘/run/user/1000/gvfs’: Permission denied解决办法

摘要: linux使用命令 find / -name *** 查找文件的时候会遇到以下报错 find: ‘/run/user/1000/gvfs’: Permission denied 明明用的是root用户,为什么权限不足呢? 官方说这是一个bug——bug#615848. 原因是FUSE文件系统和权限不 阅读全文

posted @ 2020-12-27 14:17 坐山雕 阅读(782) 评论(0) 推荐(0) 编辑

open ssh in ubuntu

摘要: apt-get install openssh-server 阅读全文

posted @ 2020-12-27 13:52 坐山雕 阅读(39) 评论(0) 推荐(0) 编辑

内网docker安装collabora

摘要: 安装介绍: 本机IP:192.168.1.13,虚拟机地址IP:192.168.33.15 1、安装collabora镜像 docker pull collabora/code 2、运行collabora镜像 docker run -t -d -p 0.0.0.0:9980:9980 -e 'dom 阅读全文

posted @ 2020-12-27 10:06 坐山雕 阅读(1964) 评论(2) 推荐(0) 编辑

IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

摘要: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 阅读全文

posted @ 2020-12-27 09:57 坐山雕 阅读(237) 评论(0) 推荐(0) 编辑

Ubuntu 20.04修改ip地址

摘要: sudo vi /etc/netplan/00-installer-config.yaml network: ethernets: ens33: #配置的网卡的名称 addresses: [192.168.31.215/24] #配置的静态ip地址和掩码 dhcp4: no #关闭DHCP,如果需要 阅读全文

posted @ 2020-12-27 09:35 坐山雕 阅读(1429) 评论(0) 推荐(0) 编辑