xmxjy 报告流程

登录

ip: 192.168.0.33

1.生成fastq文件

cd /workdir/data
ll
mkdir result_190422data
cd result_190422data
cp /workdir/data/result_190422/run_bcl2fastq.sh .
mkdir fastq

vim run_bcl2fastq.sh (鼠标无法操作)
按i
按 左上角的ESC  shift+:  wq   保存退出
按 左上角的ESC  shift+:  q   不保存退出

#编辑run_bcl2fastq.sh 文件,这里是要修改的
sample_sheet=030-190422.csv
bcl_name=190421_TPNB500301_0050_AHHVW2AFXY

ll /cifs/NextSeq/Runs/HIGIA/
#
nohup sh run_bcl2fastq.sh &

jobs
2. call SNP
cd /workdir/SNP_result/
mkdir newdir
cd newdir
vim list

新建 list 文件,以tab分割


image.png
-r  /workdir/data/result_190422/fastq/ 是前一步的fastq文件

perl /workdir/SNPcall_GATK/SNPcall_samtools.pl -o . -l list -r /workdir/data/result_190422/fastq/
cd script 

cp /workdir/SNP_result/zsl_samtools_20190422/1/script/run.sh .
不要修改
#检查文件是否存在
for i in `cat  */*/*filter* | grep cat | awk '{print $2}'`;do ll -h $i;done

#执行脚本
nohup sh run.sh &


#查看脚本运行状态
jobs
       running  正在运行
       done      运行完成

3.QC

#查看深度
cd ../Coverage
grep  'Average depth(rmdup)' */*/coverage.report > coverage.txt
cat coverage.txt

#查看捕获率
grep 'Fraction of Target Reads in mapped reads' */Coverage/*/*/*coverage.report

or

grep 'Fraction of Target Reads in mapped reads' */Coverage/*/*/*coverage.report | grep -v nan | awk '{sub(/%$/, " ");  if ($10 <10) print}'

#查看位点
cd ../out
wc -l */*.txt

pwd

4.数据打包

zip -r file.zip */*.txt

5.分析

#进入家目录
cd

test 是自己随意命名
mkdir test && cd test
cp -r ../mould_zhaosl/* .
cd sample

要修改
cp /workdir/SNP_result/zsl_samtools_20190422/1/out/file.zip .

unzip file.zip
rm file.zip
head -1 */*.txt

cd ../whole_test/

nohup ./run.sh &
cd ..

等待10~20分钟

查看胎儿浓度
grep -A 5 'testing the pair' whole_test/nohup.out

grep -A 5 'testing the pair' whole_test/nohup.out | perl -ne 'print "$1\t" if/testing the pair of (\w+)/; print "$1\n" if/Fraction\(fetal\)=  (\S+)/' | awk '{if( $2 != none)print }' |sort

查看杂质
for i in {2..30};do cat genotype253.txt | awk '{print $1,$2,$3,$4,$5}' | grep -w $i;done

查看结果文件
cat whole_test/Result_testing.txt
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • ¥开启¥ 【iAPP实现进入界面执行逐一显】 〖2017-08-25 15:22:14〗 《//首先开一个线程,因...
    小菜c阅读 7,507评论 0 17
  • 一、Python简介和环境搭建以及pip的安装 4课时实验课主要内容 【Python简介】: Python 是一个...
    _小老虎_阅读 6,385评论 0 10
  • ORA-00001: 违反唯一约束条件 (.) 错误说明:当在唯一索引所对应的列上键入重复值时,会触发此异常。 O...
    我想起个好名字阅读 6,160评论 0 9
  • 基础命令 主要的命令和快捷键 Linux系统命令由三部分组成:cmd + [options]+[operation...
    485b1aca799e阅读 1,270评论 0 0
  • 在许多孩子的世界里,有欢乐、有烦恼、有好奇、,也有想象;有探索、也有思考…… 大家都说,孩子的世界是天真的、无邪的...
    多肉妈妈阅读 189评论 0 1

友情链接更多精彩内容