目录

  • 摘要
  • 方法与工具
  • 操作流程
    • 组装
    • 比对
    • 注释
  • 结果展示
    • basemods
    • motif
  • 总结

摘要

前段时间特别忙,一个是项目多,另一个是个人私事,临近月底终于有空可以继续码文章。本篇介绍的是三代甲基化的基本流程分析。在测序时分析序列的甲基化修饰后,使用SMRT官方工具进行分析,得到m4C,m6A,m5C_TET的注释。

方法与工具

测序仪器:Pacbio
分析工具:
组装:Canu;flye
比对:pbmm2;samtools(SMRTlink自带)
注释:ipdSummary,motifmaker(SMRTlink自带)
SMRTlink安装文档
SMRTlink参考文档

操作流程

组装

#mermaid-svg-bAhuQBdAt1ZvvBGF .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF .label text{fill:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF .node rect,#mermaid-svg-bAhuQBdAt1ZvvBGF .node circle,#mermaid-svg-bAhuQBdAt1ZvvBGF .node ellipse,#mermaid-svg-bAhuQBdAt1ZvvBGF .node polygon,#mermaid-svg-bAhuQBdAt1ZvvBGF .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-bAhuQBdAt1ZvvBGF .node .label{text-align:center;fill:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF .node.clickable{cursor:pointer}#mermaid-svg-bAhuQBdAt1ZvvBGF .arrowheadPath{fill:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-bAhuQBdAt1ZvvBGF .flowchart-link{stroke:#333;fill:none}#mermaid-svg-bAhuQBdAt1ZvvBGF .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-bAhuQBdAt1ZvvBGF .edgeLabel rect{opacity:0.9}#mermaid-svg-bAhuQBdAt1ZvvBGF .edgeLabel span{color:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-bAhuQBdAt1ZvvBGF .cluster text{fill:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-svg-bAhuQBdAt1ZvvBGF .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-bAhuQBdAt1ZvvBGF text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-bAhuQBdAt1ZvvBGF .actor-line{stroke:grey}#mermaid-svg-bAhuQBdAt1ZvvBGF .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF .sequenceNumber{fill:#fff}#mermaid-svg-bAhuQBdAt1ZvvBGF #sequencenumber{fill:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF #crosshead path{fill:#333;stroke:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF .messageText{fill:#333;stroke:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-bAhuQBdAt1ZvvBGF .labelText,#mermaid-svg-bAhuQBdAt1ZvvBGF .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-bAhuQBdAt1ZvvBGF .loopText,#mermaid-svg-bAhuQBdAt1ZvvBGF .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-bAhuQBdAt1ZvvBGF .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-bAhuQBdAt1ZvvBGF .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-bAhuQBdAt1ZvvBGF .noteText,#mermaid-svg-bAhuQBdAt1ZvvBGF .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-bAhuQBdAt1ZvvBGF .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-bAhuQBdAt1ZvvBGF .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-bAhuQBdAt1ZvvBGF .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-bAhuQBdAt1ZvvBGF .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-bAhuQBdAt1ZvvBGF .section{stroke:none;opacity:0.2}#mermaid-svg-bAhuQBdAt1ZvvBGF .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-bAhuQBdAt1ZvvBGF .section2{fill:#fff400}#mermaid-svg-bAhuQBdAt1ZvvBGF .section1,#mermaid-svg-bAhuQBdAt1ZvvBGF .section3{fill:#fff;opacity:0.2}#mermaid-svg-bAhuQBdAt1ZvvBGF .sectionTitle0{fill:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF .sectionTitle1{fill:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF .sectionTitle2{fill:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF .sectionTitle3{fill:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-bAhuQBdAt1ZvvBGF .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-bAhuQBdAt1ZvvBGF .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-bAhuQBdAt1ZvvBGF .grid path{stroke-width:0}#mermaid-svg-bAhuQBdAt1ZvvBGF .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-bAhuQBdAt1ZvvBGF .task{stroke-width:2}#mermaid-svg-bAhuQBdAt1ZvvBGF .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-bAhuQBdAt1ZvvBGF .taskText:not([font-size]){font-size:11px}#mermaid-svg-bAhuQBdAt1ZvvBGF .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-bAhuQBdAt1ZvvBGF .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-bAhuQBdAt1ZvvBGF .task.clickable{cursor:pointer}#mermaid-svg-bAhuQBdAt1ZvvBGF .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-bAhuQBdAt1ZvvBGF .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-bAhuQBdAt1ZvvBGF .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-bAhuQBdAt1ZvvBGF .taskText0,#mermaid-svg-bAhuQBdAt1ZvvBGF .taskText1,#mermaid-svg-bAhuQBdAt1ZvvBGF .taskText2,#mermaid-svg-bAhuQBdAt1ZvvBGF .taskText3{fill:#fff}#mermaid-svg-bAhuQBdAt1ZvvBGF .task0,#mermaid-svg-bAhuQBdAt1ZvvBGF .task1,#mermaid-svg-bAhuQBdAt1ZvvBGF .task2,#mermaid-svg-bAhuQBdAt1ZvvBGF .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-bAhuQBdAt1ZvvBGF .taskTextOutside0,#mermaid-svg-bAhuQBdAt1ZvvBGF .taskTextOutside2{fill:#000}#mermaid-svg-bAhuQBdAt1ZvvBGF .taskTextOutside1,#mermaid-svg-bAhuQBdAt1ZvvBGF .taskTextOutside3{fill:#000}#mermaid-svg-bAhuQBdAt1ZvvBGF .active0,#mermaid-svg-bAhuQBdAt1ZvvBGF .active1,#mermaid-svg-bAhuQBdAt1ZvvBGF .active2,#mermaid-svg-bAhuQBdAt1ZvvBGF .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-bAhuQBdAt1ZvvBGF .activeText0,#mermaid-svg-bAhuQBdAt1ZvvBGF .activeText1,#mermaid-svg-bAhuQBdAt1ZvvBGF .activeText2,#mermaid-svg-bAhuQBdAt1ZvvBGF .activeText3{fill:#000 !important}#mermaid-svg-bAhuQBdAt1ZvvBGF .done0,#mermaid-svg-bAhuQBdAt1ZvvBGF .done1,#mermaid-svg-bAhuQBdAt1ZvvBGF .done2,#mermaid-svg-bAhuQBdAt1ZvvBGF .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-bAhuQBdAt1ZvvBGF .doneText0,#mermaid-svg-bAhuQBdAt1ZvvBGF .doneText1,#mermaid-svg-bAhuQBdAt1ZvvBGF .doneText2,#mermaid-svg-bAhuQBdAt1ZvvBGF .doneText3{fill:#000 !important}#mermaid-svg-bAhuQBdAt1ZvvBGF .crit0,#mermaid-svg-bAhuQBdAt1ZvvBGF .crit1,#mermaid-svg-bAhuQBdAt1ZvvBGF .crit2,#mermaid-svg-bAhuQBdAt1ZvvBGF .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-bAhuQBdAt1ZvvBGF .activeCrit0,#mermaid-svg-bAhuQBdAt1ZvvBGF .activeCrit1,#mermaid-svg-bAhuQBdAt1ZvvBGF .activeCrit2,#mermaid-svg-bAhuQBdAt1ZvvBGF .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-bAhuQBdAt1ZvvBGF .doneCrit0,#mermaid-svg-bAhuQBdAt1ZvvBGF .doneCrit1,#mermaid-svg-bAhuQBdAt1ZvvBGF .doneCrit2,#mermaid-svg-bAhuQBdAt1ZvvBGF .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-bAhuQBdAt1ZvvBGF .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-bAhuQBdAt1ZvvBGF .milestoneText{font-style:italic}#mermaid-svg-bAhuQBdAt1ZvvBGF .doneCritText0,#mermaid-svg-bAhuQBdAt1ZvvBGF .doneCritText1,#mermaid-svg-bAhuQBdAt1ZvvBGF .doneCritText2,#mermaid-svg-bAhuQBdAt1ZvvBGF .doneCritText3{fill:#000 !important}#mermaid-svg-bAhuQBdAt1ZvvBGF .activeCritText0,#mermaid-svg-bAhuQBdAt1ZvvBGF .activeCritText1,#mermaid-svg-bAhuQBdAt1ZvvBGF .activeCritText2,#mermaid-svg-bAhuQBdAt1ZvvBGF .activeCritText3{fill:#000 !important}#mermaid-svg-bAhuQBdAt1ZvvBGF .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-bAhuQBdAt1ZvvBGF g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-bAhuQBdAt1ZvvBGF g.classGroup text .title{font-weight:bolder}#mermaid-svg-bAhuQBdAt1ZvvBGF g.clickable{cursor:pointer}#mermaid-svg-bAhuQBdAt1ZvvBGF g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-bAhuQBdAt1ZvvBGF g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-bAhuQBdAt1ZvvBGF .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-bAhuQBdAt1ZvvBGF .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-bAhuQBdAt1ZvvBGF .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-bAhuQBdAt1ZvvBGF .dashed-line{stroke-dasharray:3}#mermaid-svg-bAhuQBdAt1ZvvBGF #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-bAhuQBdAt1ZvvBGF #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-bAhuQBdAt1ZvvBGF #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-bAhuQBdAt1ZvvBGF #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-bAhuQBdAt1ZvvBGF #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-bAhuQBdAt1ZvvBGF #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-bAhuQBdAt1ZvvBGF #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-bAhuQBdAt1ZvvBGF #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-bAhuQBdAt1ZvvBGF .commit-id,#mermaid-svg-bAhuQBdAt1ZvvBGF .commit-msg,#mermaid-svg-bAhuQBdAt1ZvvBGF .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-bAhuQBdAt1ZvvBGF .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-bAhuQBdAt1ZvvBGF .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-bAhuQBdAt1ZvvBGF g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-bAhuQBdAt1ZvvBGF g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-bAhuQBdAt1ZvvBGF g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-bAhuQBdAt1ZvvBGF g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-bAhuQBdAt1ZvvBGF g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-bAhuQBdAt1ZvvBGF .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-bAhuQBdAt1ZvvBGF .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-bAhuQBdAt1ZvvBGF .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-bAhuQBdAt1ZvvBGF .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-bAhuQBdAt1ZvvBGF .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-bAhuQBdAt1ZvvBGF .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-bAhuQBdAt1ZvvBGF .edgeLabel text{fill:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-bAhuQBdAt1ZvvBGF .node circle.state-start{fill:black;stroke:black}#mermaid-svg-bAhuQBdAt1ZvvBGF .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-bAhuQBdAt1ZvvBGF #statediagram-barbEnd{fill:#9370db}#mermaid-svg-bAhuQBdAt1ZvvBGF .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-bAhuQBdAt1ZvvBGF .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-bAhuQBdAt1ZvvBGF .statediagram-state .divider{stroke:#9370db}#mermaid-svg-bAhuQBdAt1ZvvBGF .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-bAhuQBdAt1ZvvBGF .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-bAhuQBdAt1ZvvBGF .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-bAhuQBdAt1ZvvBGF .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-bAhuQBdAt1ZvvBGF .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-bAhuQBdAt1ZvvBGF .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-bAhuQBdAt1ZvvBGF .note-edge{stroke-dasharray:5}#mermaid-svg-bAhuQBdAt1ZvvBGF .statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}#mermaid-svg-bAhuQBdAt1ZvvBGF .error-icon{fill:#522}#mermaid-svg-bAhuQBdAt1ZvvBGF .error-text{fill:#522;stroke:#522}#mermaid-svg-bAhuQBdAt1ZvvBGF .edge-thickness-normal{stroke-width:2px}#mermaid-svg-bAhuQBdAt1ZvvBGF .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-bAhuQBdAt1ZvvBGF .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-bAhuQBdAt1ZvvBGF .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-bAhuQBdAt1ZvvBGF .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-bAhuQBdAt1ZvvBGF .marker{fill:#333}#mermaid-svg-bAhuQBdAt1ZvvBGF .marker.cross{stroke:#333}:root { --mermaid-font-family: "trebuchet ms", verdana, arial;}#mermaid-svg-bAhuQBdAt1ZvvBGF {color: rgba(0, 0, 0, 0.75);font: ;}

bam2fastq转换格式
canu矫正/flye组装
原始数据.bam
原始数据.fastq
组装序列.fasta
for bam_path in */1.rawdata/*.bam; #读取bam文件路径和样品名
do
sample_id=${bam_path%/1.rawdata/*};
bam2fastq ${sample_id}.bam -o ${sample_id}
canu -correct \-p ${sample_id} -d ../02.Assemble/${sample_id} \genomeSize=6.5m \minReadLength=2000 minOverlapLength=500\corOutCoverage=300 corMinCoverage=2 \-pacbio ${sample_id}.fastq.gzflye --plasmids --pacbio-corr ${sample_id}/${sample_id}.correctedReads.fasta.gz -g 6.5m -o flye/${sample_id}_flye -t 16
done

Canu 自身也可以组装,在这里我们只用了他的校正功能,使用flye进行组装(前同事的pipeline被保留)。当然这两个工具的对比我没有去深究,如果大家有更好的流程可以留言讨论。

比对

#mermaid-svg-ieRTikiYrAntdRKS .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-ieRTikiYrAntdRKS .label text{fill:#333}#mermaid-svg-ieRTikiYrAntdRKS .node rect,#mermaid-svg-ieRTikiYrAntdRKS .node circle,#mermaid-svg-ieRTikiYrAntdRKS .node ellipse,#mermaid-svg-ieRTikiYrAntdRKS .node polygon,#mermaid-svg-ieRTikiYrAntdRKS .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-ieRTikiYrAntdRKS .node .label{text-align:center;fill:#333}#mermaid-svg-ieRTikiYrAntdRKS .node.clickable{cursor:pointer}#mermaid-svg-ieRTikiYrAntdRKS .arrowheadPath{fill:#333}#mermaid-svg-ieRTikiYrAntdRKS .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-ieRTikiYrAntdRKS .flowchart-link{stroke:#333;fill:none}#mermaid-svg-ieRTikiYrAntdRKS .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-ieRTikiYrAntdRKS .edgeLabel rect{opacity:0.9}#mermaid-svg-ieRTikiYrAntdRKS .edgeLabel span{color:#333}#mermaid-svg-ieRTikiYrAntdRKS .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-ieRTikiYrAntdRKS .cluster text{fill:#333}#mermaid-svg-ieRTikiYrAntdRKS div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-svg-ieRTikiYrAntdRKS .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-ieRTikiYrAntdRKS text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-ieRTikiYrAntdRKS .actor-line{stroke:grey}#mermaid-svg-ieRTikiYrAntdRKS .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-ieRTikiYrAntdRKS .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-ieRTikiYrAntdRKS #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-ieRTikiYrAntdRKS .sequenceNumber{fill:#fff}#mermaid-svg-ieRTikiYrAntdRKS #sequencenumber{fill:#333}#mermaid-svg-ieRTikiYrAntdRKS #crosshead path{fill:#333;stroke:#333}#mermaid-svg-ieRTikiYrAntdRKS .messageText{fill:#333;stroke:#333}#mermaid-svg-ieRTikiYrAntdRKS .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-ieRTikiYrAntdRKS .labelText,#mermaid-svg-ieRTikiYrAntdRKS .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-ieRTikiYrAntdRKS .loopText,#mermaid-svg-ieRTikiYrAntdRKS .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-ieRTikiYrAntdRKS .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-ieRTikiYrAntdRKS .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-ieRTikiYrAntdRKS .noteText,#mermaid-svg-ieRTikiYrAntdRKS .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-ieRTikiYrAntdRKS .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-ieRTikiYrAntdRKS .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-ieRTikiYrAntdRKS .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-ieRTikiYrAntdRKS .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ieRTikiYrAntdRKS .section{stroke:none;opacity:0.2}#mermaid-svg-ieRTikiYrAntdRKS .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-ieRTikiYrAntdRKS .section2{fill:#fff400}#mermaid-svg-ieRTikiYrAntdRKS .section1,#mermaid-svg-ieRTikiYrAntdRKS .section3{fill:#fff;opacity:0.2}#mermaid-svg-ieRTikiYrAntdRKS .sectionTitle0{fill:#333}#mermaid-svg-ieRTikiYrAntdRKS .sectionTitle1{fill:#333}#mermaid-svg-ieRTikiYrAntdRKS .sectionTitle2{fill:#333}#mermaid-svg-ieRTikiYrAntdRKS .sectionTitle3{fill:#333}#mermaid-svg-ieRTikiYrAntdRKS .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ieRTikiYrAntdRKS .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-ieRTikiYrAntdRKS .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ieRTikiYrAntdRKS .grid path{stroke-width:0}#mermaid-svg-ieRTikiYrAntdRKS .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-ieRTikiYrAntdRKS .task{stroke-width:2}#mermaid-svg-ieRTikiYrAntdRKS .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ieRTikiYrAntdRKS .taskText:not([font-size]){font-size:11px}#mermaid-svg-ieRTikiYrAntdRKS .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ieRTikiYrAntdRKS .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-ieRTikiYrAntdRKS .task.clickable{cursor:pointer}#mermaid-svg-ieRTikiYrAntdRKS .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-ieRTikiYrAntdRKS .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-ieRTikiYrAntdRKS .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-ieRTikiYrAntdRKS .taskText0,#mermaid-svg-ieRTikiYrAntdRKS .taskText1,#mermaid-svg-ieRTikiYrAntdRKS .taskText2,#mermaid-svg-ieRTikiYrAntdRKS .taskText3{fill:#fff}#mermaid-svg-ieRTikiYrAntdRKS .task0,#mermaid-svg-ieRTikiYrAntdRKS .task1,#mermaid-svg-ieRTikiYrAntdRKS .task2,#mermaid-svg-ieRTikiYrAntdRKS .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-ieRTikiYrAntdRKS .taskTextOutside0,#mermaid-svg-ieRTikiYrAntdRKS .taskTextOutside2{fill:#000}#mermaid-svg-ieRTikiYrAntdRKS .taskTextOutside1,#mermaid-svg-ieRTikiYrAntdRKS .taskTextOutside3{fill:#000}#mermaid-svg-ieRTikiYrAntdRKS .active0,#mermaid-svg-ieRTikiYrAntdRKS .active1,#mermaid-svg-ieRTikiYrAntdRKS .active2,#mermaid-svg-ieRTikiYrAntdRKS .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-ieRTikiYrAntdRKS .activeText0,#mermaid-svg-ieRTikiYrAntdRKS .activeText1,#mermaid-svg-ieRTikiYrAntdRKS .activeText2,#mermaid-svg-ieRTikiYrAntdRKS .activeText3{fill:#000 !important}#mermaid-svg-ieRTikiYrAntdRKS .done0,#mermaid-svg-ieRTikiYrAntdRKS .done1,#mermaid-svg-ieRTikiYrAntdRKS .done2,#mermaid-svg-ieRTikiYrAntdRKS .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-ieRTikiYrAntdRKS .doneText0,#mermaid-svg-ieRTikiYrAntdRKS .doneText1,#mermaid-svg-ieRTikiYrAntdRKS .doneText2,#mermaid-svg-ieRTikiYrAntdRKS .doneText3{fill:#000 !important}#mermaid-svg-ieRTikiYrAntdRKS .crit0,#mermaid-svg-ieRTikiYrAntdRKS .crit1,#mermaid-svg-ieRTikiYrAntdRKS .crit2,#mermaid-svg-ieRTikiYrAntdRKS .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-ieRTikiYrAntdRKS .activeCrit0,#mermaid-svg-ieRTikiYrAntdRKS .activeCrit1,#mermaid-svg-ieRTikiYrAntdRKS .activeCrit2,#mermaid-svg-ieRTikiYrAntdRKS .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-ieRTikiYrAntdRKS .doneCrit0,#mermaid-svg-ieRTikiYrAntdRKS .doneCrit1,#mermaid-svg-ieRTikiYrAntdRKS .doneCrit2,#mermaid-svg-ieRTikiYrAntdRKS .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-ieRTikiYrAntdRKS .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-ieRTikiYrAntdRKS .milestoneText{font-style:italic}#mermaid-svg-ieRTikiYrAntdRKS .doneCritText0,#mermaid-svg-ieRTikiYrAntdRKS .doneCritText1,#mermaid-svg-ieRTikiYrAntdRKS .doneCritText2,#mermaid-svg-ieRTikiYrAntdRKS .doneCritText3{fill:#000 !important}#mermaid-svg-ieRTikiYrAntdRKS .activeCritText0,#mermaid-svg-ieRTikiYrAntdRKS .activeCritText1,#mermaid-svg-ieRTikiYrAntdRKS .activeCritText2,#mermaid-svg-ieRTikiYrAntdRKS .activeCritText3{fill:#000 !important}#mermaid-svg-ieRTikiYrAntdRKS .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ieRTikiYrAntdRKS g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-ieRTikiYrAntdRKS g.classGroup text .title{font-weight:bolder}#mermaid-svg-ieRTikiYrAntdRKS g.clickable{cursor:pointer}#mermaid-svg-ieRTikiYrAntdRKS g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-ieRTikiYrAntdRKS g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-ieRTikiYrAntdRKS .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-ieRTikiYrAntdRKS .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-ieRTikiYrAntdRKS .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-ieRTikiYrAntdRKS .dashed-line{stroke-dasharray:3}#mermaid-svg-ieRTikiYrAntdRKS #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-ieRTikiYrAntdRKS #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-ieRTikiYrAntdRKS #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-ieRTikiYrAntdRKS #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-ieRTikiYrAntdRKS #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-ieRTikiYrAntdRKS #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-ieRTikiYrAntdRKS #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-ieRTikiYrAntdRKS #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-ieRTikiYrAntdRKS .commit-id,#mermaid-svg-ieRTikiYrAntdRKS .commit-msg,#mermaid-svg-ieRTikiYrAntdRKS .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ieRTikiYrAntdRKS .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ieRTikiYrAntdRKS .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ieRTikiYrAntdRKS g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ieRTikiYrAntdRKS g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-ieRTikiYrAntdRKS g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-ieRTikiYrAntdRKS g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-ieRTikiYrAntdRKS g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-ieRTikiYrAntdRKS g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-ieRTikiYrAntdRKS .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-ieRTikiYrAntdRKS .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-ieRTikiYrAntdRKS .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-ieRTikiYrAntdRKS .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-ieRTikiYrAntdRKS .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-ieRTikiYrAntdRKS .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-ieRTikiYrAntdRKS .edgeLabel text{fill:#333}#mermaid-svg-ieRTikiYrAntdRKS .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ieRTikiYrAntdRKS .node circle.state-start{fill:black;stroke:black}#mermaid-svg-ieRTikiYrAntdRKS .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-ieRTikiYrAntdRKS #statediagram-barbEnd{fill:#9370db}#mermaid-svg-ieRTikiYrAntdRKS .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-ieRTikiYrAntdRKS .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-ieRTikiYrAntdRKS .statediagram-state .divider{stroke:#9370db}#mermaid-svg-ieRTikiYrAntdRKS .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-ieRTikiYrAntdRKS .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-ieRTikiYrAntdRKS .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-ieRTikiYrAntdRKS .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-ieRTikiYrAntdRKS .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-ieRTikiYrAntdRKS .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-ieRTikiYrAntdRKS .note-edge{stroke-dasharray:5}#mermaid-svg-ieRTikiYrAntdRKS .statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}#mermaid-svg-ieRTikiYrAntdRKS .error-icon{fill:#522}#mermaid-svg-ieRTikiYrAntdRKS .error-text{fill:#522;stroke:#522}#mermaid-svg-ieRTikiYrAntdRKS .edge-thickness-normal{stroke-width:2px}#mermaid-svg-ieRTikiYrAntdRKS .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-ieRTikiYrAntdRKS .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-ieRTikiYrAntdRKS .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-ieRTikiYrAntdRKS .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-ieRTikiYrAntdRKS .marker{fill:#333}#mermaid-svg-ieRTikiYrAntdRKS .marker.cross{stroke:#333}:root { --mermaid-font-family: "trebuchet ms", verdana, arial;}#mermaid-svg-ieRTikiYrAntdRKS {color: rgba(0, 0, 0, 0.75);font: ;}

pbmm2建立索引.mmi -- pbmm2比对
samtools sort排列
组装序列.fasta
数据比对
原始数据.bam
临时文件.tmp.bam
比对文件.bam
for bam_path in */1.rawdata/*.bam; #读取bam文件路径和样品名
do
sample_id=${bam_path%/1.rawdata/*};
echo ${bam_path} ${sample_id};
mkdir ../02.Assemble/ref ../05.align#建立参考和比对文件夹
pbmm2 index ../02.Assemble/flye/${sample_id}_assembly.fasta ../02.Assemble/ref/${sample_id}_assembly.mmi #建立参考序列索引
pbmm2 align ../02.Assemble/flye/${sample_id}_assembly.fasta ${bam_path} ../05.align/${sample_id}_tmp.bam #比对
samtools sort ../05.align/${sample_id}_tmp.bam  ../05.align/${sample_id} #排列文件
done

注释

#mermaid-svg-LdpOFzU8zAyceXdI .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-LdpOFzU8zAyceXdI .label text{fill:#333}#mermaid-svg-LdpOFzU8zAyceXdI .node rect,#mermaid-svg-LdpOFzU8zAyceXdI .node circle,#mermaid-svg-LdpOFzU8zAyceXdI .node ellipse,#mermaid-svg-LdpOFzU8zAyceXdI .node polygon,#mermaid-svg-LdpOFzU8zAyceXdI .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-LdpOFzU8zAyceXdI .node .label{text-align:center;fill:#333}#mermaid-svg-LdpOFzU8zAyceXdI .node.clickable{cursor:pointer}#mermaid-svg-LdpOFzU8zAyceXdI .arrowheadPath{fill:#333}#mermaid-svg-LdpOFzU8zAyceXdI .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-LdpOFzU8zAyceXdI .flowchart-link{stroke:#333;fill:none}#mermaid-svg-LdpOFzU8zAyceXdI .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-LdpOFzU8zAyceXdI .edgeLabel rect{opacity:0.9}#mermaid-svg-LdpOFzU8zAyceXdI .edgeLabel span{color:#333}#mermaid-svg-LdpOFzU8zAyceXdI .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-LdpOFzU8zAyceXdI .cluster text{fill:#333}#mermaid-svg-LdpOFzU8zAyceXdI div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-svg-LdpOFzU8zAyceXdI .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-LdpOFzU8zAyceXdI text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-LdpOFzU8zAyceXdI .actor-line{stroke:grey}#mermaid-svg-LdpOFzU8zAyceXdI .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-LdpOFzU8zAyceXdI .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-LdpOFzU8zAyceXdI #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-LdpOFzU8zAyceXdI .sequenceNumber{fill:#fff}#mermaid-svg-LdpOFzU8zAyceXdI #sequencenumber{fill:#333}#mermaid-svg-LdpOFzU8zAyceXdI #crosshead path{fill:#333;stroke:#333}#mermaid-svg-LdpOFzU8zAyceXdI .messageText{fill:#333;stroke:#333}#mermaid-svg-LdpOFzU8zAyceXdI .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-LdpOFzU8zAyceXdI .labelText,#mermaid-svg-LdpOFzU8zAyceXdI .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-LdpOFzU8zAyceXdI .loopText,#mermaid-svg-LdpOFzU8zAyceXdI .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-LdpOFzU8zAyceXdI .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-LdpOFzU8zAyceXdI .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-LdpOFzU8zAyceXdI .noteText,#mermaid-svg-LdpOFzU8zAyceXdI .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-LdpOFzU8zAyceXdI .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-LdpOFzU8zAyceXdI .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-LdpOFzU8zAyceXdI .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-LdpOFzU8zAyceXdI .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-LdpOFzU8zAyceXdI .section{stroke:none;opacity:0.2}#mermaid-svg-LdpOFzU8zAyceXdI .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-LdpOFzU8zAyceXdI .section2{fill:#fff400}#mermaid-svg-LdpOFzU8zAyceXdI .section1,#mermaid-svg-LdpOFzU8zAyceXdI .section3{fill:#fff;opacity:0.2}#mermaid-svg-LdpOFzU8zAyceXdI .sectionTitle0{fill:#333}#mermaid-svg-LdpOFzU8zAyceXdI .sectionTitle1{fill:#333}#mermaid-svg-LdpOFzU8zAyceXdI .sectionTitle2{fill:#333}#mermaid-svg-LdpOFzU8zAyceXdI .sectionTitle3{fill:#333}#mermaid-svg-LdpOFzU8zAyceXdI .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-LdpOFzU8zAyceXdI .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-LdpOFzU8zAyceXdI .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-LdpOFzU8zAyceXdI .grid path{stroke-width:0}#mermaid-svg-LdpOFzU8zAyceXdI .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-LdpOFzU8zAyceXdI .task{stroke-width:2}#mermaid-svg-LdpOFzU8zAyceXdI .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-LdpOFzU8zAyceXdI .taskText:not([font-size]){font-size:11px}#mermaid-svg-LdpOFzU8zAyceXdI .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-LdpOFzU8zAyceXdI .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-LdpOFzU8zAyceXdI .task.clickable{cursor:pointer}#mermaid-svg-LdpOFzU8zAyceXdI .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-LdpOFzU8zAyceXdI .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-LdpOFzU8zAyceXdI .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-LdpOFzU8zAyceXdI .taskText0,#mermaid-svg-LdpOFzU8zAyceXdI .taskText1,#mermaid-svg-LdpOFzU8zAyceXdI .taskText2,#mermaid-svg-LdpOFzU8zAyceXdI .taskText3{fill:#fff}#mermaid-svg-LdpOFzU8zAyceXdI .task0,#mermaid-svg-LdpOFzU8zAyceXdI .task1,#mermaid-svg-LdpOFzU8zAyceXdI .task2,#mermaid-svg-LdpOFzU8zAyceXdI .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-LdpOFzU8zAyceXdI .taskTextOutside0,#mermaid-svg-LdpOFzU8zAyceXdI .taskTextOutside2{fill:#000}#mermaid-svg-LdpOFzU8zAyceXdI .taskTextOutside1,#mermaid-svg-LdpOFzU8zAyceXdI .taskTextOutside3{fill:#000}#mermaid-svg-LdpOFzU8zAyceXdI .active0,#mermaid-svg-LdpOFzU8zAyceXdI .active1,#mermaid-svg-LdpOFzU8zAyceXdI .active2,#mermaid-svg-LdpOFzU8zAyceXdI .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-LdpOFzU8zAyceXdI .activeText0,#mermaid-svg-LdpOFzU8zAyceXdI .activeText1,#mermaid-svg-LdpOFzU8zAyceXdI .activeText2,#mermaid-svg-LdpOFzU8zAyceXdI .activeText3{fill:#000 !important}#mermaid-svg-LdpOFzU8zAyceXdI .done0,#mermaid-svg-LdpOFzU8zAyceXdI .done1,#mermaid-svg-LdpOFzU8zAyceXdI .done2,#mermaid-svg-LdpOFzU8zAyceXdI .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-LdpOFzU8zAyceXdI .doneText0,#mermaid-svg-LdpOFzU8zAyceXdI .doneText1,#mermaid-svg-LdpOFzU8zAyceXdI .doneText2,#mermaid-svg-LdpOFzU8zAyceXdI .doneText3{fill:#000 !important}#mermaid-svg-LdpOFzU8zAyceXdI .crit0,#mermaid-svg-LdpOFzU8zAyceXdI .crit1,#mermaid-svg-LdpOFzU8zAyceXdI .crit2,#mermaid-svg-LdpOFzU8zAyceXdI .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-LdpOFzU8zAyceXdI .activeCrit0,#mermaid-svg-LdpOFzU8zAyceXdI .activeCrit1,#mermaid-svg-LdpOFzU8zAyceXdI .activeCrit2,#mermaid-svg-LdpOFzU8zAyceXdI .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-LdpOFzU8zAyceXdI .doneCrit0,#mermaid-svg-LdpOFzU8zAyceXdI .doneCrit1,#mermaid-svg-LdpOFzU8zAyceXdI .doneCrit2,#mermaid-svg-LdpOFzU8zAyceXdI .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-LdpOFzU8zAyceXdI .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-LdpOFzU8zAyceXdI .milestoneText{font-style:italic}#mermaid-svg-LdpOFzU8zAyceXdI .doneCritText0,#mermaid-svg-LdpOFzU8zAyceXdI .doneCritText1,#mermaid-svg-LdpOFzU8zAyceXdI .doneCritText2,#mermaid-svg-LdpOFzU8zAyceXdI .doneCritText3{fill:#000 !important}#mermaid-svg-LdpOFzU8zAyceXdI .activeCritText0,#mermaid-svg-LdpOFzU8zAyceXdI .activeCritText1,#mermaid-svg-LdpOFzU8zAyceXdI .activeCritText2,#mermaid-svg-LdpOFzU8zAyceXdI .activeCritText3{fill:#000 !important}#mermaid-svg-LdpOFzU8zAyceXdI .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-LdpOFzU8zAyceXdI g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-LdpOFzU8zAyceXdI g.classGroup text .title{font-weight:bolder}#mermaid-svg-LdpOFzU8zAyceXdI g.clickable{cursor:pointer}#mermaid-svg-LdpOFzU8zAyceXdI g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-LdpOFzU8zAyceXdI g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-LdpOFzU8zAyceXdI .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-LdpOFzU8zAyceXdI .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-LdpOFzU8zAyceXdI .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-LdpOFzU8zAyceXdI .dashed-line{stroke-dasharray:3}#mermaid-svg-LdpOFzU8zAyceXdI #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-LdpOFzU8zAyceXdI #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-LdpOFzU8zAyceXdI #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-LdpOFzU8zAyceXdI #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-LdpOFzU8zAyceXdI #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-LdpOFzU8zAyceXdI #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-LdpOFzU8zAyceXdI #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-LdpOFzU8zAyceXdI #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-LdpOFzU8zAyceXdI .commit-id,#mermaid-svg-LdpOFzU8zAyceXdI .commit-msg,#mermaid-svg-LdpOFzU8zAyceXdI .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-LdpOFzU8zAyceXdI .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-LdpOFzU8zAyceXdI .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-LdpOFzU8zAyceXdI g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-LdpOFzU8zAyceXdI g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-LdpOFzU8zAyceXdI g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-LdpOFzU8zAyceXdI g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-LdpOFzU8zAyceXdI g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-LdpOFzU8zAyceXdI g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-LdpOFzU8zAyceXdI .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-LdpOFzU8zAyceXdI .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-LdpOFzU8zAyceXdI .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-LdpOFzU8zAyceXdI .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-LdpOFzU8zAyceXdI .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-LdpOFzU8zAyceXdI .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-LdpOFzU8zAyceXdI .edgeLabel text{fill:#333}#mermaid-svg-LdpOFzU8zAyceXdI .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-LdpOFzU8zAyceXdI .node circle.state-start{fill:black;stroke:black}#mermaid-svg-LdpOFzU8zAyceXdI .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-LdpOFzU8zAyceXdI #statediagram-barbEnd{fill:#9370db}#mermaid-svg-LdpOFzU8zAyceXdI .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-LdpOFzU8zAyceXdI .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-LdpOFzU8zAyceXdI .statediagram-state .divider{stroke:#9370db}#mermaid-svg-LdpOFzU8zAyceXdI .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-LdpOFzU8zAyceXdI .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-LdpOFzU8zAyceXdI .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-LdpOFzU8zAyceXdI .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-LdpOFzU8zAyceXdI .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-LdpOFzU8zAyceXdI .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-LdpOFzU8zAyceXdI .note-edge{stroke-dasharray:5}#mermaid-svg-LdpOFzU8zAyceXdI .statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}#mermaid-svg-LdpOFzU8zAyceXdI .error-icon{fill:#522}#mermaid-svg-LdpOFzU8zAyceXdI .error-text{fill:#522;stroke:#522}#mermaid-svg-LdpOFzU8zAyceXdI .edge-thickness-normal{stroke-width:2px}#mermaid-svg-LdpOFzU8zAyceXdI .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-LdpOFzU8zAyceXdI .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-LdpOFzU8zAyceXdI .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-LdpOFzU8zAyceXdI .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-LdpOFzU8zAyceXdI .marker{fill:#333}#mermaid-svg-LdpOFzU8zAyceXdI .marker.cross{stroke:#333}:root { --mermaid-font-family: "trebuchet ms", verdana, arial;}#mermaid-svg-LdpOFzU8zAyceXdI {color: rgba(0, 0, 0, 0.75);font: ;}

samtools建立索引.fai
samtools建立索引.bai
组装序列.fasta
motif.gff
比对文件.bam
motifs.csv
for bam_path in */1.rawdata/*.bam; #读取bam文件路径和样品名
do
mkdir -p ../05.align/methylome/${sample_id}
samtools index ../05.align/${sample_id}.bam
samtools faidx ../02.Assemble/flye/${sample_id}_assembly.fasta
ipdSummary ../05.align/${sample_id}.bam --reference ../02.Assemble/flye/${sample_id}_assembly.fasta --gff ../05.align/methylome/${sample_id}/basemods.gff --csv ../05.align/methylome/${sample_id}/basemods.csv --pvalue 0.001 --numWorkers 16 --identify m4C,m6A,m5C_TET
motifMaker find -f ../02.Assemble/flye/${sample_id}_assembly.fasta -g ../05.align/methylome/${sample_id}/basemods.gff -o ../05.align/methylome/${sample_id}/motifs.csv
motifMaker reprocess -f ../02.Assemble/flye/${sample_id}_assembly.fasta -g ../05.align/methylome/${sample_id}/basemods.gff -m ../05.align/methylome/${sample_id}/motifs.csv -o ../05.align/methylome/${sample_id}/motifs.gff

结果展示

可以得到4个结果,gff和csv各2个文件(M.前缀是自己加的,用于区分样品)

basemods

basemods.gff文件提供了m4C,m6A,m5C_TET的注释信息,csv提供了突变位点的信息

motif

motif.gff注释文件和basemods.gff前面都差不多,只有部分位点最后一列注释信息上有些区别,多一个id=BSC;motif.csv提供甲基化片段序列位置信息,如果序列太少,可以在motifmaker可以设置-m 参数调整筛选分数。

总结

三代的甲基化修饰其实并不复杂,工具安装也很方便好用。个人感觉后续是加一些分析,比如做统计,继续绘制一些图片的。介于目前客户需求,暂时没有添加,有兴趣的朋友可以加群一起交流。遇见二维码过期可添加VX:bbplayer2021 ,备注 申请加入生信交流群。

2021-10-27【WGS】丨Pacbio三代甲基化修饰流程相关推荐

  1. PacBio三代甲基化分析流程(不包含序列组装)

    PacBio三代甲基化分析流程--不包含序列组装 流程 流程如下: 比对 这几天用的新的PacBio公司的SMRTLink流程软件跑了一下实验室的甲基化数据分析,因为公司给的好多数据对不上,因此用对应 ...

  2. MPC模型预测控制学习笔记-2021.10.27

    MPC模型预测控制学习笔记-点击目录就可以跳转 1. 笔者介绍 2. 参考资料 3. MPC分类 4. 数据的标准化与归一化 5. MATLAB-MPC学习笔记 5.1 获取测试信号:gensig( ...

  3. [2021.1.27多校省选模拟10]跑步(线段树合并)

    [2021.1.27多校省选模拟10]跑步 经典的树上启发式合并题目,维护对应子树的从当前点到子树内一个节点这个链待定,其他部分已经确定的方案数,这个东西按照对应点到根节点的路径点权和为下标存在一个权 ...

  4. [2021.1.27多校省选模拟10]染色(min-max容斥/二项式反演)

    [2021.1.27多校省选模拟10]染色 突然发现我对概率期望的理解不是很好... 部分分1:可以直接进行状压dp,然后按照题意模拟即可. 部分分2:首先可以发现这个问题是min_max容斥形式,然 ...

  5. PacBio三代全长扩增子测序对珊瑚共生虫黄藻和细菌群落进行精确分类

    研究背景 珊瑚与其共生微生物群落统称为珊瑚共生功能体,包含了光合甲藻以及与其保持长期互利共生关系的细菌.古菌.真菌.原生动物以及病毒等一系列微生物.这些与珊瑚相关的微生物在其宿主的适应性和生存中起着重 ...

  6. 2021.10.25-10.31 AI行业周刊(第69期):AI进化之路

    本周<Opencv基础及AI项目实战>以及<Pytorch模型推理及多任务通用范式>两门课程已经完结. 两门课程中,针对所有完成作业的同学,都颁发了毕业证书. 并且对于完成比较 ...

  7. python爬虫爬美女图片:“小甲鱼056节轮一只爬虫的自我修养4:OOXX” 最终更新2021.6.27日,更新后可用!!!

    目录 2020.10.25日更新 代码: 2020.11.10日更新 代码 2021.6.27日更新,更新后可用 2020.10.25日更新 需要改动有两个方面: 第一方面,网址编码有变化,如http ...

  8. Python 最近两条好消息:①TIOBE排名超过C和Java②新版本发布3.10.0,还有今天刚发布的《What’s New in Python(2021.10.15)》

    来自TIOBE的最新10月份统计数据显示,Python首次超越Java.JavaScript.C语言等,成为最受欢迎的编程语言.TIOBE过去20年一直在追踪编程语言的受欢迎程度,其数据来自于对25个 ...

  9. leetcode刷题记录2:进度64, 2021.10.23

    文章目录 数组的度(题目编号697:[link](https://leetcode-cn.com/problems/degree-of-an-array/)) 二叉搜索树(题目编号700:[link] ...

最新文章

  1. IE浏览器报错 ‘Rowspan’ 为空或不是对象
  2. java 最少使用(lru)置换算法_「Redis源码分析」Redis中的LRU算法实现
  3. 怎样更改SQL Server 2008的身份验证方式
  4. 前篇|信贷监控报表的设计
  5. 修改看板视图默认显示个数
  6. Python手册(Machine Learning)--statsmodels(TimeSeries)
  7. 女主学数学男主计算机,5本女主是高智商学霸大佬的现言,她十项全能,马甲无数,男主全程无条件宠妻...
  8. leapftp 软件,leapftp 软件的5大功能
  9. PCB通孔类焊盘封装
  10. Openwrt 镜像安装
  11. .NET实现Wap飞信协议
  12. 比特精灵是计算机病毒吗,[病毒防治]靠,我居然也中木马?
  13. 脚踩智能汽车春风,百度踏上千亿美元市值征程
  14. java程序员生日祝福语_给朋友过生日的祝福语
  15. 轻松完成销售业绩的6个技巧
  16. WeUI源码学习笔记一
  17. 安卓libc setenv函数内存泄漏
  18. Python避免缩进错误
  19. 如何用低成本方案解决室内超大场景下机器人定位与导航难题?
  20. 202012-5 星际旅行 C++暴力80分

热门文章

  1. python替换 输入手机号_python file模块 替换输入内容脚本
  2. YDOOK: Sanic: Python request post请求 上传照片或文件 详细具体步骤 亲测可用!
  3. linux 切换java_Linux中切换java的版本
  4. 高德地图手机端定位偏移问题
  5. html个人中心布局,html5前端开发笔记-个人中心
  6. 《组网技术》:路由器基本配置
  7. java转大写_java实现数字转大写的方法
  8. python代码书写_如何优雅的书写Python代码, python使用小技巧
  9. C语言程序设计 设计用函数实现模块化程序设计
  10. 第20节 核心交换机配置热备份详解及实验演示—基于Cisco Packet Tracer