MIPGEN分析smMIP

该文描述了一个使用Python脚本进行生物信息学分析的过程,包括MIPGEN工具的使用,fastq文件切割,bwamem比对,samtools排序和collapser聚合步骤。
摘要由CSDN通过智能技术生成

查看编码:

# 65535是ucs2 1114111是ucs4
python -c "import sys; print sys.maxunicode"

下载python压缩包安装python

mipgen命令:

id=57
script_dir=/home/mxb/Downloads/MIPGEN-master/tools/
threads=8
fqprefix=./${id}
pe_read1=../1.raw_fq/K250002269_L01_${id}_1.fq
pe_read2=../1.raw_fq/K250002269_L01_${id}_2.fq
pear_read1=./${id}_1.indexed.fq
pear_read2=./${id}_2.indexed.fq
mips=/run/media/mxb/harddisk0/data/20230327/MIP/MIP.txt
ext_tag_size=8
lig_tag_size=0
cut_read1=./${id}.assembled.fastq
gref=/home/mxb/MXB/software/test/b37/human_g1k_v37.fasta
bamprefix=./${id}.indexed.sort
python ${script_dir}mipgen_fq_cutter_se.py $pe_read1 -L 15 -o 1 &&
python ${script_dir}mipgen_fq_cutter_se.py $pe_read2 -L 17 -o 2 &&
source /home/mxb/anaconda3/etc/profile.d/conda.sh
conda activate wes
pear -j $threads -f 1.indexed.fq -r 2.indexed.fq -o $fqprefix &&
conda deactivate
python ${script_dir}mipgen_fq_cutter_se.py $cut_read1 -m ${lig_tag_size},${ext_tag_size} -o $fqprefix &&
bwa mem -t $threads -R '@RG\tID:NGS-4\tPL:UNKNOWN\tSM:NGS-2' $gref ${fqprefix}.indexed.fq > ${fqprefix}.indexed.sam &&
samtools view -bS ${fqprefix}.indexed.sam | samtools sort -o $bamprefix &&
samtools view -@ $threads -h $bamprefix |python ${script_dir}mipgen_smmip_collapser.py 8 $bamprefix.collapse -m $mips -f 1 -s -w&&
echo "analysis commands have terminated (successfully or otherwise)"

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值