生信分析常用脚本(二)--SOAPdenovo
1.SOAPDenovo配置文件示例
软件下载安装和使用:http://soap.genomics.org.cn/soapdenovo.html
asm.cfg
#maximal read length
max_rd_len= [LIB]
avg_ins=450 #if sequence needs to be reversed
reverse_seq=0 #in which part(s) the reads are used
asm_flags=3 #use only first 100 bps of each read
rd_len_cutoff=100 #in which order the reads are used while scaffolding
rank=1 # cutoff of pair number for a reliable connection (at least 3 for short insert size)
pair_num_cutoff=
#minimum aligned length to contigs for a reliable read location (at least 32 for short insert size)
map_len=32
#a pair of fastq file, read 1 file should always be followed by read 2 file
q1=../../data/newBGIseq500_1.fq.gz
q2=../../data/newBGIseq500_2.fq.gz
运行脚本:
run.sh
/home/stu2/Software/Assemblathon1_pipeline/SOAPdenovo-63mer_v2. all -s asm.cfg -K -p -R -o asm >cout.log >cerr.log
./SOAPdenovo-63mer_v2. pregraph -K -s asm.cfg -o asm -p >pregraph.log >pregraph.err
./SOAPdenovo-63mer_v2. contig -s asm.cfg -g asm -M -e -p -R -D >contig.log >contig.err
./SOAPdenovo-63mer_v2. map -s asm.cfg -g asm -k -p >map.log >map.err
./SOAPdenovo-63mer_v2. scaff -g asm -p -F >scaff.log >scaff.err
02. VCFtools的使用
软件下载和使用:
https://vcftools.github.io/documentation.html
https://vcftools.github.io/man_latest.html
# get Qual
./vcftools --gzvcf chr17.vcf.gz --site-quality --out Qual
# get interval
./vcftools --gzvcf chr17.vcf.gz --chr chr17 --from-bp --to-bp --remove-indels --out TP53 --recode
03.变异位点信息统计
#!/usr/bin/perl
use strict; my $file = shift; open(In,"gzip -dc $file|") or die ("can't open the file!\n"); my @type;
my @array = ( );
while(<In>){
chomp;
next if (/^##/);
if (/^#/){
my @line = split;
push @type, $line[];
push @type, $line[];
push @type, $line[];
next;
}
my @line = split;
if ($line[] >= && $line[] <= && $line[] ne "."){
my @type1 = split(/\/|:/, $line[]);
my @type2 = split(/\/|:/, $line[]);
my @type3 = split(/\/|:/, $line[]);
#print "$type1[0]\t$type1[1]\n";
if ($type1[]==$type1[]){
$array[][] ++;
}else{
$array[][] ++;
}
if ($type2[] == $type2[]){
$array[][] ++;
}else{
$array[][] ++;
}
if($type3[] == $type3[]){
$array[][] ++;
}else{
$array[][] ++;
}
}
}
close IN; print "Sample\tHomozygous\tHeterozygote\n";
print "$type[0]: $array[0][0]\t$array[0][1]\n";
print "$type[1]: $array[1][0]\t$array[1][1]\n";
print "$type[2]: $array[2][0]\t$array[2][1]\n";
04. KmerFreq使用脚本
工具包地址:ftp://public.genomics.org.cn/BGI/SOAPdenovo2
kmer.sh
./kmerfreq -k -l lib.list -t >17mer.freq >17mer.log
lib.list
reads1.fq.gz
reads2.fq.gz
友情参考链接:http://20xue.com/3997.html,https://www.cnblogs.com/azrael-cc/
生信分析常用脚本(二)--SOAPdenovo的更多相关文章
- MS SQL 日常维护管理常用脚本(二)
监控数据库运行 下面是整理.收集监控数据库运行的一些常用脚本,也是MS SQL 日常维护管理常用脚本(一)的续集,欢迎大家补充.提意见. 查看数据库登录名信息 Code Snippet SELEC ...
- 监控数据库运行 - MS SQL 日常维护管理常用脚本(二)
查看数据库登录名信息 use mastergoSELECT name AS LoginName , dbname AS DefaultDB , createdate AS CreateDate, up ...
- 生信基础知识【04】GO和pathway分析
非原创 参考资料: 一文掌握GO和pathway分析 - 生物信息学讨论版 -丁香园论坛http://www.dxy.cn/bbs/thread/34904124#34904124 GO富集 GO是G ...
- 精心整理(含图版)|你要的全拿走!(R数据分析,可视化,生信实战)
本文首发于“生信补给站”公众号,https://mp.weixin.qq.com/s/ZEjaxDifNATeV8fO4krOIQ更多关于R语言,ggplot2绘图,生信分析的内容,敬请关注小号. 为 ...
- 常用脚本语言Perl,Python,Ruby,Javascript一 Perl,Python,Ruby,Javascript
常用脚本语言Perl,Python,Ruby,Javascript一 Perl,Python,Ruby,Javascript Javascript现阶段还不适合用来做独立开发,它的天下还是在web应用 ...
- (转载)shell日志分析常用命令
shell日志分析常用命令总结 时间:2016-03-09 15:55:29来源:网络 导读:shell日志分析的常用命令,用于日志分析的shell脚本,统计日志中百度蜘蛛的抓取量.抓取最多的页面.抓 ...
- wavecom短信猫常用AT命令
wavecom短信猫常用AT命令 一.一般命令 1. AT+CGMI 给出模块厂商的标识. 2. AT+CGMM 获得模块标识.这个命令用来得到支持的频带 (GSM 900,DCS 1800 或PCS ...
- 游戏编程之Unity常用脚本类的继承关系
前言学习Unity开发引擎的初学者会接触大量的脚本类,而这些类之间的关系往往容易被忽略.本文对Unity引擎开发中的一些常用类及其关系进行了简单的归纳总结. 博文首发地址:http://tieba.b ...
- oracle 常用脚本以及语句
oracle 常用脚本以及语句 一.oracle 安装10G 单机初始化环境: #!/bin/bash #关闭selinuxsed -i 's\SELINUX=enforcing\SELINUX=di ...
随机推荐
- git 推送远程仓库和删除远程仓库文件
提交到远程仓库需要现在GitHub或gitlab上创建项目,然后才能连接到远程仓库 1.连接远程仓库 # git remote add origin https://github.com/xxxxx ...
- Eclipse配置“运行时依赖路径”
Python项目 本地有项目A,项目B,项目A,依赖项目B,在eclipse中,将项目B的路径添加到项目A的PYTHONPATH中. Java项目Build path(略)
- 详细解说Windows 8.1与Windows 8的区别(Win8.1与Win8区别)
详细解说Windows 8.1与Windows 8的区别(Win8.1与Win8区别) 本文转自“吾乐吧软件站”,原文链接:http://www.wuleba.com/?p=23082 最近,吾乐吧软 ...
- 初次安装Ubuntu后的若干配置步骤
第一步,安装VMware-tools 按照如下提示安装 首先将压缩包,复制到/home 目录下,将其解压,执行./vmware-install.pl即可 第二步,配置使linux能上网 首先将ubun ...
- 查询最新记录的sql语句效率对比
在工作中,我们经常需要检索出最新条数据,能够实现该功能的sql语句很多,下面列举三个进行效率对比 本次实验的数据表中有55万条数据,以myql为例: 方式1: SELECT * FROM t_devi ...
- 在windows 10 上使用aspnet_regiis.exe -i 命令报 “此操作系统版本不支持此选项” 的解决办法
用CMD窗口在C:\Windows\Microsoft.NET\Framework64\v4.0.30319下使用命令aspnet_regiis -i 报错: “此操作系统版本不支持此选项” .结果是 ...
- 如何更改Audition的界面颜色
如何更改Audition的界面颜色_百度经验 https://jingyan.baidu.com/article/77b8dc7fce2c6a6174eab6f6.html
- HTML的基础样式之CSS
一.初始CSS 1.1.介绍CSS 1.CSS定义如何显示HTML元素. 2.当浏览器读到一个样式表,他就会按照这个样式表来对文档进行格式化(渲染). 1.2.CSS语法 每个CSS样式由两个组成部分 ...
- ES6-你不知道的箭头函数
一谈到ES6的箭头函数,大家可能想到的优点就是语法更简洁,因为去掉了return.function.{}等输入. 但是设计者果真就是出于简洁的目的推出的箭头函数吗?显然不是. => 箭头函数 ...
- python day03笔记总结
2019.3.29 S21 day03笔记总结 昨日回顾及补充 1.运算符补充 in not in 2.优先级 运算符与运算符之间也有优先级之分 今日内容 一.整型(int) py2 与 py3 的区 ...