美文网首页甲基化
2020-04-13 WGBS测序质控及分析记录

2020-04-13 WGBS测序质控及分析记录

作者: xiaoguolaile | 来源:发表于2020-04-13 11:06 被阅读0次

测序数据质控fastp

fastp -i ../cleandata/$seq\_R1.fastq.gz -o $seq.R1.clean.fq.gz \  ##read1
-I ../cleandata/$seq\_R2.fastq.gz -O $seq.R2.clean.fq.gz     \  ##read2
-5 --cut_front_window_size 4   --cut_front_mean_quality 20 \     ## from 5'-, window_slide 4bp,if quality <20,cut, NOTE:affect deduplication
-3 --cut_tail_window_size  4   --cut_tail_mean_quality 20  \     ## from 3'-, window_slide 4bp,if quality <20,cut, NOTE:affect deduplication
--cut_right --cut_right_window_size 4 --cut_right_mean_quality 20 \   ## cut right if <threshold , NOTE:affect deduplication
--detect_adapter_for_pe     \   ##remove adaptor
-q 15 \  ## base quality >15
-u 40 \  ## keep reads which had less than 40% low quality bases
-e 20 \  ## read average quality >20
-n 5 \   ## Ns number <=5
-l 30 \  ## read length >=30
-p \     ## enable overrepresented sequence analysis. small p
-P 20 \  ## One in 1/20 reads will be computed for overrepresentation analysis, big P
-w 4 \   ## worker thread number
#-c   \  ## overlap analysis for PE data ,bismark will do this

genome preparation

bismark_genome_preparation --bowtie2 --verbose --genomic_composition ./hg19.fa

alignment

biamrk --bowtie2 \
           -q \                 ## fastq
           -N  1 \                ## mismatch <=1
           -p 8 \               ## 8 threads
          --multicore 4 \       ## use 4*4 cores 
          --non_directional \   ## alignment to 4 strands
          -o ./           \     ## output directary
        --gzip          \       ## gzip output
        --nucleotide_coverage \  ## coverage
        -1 $i.R1.fq.gz   \
        -2 $i.R2.fq.gz  

bismark_deduplication

deduplicate_bismark -p $i.bam  

picard_deduplication

samtools sort $i.bam -o $i.sorted.bam   ## sort by position

java -jar ~/anaconda2/share/picard-2.21.6-0/picard.jar \  ##picard.jar absolute path
MarkDuplicates REMOVE_DUPLICATES   \  ## function 
-I $i.sorted.bam -O $i.dedup.bam -M picard1.txt  \   ## input and output

samtools sort -n  $i.dedup.bam -o $i.dedup.sorted.bam ## resort by reads name

extraction_DNA_methylatiuon

bismark_methylaiton_extractor -p \  ##paired-end
                              --no_overlap  \  ##avoids scoring overlapping methylation calls twice
                              --comprehensive \  ##merge all four possible strand-specific methylation info into context-dependent output files
                              --report \  ##methylation summary
                              -o ./  \  ## output file
                              --gzip  \  ## gzip output
                              --multicore 4 \  ## use multicores 4*4
                              --buffer_size 20G \  ## main memory sort buffer when sorting the methylation information
                              --CX  \  ##information on every single cytosine in the genome irrespective of its context
                              --cytosine_report \  ## genome-wide methylation report for all cytosines in the genome
                              --genome_folder ../genomefolder/  \  ## reference genome path
                              --zero_based \  ## 0-based or 1-based
                              $i.dedup.sorted.bam

extract CG positions

 perl 0_cx_report2CG.pl $i.CX_report.txt.gz $i.CG.txt

merged CG postition (merge + and - strands data)

perl  1_CG2merged_CG.pl $i.CG.txt $i.merged_CG.txt 

extractor candiate DMPs data

perl candiate.pl $i.CG-merged.txt DMPs_candiate.txt >$i.dmps_data.txt

相关文章

  • 2020-04-13 WGBS测序质控及分析记录

    测序数据质控fastp genome preparation alignment bismark_deduplic...

  • 24nt siRNA与甲基化关联分析

    简介:small RNA测序分析结果 与 WGBS测序分析结果 联合分析 1.全基因组层面 全基因组上固定bin长...

  • nanopore测序数据质控

    目前的nanopore测序质量一般,那么测序质量到底如何,则需要进行量化,也就是数据质控分析。数据质控是数据分析中...

  • Bismark 进行 WGBS 比对

    在《WGBS 全基因组甲基化测序》)讲解了 WGBS 测序原理,简而言之是 BS 处理将未甲基化 C 转化为 U(...

  • methylKit 进行差异甲基化分析

    methylKit 是一个用于分析甲基化测序数据的R包,不仅支持WGBS,RRBS和目的区域甲基化测序,还支持ox...

  • 序列组装

    1.利用fastqc对模拟测序的序列进行质控分析 1.1 使用art-illumina模拟测序,生成高通量数据(a...

  • 宏基因组分析概述

    测序数据预处理——质控:Trimmomatic 测序数据预处理——质控统计:FastQC 序列组装与基因预测——拼...

  • WGBS流程分析记录

    这是学习笔记,视频来自B站。视频地址在这儿github项目地址 step1 Download step2 SRA转...

  • 《专家共识》|如何评价单菌基因组质量

    《微生物组测序与分析专家共识》涵盖从微生物采集与保存、DNA提取建库、高通量基因测序和数据分析以及质控标准品等全流...

  • RNA-Seq data analysis

    数据准备 数据来源 测序下机数据 直接进行质控和后续分析; 已发表数据 以“The PP2A-interactor...

网友评论

    本文标题:2020-04-13 WGBS测序质控及分析记录

    本文链接:https://www.haomeiwen.com/subject/heqgmhtx.html