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.htmlhttps://www.cnblogs.com/azrael-cc/

最新文章

  1. POJ 1979 Red and Black【DFS】
  2. AngularJS开发之_指令
  3. 【转】c++中引用的全方位解读
  4. HDU 4911 http://acm.hdu.edu.cn/showproblem.php?pid=4911(线段树求逆序对)
  5. routing decisions based on paths, network policies, or rule-sets configured by a network administrator
  6. Wordpress制作sidebar.php
  7. SQL带参数拼接
  8. android 安全退出应用程序的几种方法
  9. 与Scheme共舞
  10. 汇编写下strcpy
  11. Markdown写作
  12. iOS开发实战-卫P嗯上网项目
  13. MySQL(七)MySQL常用函数
  14. Spring--FileSystemXmlApplicationContext
  15. 【spring】-- 手写一个最简单的IOC框架
  16. 有效的括号序列——算法面试刷题4(for google),考察stack
  17. Java IO--NIO(二)
  18. git安装,windows下git bash默认目录更改
  19. JAVA静态代码块的作用
  20. jmap dump文件压缩后失效

热门文章

  1. java 中的interface是否继承object
  2. java8-函数编程
  3. 团队作业-Week9-软件项目的风险
  4. 爬虫之requests
  5. Hive实现交叉二维分析的小语句
  6. windows快速搭建FTP工具Serv-U FTP Server
  7. Kafka(1)--kafka基础知识
  8. pydev+Eclipse搭建教程
  9. mybatis运行原理学习
  10. Django+xadmin的安装与配置