<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[lumpy 结构突变分析流程]]></title><description><![CDATA[<p dir="auto">lumpyexpress</p>
<p dir="auto">1.比对<br />
<a href="https://github.com/hall-lab/speedseq" rel="nofollow ugc">https://github.com/hall-lab/speedseq</a></p>
<pre><code>speedseq align -R "@RG\tID:id\tSM:sample\tLB:lib" \
    human_g1k_v37.fasta \
    sample.1.fq \
    sample.2.fq
</code></pre>
<ol start="2">
<li>call</li>
</ol>
<pre><code>lumpyexpress \
    -B sample1.bam,sample2.bam,sample3.bam \
    -S sample1.splitters.bam,sample2.splitters.bam,sample3.splitters.bam \
    -D sample1.discordants.bam,sample2.discordants.bam,sample3.discordants.bam \
    -o multi_sample.vcf
</code></pre>
<p dir="auto">3.svtyper call genotype<br />
svtyper \<br />
-B sample.bam <br />
-S sample.splitters.bam <br />
-i sample.vcf<br />
&gt; sample.gt.vcf</p>
<p dir="auto">======<br />
参考<br />
<a href="https://academic.oup.com/gigascience/article/8/9/giz110/5565134" rel="nofollow ugc">https://academic.oup.com/gigascience/article/8/9/giz110/5565134</a><br />
为什么在lumpy之后要执行 svtyper?<br />
SpeedSeq: ultra-fast personal genome analysis and interpretation</p>
<p dir="auto"><a href="http://webcache.googleusercontent.com/search?q=cache:F_SIpLosvKQJ:https://www.jayethomas.com/tfblxn/lumpy-structural-variant&amp;newwindow=1&amp;hl=zh-CN&amp;strip=1&amp;vwsrc=0" rel="nofollow ugc">http://webcache.googleusercontent.com/search?q=cache:F_SIpLosvKQJ:https://www.jayethomas.com/tfblxn/lumpy-structural-variant&amp;newwindow=1&amp;hl=zh-CN&amp;strip=1&amp;vwsrc=0</a><br />
LUMPY (Layer et al., 2014) is only a variation detection tool, thus the genotype results need to be further confirmed by SVTyper (Chiang et al., 2015).</p>
]]></description><link>http://an.forum.genostack.com/topic/397/lumpy-结构突变分析流程</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 09:37:15 GMT</lastBuildDate><atom:link href="http://an.forum.genostack.com/topic/397.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Aug 2021 10:28:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to lumpy 结构突变分析流程 on Mon, 25 Oct 2021 02:38:40 GMT]]></title><description><![CDATA[<p dir="auto">svtools vcfpaste <br />
-m merged.vcf <br />
-f cn.list <br />
-q <br />
| bgzip -c \</p>
<blockquote>
<p dir="auto">merged.sv.gt.cn.vcf.gz</p>
</blockquote>
<p dir="auto">IOError: [Errno 24] Too many open files: '../cn/ZGSP-9.vcf'<br />
ulimit -n 2048  扩大文件限制</p>
]]></description><link>http://an.forum.genostack.com/post/841</link><guid isPermaLink="true">http://an.forum.genostack.com/post/841</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Mon, 25 Oct 2021 02:38:40 GMT</pubDate></item><item><title><![CDATA[Reply to lumpy 结构突变分析流程 on Sun, 24 Oct 2021 04:02:22 GMT]]></title><description><![CDATA[<p dir="auto">执行cnvnator 报错，<br />
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!<br />
Invoking:<br />
x86_64-conda_cos6-linux-gnu-c++  -O3 -DNDEBUG -xc++ -E -v /dev/null 2&gt;&amp;1 | sed -n -e '/^.include/,${' -e '/^ /.*++/p' -e '}'<br />
Results was:<br />
With exit code 0<br />
解决办法：<br />
x86_64-conda_cos6-linux-gnu-c++ 这个程序在环境中<br />
export PATH=$PATH:/opt/miniconda3/envs/cnvnator_env/bin/</p>
<p dir="auto">svtools依赖python2.7  cnvnator 依赖python3.6 但是svtools会调用cnvnator</p>
]]></description><link>http://an.forum.genostack.com/post/840</link><guid isPermaLink="true">http://an.forum.genostack.com/post/840</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Sun, 24 Oct 2021 04:02:22 GMT</pubDate></item><item><title><![CDATA[Reply to lumpy 结构突变分析流程 on Thu, 21 Oct 2021 06:04:22 GMT]]></title><description><![CDATA[<p dir="auto">CNVnator非常难安装  用下面的conda环境<br />
conda create -n cnvnator_env python=3.6<br />
conda activate cnvnator_env<br />
conda install -c conda-forge root_base=6.20<br />
conda install -c conda-forge -c bioconda cnvnator</p>
<p dir="auto">./cnvnator -root file.root -tree file.bam</p>
<p dir="auto">nohup parallel "cnvnator -root root_libs/{= s:.[^.]+$::; s:.[^.]+$::; s:.[^.]+$::; s:.[^.]+$::;  s:.<em>/::; =}.root -tree {}"  ::: /ceph_disk2/yancaofenxi/raw_bam/ZGSP-</em>.sv.alignment.sorted.bam &amp;</p>
]]></description><link>http://an.forum.genostack.com/post/830</link><guid isPermaLink="true">http://an.forum.genostack.com/post/830</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Thu, 21 Oct 2021 06:04:22 GMT</pubDate></item><item><title><![CDATA[Reply to lumpy 结构突变分析流程 on Wed, 20 Oct 2021 16:30:36 GMT]]></title><description><![CDATA[<p dir="auto">nohup parallel "svtyper -B {} -i all.gt.merged.with.f20.vcf &gt; gt/{= s:.[^.]+$::; s:.[^.]+$::; s:.[^.]+$::; s:.[^.]+$::;  s:.<em>/::; =}.vcf.tmp"  ::: /ceph_disk2/yancaofenxi/raw_bam/ZGSP-</em>.sv.alignment.sorted.bam &amp;</p>
<p dir="auto">通过.*/ 去掉路径</p>
]]></description><link>http://an.forum.genostack.com/post/829</link><guid isPermaLink="true">http://an.forum.genostack.com/post/829</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Wed, 20 Oct 2021 16:30:36 GMT</pubDate></item><item><title><![CDATA[Reply to lumpy 结构突变分析流程 on Sat, 23 Oct 2021 17:31:35 GMT]]></title><description><![CDATA[<p dir="auto">验证svtools</p>
<pre><code>cat gt.merged.vcf \
| vawk --header '{  $6="."; print }' \
| svtools genotype \
  -B ../raw_bam/ZGSP-1.sv.alignment.sorted.bam \
| sed 's/PR...=[0-9\.e,-]*\(;\)\{0,1\}\(\t\)\{0,1\}/\2/g' - \
&gt; gt/ZGSP-1.vcf
</code></pre>
<pre><code>parallel "svtyper -B {} -i gt.merged.vcf &gt; gt/{= s:\.[^.]+$::; s:\.[^.]+$::; s:\.[^.]+$::; s:\.[^.]+$::; s:\..*/::; =}.vcf.tmp"  ::: ../raw_bam/ZGSP-*.sv.alignment.sorted.bam
</code></pre>
<p dir="auto">需要将染色体独立成文件 放到某个目录 如chroms</p>
<pre><code>#!/bin/bash
splitfa(){
 header=""
 while read line ; do
   if [ ${line:0:1} == "&gt;" ] ; then
    header=$line
    echo "$header" &gt;&gt; ${header:1}.fa
   else
    seq="$line"
    echo "$seq" &gt;&gt; ${header:1}.fa
   fi
  done &lt; $1
}

splitfa $1

</code></pre>
<pre><code>nohup parallel "cnvnator -root {= s:\.[^.]+$::; s:\.[^.]+$::; s:\.[^.]+$::; s:\.[^.]+$::;  s:.*/::; =}.root -tree {}"  ::: /ceph_disk2/yancaofenxi/raw_bam/ZGSP-*.sv.alignment.sorted.bam &amp;
nohup parallel "cnvnator -root {} -his 100 -d chroms"  ::: ../root_libs/ZGSP-*.root &amp;
nohup parallel "cnvnator -root {} -his 1000 -d ../chroms"  ::: ZGSP-*.root &amp;
nohup parallel "cnvnator -root {} -stat 100"  ::: ZGSP-*.root &amp;
 nohup parallel "cnvnator -root {} -stat 1000"  ::: ZGSP-*.root &amp;

</code></pre>
<pre><code>nohup parallel "svtools copynumber --cnvnator /opt/miniconda3/envs/cnvnator_env/bin/cnvnator -s {=  s:\.[^.]+$::; s:\.[^.]+$::;  s:.*/::; =} -w 100 -r root_libs/{=  s:\.[^.]+$::; s:\.[^.]+$::;  s:.*/::; =}.root -c coordinates -i {} &gt; cn/{=  s:\.[^.]+$::; s:\.[^.]+$::;  s:.*/::; =}.vcf"  ::: gt/*.vcf.tmp  &amp;
</code></pre>
<p dir="auto">注意：ROOT依赖下面的包</p>
<pre><code>sudo apt-get install dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev \
libxft-dev libxext-dev python libssl-dev
</code></pre>
]]></description><link>http://an.forum.genostack.com/post/824</link><guid isPermaLink="true">http://an.forum.genostack.com/post/824</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Sat, 23 Oct 2021 17:31:35 GMT</pubDate></item><item><title><![CDATA[Reply to lumpy 结构突变分析流程 on Wed, 15 Sep 2021 07:02:47 GMT]]></title><description><![CDATA[<p dir="auto">svtyper比较慢 用smoove试试</p>
<p dir="auto">sudo docker run -d  -v /ceph_disk3/sv_henan_yang/smoove/:/vcf -v /ceph_disk3/sv_henan_yang/raw_bam/:/bams brentp/smoove sh -c  "ls /bams/ZGSP-*.sv.alignment.sorted.bam | xargs smoove genotype -p 10 --name prunus_sv --outdir /vcf --fasta /vcf/Prunus_persica_v2.0.a1_scaffolds.fasta --vcf /vcf/gt.merged.vcf "</p>
]]></description><link>http://an.forum.genostack.com/post/813</link><guid isPermaLink="true">http://an.forum.genostack.com/post/813</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Wed, 15 Sep 2021 07:02:47 GMT</pubDate></item><item><title><![CDATA[Reply to lumpy 结构突变分析流程 on Tue, 07 Sep 2021 12:28:03 GMT]]></title><description><![CDATA[<p dir="auto">多个样本的处理方式<br />
svtyper -B $(ls sample*.bam | paste -sd",") -i lumpy.raw.out.vcf &gt; project.gt.vcf</p>
]]></description><link>http://an.forum.genostack.com/post/810</link><guid isPermaLink="true">http://an.forum.genostack.com/post/810</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Tue, 07 Sep 2021 12:28:03 GMT</pubDate></item><item><title><![CDATA[Reply to lumpy 结构突变分析流程 on Fri, 03 Sep 2021 07:50:19 GMT]]></title><description><![CDATA[<p dir="auto">河南项目的过程</p>
<pre><code>bwa mem -t 4 -M -R "@RG\tID:ZGSP-2\tPL:Illumina\tLB:ZGSP-2\tSM:ZGSP-2"  Prunus_persica_v2.0.a1_scaffolds.fasta ZGSP-2.R1.fq.gz ZGSP-2.R2.fq.gz  \
    | samblaster --excludeDups --addMateTags --maxSplitCount 2 --minNonOverlap 20 \
    | samtools view -S -b - \
    &gt; sample.bam
</code></pre>
<pre><code>samtools view -h ZGSP-683.alignment.sorted.markdup.bam      | /opt/lumpy-sv/scripts/extractSplitReads_BwaMem -i stdin     | samtools view -Sb -     &gt; ZGSP-683.splitters.unsorted.bam
samtools sort ZGSP-683.split.unsorted.bam -o ZGSP-683.split.sorted.bam
</code></pre>
<pre><code>samtools view -b -F 1294  ZGSP-683.alignment.sorted.markdup.bam &gt; ZGSP-683.discordants.unsorted.bam
</code></pre>
<p dir="auto">1462  nohup time lumpyexpress -B ../ZGSP-1.sv.alignment.sorted.bam -S ../ZGSP-1.split.sorted.bam -D ../ZGSP-1.discordants.sorted.bam -P -o 1.vcf &gt;&gt;1.log 2&gt;&amp;1 &amp;<br />
1468  nohup time lumpyexpress -B ../ZGSP-3.sv.alignment.sorted.bam -S ../ZGSP-3.split.sorted.bam -D ../ZGSP-3.discordants.sorted.bam -P -o 3.vcf &gt;&gt;2.log 2&gt;&amp;1 &amp;<br />
1493  samtools index ZGSP-1.sv.alignment.sorted.bam<br />
1495  samtools index ZGSP-3.sv.alignment.sorted.bam<br />
1510  nohup time svtyper -B ../ZGSP-1.sv.alignment.sorted.bam -S ../ZGSP-1.split.sorted.bam -i 1.vcf &gt; 1.gt.svtyper.vcf 2&gt;&gt;sv.1.log  &amp;<br />
1512  nohup time svtyper -B ../ZGSP-3.sv.alignment.sorted.bam -S ../ZGSP-3.split.sorted.bam -i 3.vcf &gt; 3.gt.svtyper.vcf 2&gt;&gt;sv.3.log  &amp;<br />
1528  svtools lsort 1.gt.svtyper.vcf 3.gt.svtyper.vcf &gt;gt.sorted.vcf<br />
1532  svtools lmerge -i gt.sorted.vcf &gt;gt.merged.vcf<br />
1535  svtyper -B ../ZGSP-1.sv.alignment.sorted.bam,-B ../ZGSP-3.sv.alignment.sorted.bam -i gt.merged.vcf &gt;all.vcf<br />
注意 svtyper多个样本要哦逗号分开 不能是多个 -B  多个-B只去第一个样本</p>
]]></description><link>http://an.forum.genostack.com/post/782</link><guid isPermaLink="true">http://an.forum.genostack.com/post/782</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Fri, 03 Sep 2021 07:50:19 GMT</pubDate></item></channel></rss>