• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
萧飒
Do it right and do it now
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 7 下一页

2021年9月1日

交互或批量计算区间内基因数目(while read)
摘要: ###1.交互状态 #!/bin/bash #count genes in region,need three para #author lee if [ $# -ne 3 ] then echo "Usage chr start end" else num=$(awk -v chr=$1 -v s 阅读全文
posted @ 2021-09-01 16:15 萧飒 阅读(108) 评论(0) 推荐(0)
 
曼哈顿图绘制-qqman-CMplot-ggplot(强推)-多个性状-区间放大-批量注释(更改SNP名称为基因名,或添加新列进行自定义注释)
摘要: if(!require("qqman"))install.packages("qqman") if(!require("CMplot"))install.packages("CMplot") library(qqman) #library(CMplot) library(tidyverse) set 阅读全文
posted @ 2021-09-01 10:46 萧飒 阅读(1556) 评论(0) 推荐(0)
 
 

2021年8月31日

统计文件某列各项或某项出现次数(VCF文件中每个染色体信息)
摘要: #!/bin/bash grep -v ^# $i|awk '{sum[$1+=1]END{for(i in sum)print i"\t" sum[i]}' >chr_info #按大小排序 sort -n chr_info #某列求和 awk '{sum +=$2;END {print sum} 阅读全文
posted @ 2021-08-31 21:05 萧飒 阅读(195) 评论(0) 推荐(0)
 
 

2021年8月30日

LDdecay按照染色体分开画
摘要: .: read.table("Fig_chr1_wild_africa.bin")->data1read.table("Fig_chr2_wild_africa.bin")->data2read.table("Fig_chr3_wild_africa.bin")->data3read.table(" 阅读全文
posted @ 2021-08-30 17:43 萧飒 阅读(117) 评论(0) 推荐(0)
 
R语言数据处理60题
摘要: #author lee #date 2021.8.26 library(tidyverse) #1创建数据 df <- data.frame( "grammer" = c("Python","C","Java","GO",NA,"SQL","PHP","Python"), "score" = c(1 阅读全文
posted @ 2021-08-30 17:07 萧飒 阅读(522) 评论(0) 推荐(0)
 
 

2021年8月26日

shell 下实现VLOOKUP
摘要: #!/bin/bash #vlookup #author lee #date 2021.8.26 if [ $# -ne 2 ] then echo "File number supplied is not right" echo "Input File1 that have your info" 阅读全文
posted @ 2021-08-26 17:43 萧飒 阅读(273) 评论(0) 推荐(0)
 
 

2021年8月25日

plink-pca分析
摘要: #!/bin/bash plink --bfile ../cold/cold.filter --pca 2 --out 2pc https://zhuanlan.zhihu.com/p/357759550 向mrMLM包中添加主成分,需要加两行header 阅读全文
posted @ 2021-08-25 10:29 萧飒 阅读(144) 评论(0) 推荐(0)
 
 

2021年8月24日

群体结构分析admixture
摘要: #PBS -N admixture #PBS -l nodes=1:ppn=12 #PBS -q middle cd $PBS_O_WORKDIR for K in {1..15}; do ~/biosoft/dist/admixture_linux-1.3.0/admixture -j12 --c 阅读全文
posted @ 2021-08-24 18:53 萧飒 阅读(265) 评论(0) 推荐(0)
 
从ID到GWAS
摘要: #!/bin/bash #use id to keep vcf and hmp #author leee #time 2021.8.23 echo "Input ID_file as args1 and Phenofile as args2!" >>${1}.log echo "Your ID_fi 阅读全文
posted @ 2021-08-24 10:26 萧飒 阅读(84) 评论(0) 推荐(0)
 
 

2021年8月20日

mrMLM-qsub
摘要: 注意表型首行使用标签<Trait> 脚本mrmlm.r #!/public/home/caisl/biosoft/miniconda3/envs/r4.1/bin/R library('mrMLM') mrMLM(fileGen='184.hmp.txt',filePhe='pheno',Genfo 阅读全文
posted @ 2021-08-20 23:48 萧飒 阅读(173) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 7 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3