Difference between revisions of "Kaiju"

From www.wiki.chlamdb.ch
Jump to navigation Jump to search
(Created page with " = assembly statistics = {| class=wikitable |- |n |n:1000 |n:N50 |min |median |mean |N50 |max |sum | |- |- |15 |15 |4 |31206 |120770 |143557 |210012 |531893 |2153...")
 
 
Line 1: Line 1:
  
−
= assembly statistics =
+
=annotation of the assembly with prokka =
−
{| class=wikitable
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
 
 
−
|-
 
−
|n
 
−
|n:1000
 
−
|n:N50
 
−
|min
 
−
|median
 
−
|mean
 
−
|N50
 
−
|max
 
−
|sum
 
−
|
 
−
 
 
−
|-
 
−
 
 
−
|-
 
−
|15
 
−
|15
 
−
|4
 
−
|31206
 
−
|120770
 
−
|143557
 
−
|210012
 
−
|531893
 
−
|2153368
 
−
|Genome\_Syngnamydia\_4K22011
 
−
 
 
−
|}
 
−
 
 
−
= annotation of the assembly with prokka version 1.11 =
 
−
* directiory: <tt>2018_03_02_Syngnamydia_salmonis/2018_03_02_annotation_initial_assembly</tt>
 
−
 
 
 
     prokka --locustag SYSA --genus Syngnamydia --species salmonis --strain 4K220114E9 --compliant --centre CHUV Genome_Syngnamydia_4K220114E9.fasta
 
     prokka --locustag SYSA --genus Syngnamydia --species salmonis --strain 4K220114E9 --compliant --centre CHUV Genome_Syngnamydia_4K220114E9.fasta
  
−
= kaiju =
+
=kaiju=
−
* directory: <tt>2018_03_02_Syngnamydia_salmonis/2018_03_23_kaiju_initial_assembly</tt>
+
==Setup of kaiju database (progenomes)==
  
−
== setup of kaiju database (progenomes) ==
+
*see https://github.com/bioinformatics-centre/kaiju
−
* see https://github.com/bioinformatics-centre/kaiju
 
  
 
     # Representative genomes from proGenomes
 
     # Representative genomes from proGenomes
 
     makeDB.sh -p
 
     makeDB.sh -p
  
−
== compare faa file to kaiju database ==
+
==Sompare faa file to kaiju database==
 
     kaiju -t ../progenomes/nodes.dmp -f ../progenomes/kaiju_db.fmi -i PROKKA_03062018.faa -p > output.txt
 
     kaiju -t ../progenomes/nodes.dmp -f ../progenomes/kaiju_db.fmi -i PROKKA_03062018.faa -p > output.txt
  
−
== generate summary file ==
+
==Generate summary file==
 
     kaijuReport -i output.txt -o report.tab -t ../progenomes/nodes.dmp -n ../progenomes/names.dmp -r phylum
 
     kaijuReport -i output.txt -o report.tab -t ../progenomes/nodes.dmp -n ../progenomes/names.dmp -r phylum
  
−
{| class=wikitable
+
{| class="wikitable"
−
 
 
−
 
 
−
 
 
  
 
|-
 
|-
Line 238: Line 191:
  
 
|}
 
|}
−
 
+
==Generate summary file to use for circos==
−
 
 
−
== generate summary file to use for circos ==
 
 
     addTaxonNames -t nodes.dmp -n names.dmp -i output.txt -o locus_taxonomy.tab -r phylum
 
     addTaxonNames -t nodes.dmp -n names.dmp -i output.txt -o locus_taxonomy.tab -r phylum
  
−
* <tt>locus_taxonomy.tab</tt> is a two colum file with: locus tag, phylum\_name
+
*<tt>locus_taxonomy.tab</tt> is a two colum file with: locus tag, phylum\_name
  
−
* need to be manually edited to add target phylum of interest (max 2, see below)
+
*need to be manually edited to add target phylum of interest (max 2, see below)
−
 
 
−
= self mapping & mummer2circos =
 
−
== execution ==
 
−
* directory: <tt>2018_03_02_Syngnamydia_salmonis/2018_03_02_self_mapping_initial_assembly</tt>
 
  
 +
=Self mapping & mummer2circos=
 +
==Execution (bbmap)==
 
     bbmap.sh ref=PROKKA_03022018.fna in1=4K220114E9DNA_CGGAGCCTCCTAGAGT_L002_R1_001_BHB2GGADXX.filt.fastq.gz in2=4K220114E9DNA_CGGAGCCTCCTAGAGT_L002_R2_001_BHB2GGADXX.filt.fastq.gz outm=bbmap_initial.bam
 
     bbmap.sh ref=PROKKA_03022018.fna in1=4K220114E9DNA_CGGAGCCTCCTAGAGT_L002_R1_001_BHB2GGADXX.filt.fastq.gz in2=4K220114E9DNA_CGGAGCCTCCTAGAGT_L002_R2_001_BHB2GGADXX.filt.fastq.gz outm=bbmap_initial.bam
−
 
−
<p class="verse">
 
−
bbmap.sh ref=PROKKA\_03022018.fna in1=4K220114E9DNA\_CGGAGCCTCCTAGAGT\_L002\_R1\_001\_BHB2GGADXX.filt.fastq.gz in2=4K220114E9DNA\_CGGAGCCTCCTAGAGT\_L002\_R2\_001\_BHB2GGADXX.filt.fastq.gz outm=bbmap\_initial.bam<br />
 
−
java -Djava.library.path=/home/tpillone/miniconda2/opt/bbmap-37.90/jni/ -ea -Xmx1561m -cp ''home/tpillone/miniconda2/opt/bbmap-37.90/current'' align2.BBMap build=1 overwrite=true fastareadlen=500 ref=PROKKA\_03022018.fna in1=4K220114E9DNA\_CGGAGCCTCCTAGAGT\_L002\_R1\_001\_BHB2GGADXX.filt.fastq.gz in2=4K220114E9DNA\_CGGAGCCTCCTAGAGT\_L002\_R2\_001\_BHB2GGADXX.filt.fastq.gz outm=bbmap\_initial.bam<br />
 
−
Executing align2.BBMap [build=1, overwrite=true, fastareadlen=500, ref=PROKKA\_03022018.fna, in1=4K220114E9DNA\_CGGAGCCTCCTAGAGT\_L002\_R1\_001\_BHB2GGADXX.filt.fastq.gz, in2=4K220114E9DNA\_CGGAGCCTCCTAGAGT\_L002\_R2\_001\_BHB2GGADXX.filt.fastq.gz, outm=bbmap\_initial.bam]<br />
 
−
Version 37.90 [build=1, overwrite=true, fastareadlen=500, ref=PROKKA\_03022018.fna, in1=4K220114E9DNA\_CGGAGCCTCCTAGAGT\_L002\_R1\_001\_BHB2GGADXX.filt.fastq.gz, in2=4K220114E9DNA\_CGGAGCCTCCTAGAGT\_L002\_R2\_001\_BHB2GGADXX.filt.fastq.gz, outm=bbmap\_initial.bam]<br />
 
−
<br />
 
−
Retaining first best site only for ambiguous mappings.<br />
 
−
NOTE: Ignoring reference file because it already appears to have been processed.<br />
 
−
NOTE: If you wish to regenerate the index, please manually delete ref/genome/1/summary.txt<br />
 
−
Set genome to 1<br />
 
−
<br />
 
−
Loaded Reference: 0.187 seconds.<br />
 
−
Loading index for chunk 1-1, build 1<br />
 
−
Generated Index: 0.777 seconds.<br />
 
−
Analyzed Index:  1.953 seconds.<br />
 
−
Found samtools 1.7<br />
 
−
Started output stream: 0.107 seconds.<br />
 
−
Cleared Memory:    0.149 seconds.<br />
 
−
Processing reads in paired-ended mode.<br />
 
−
Started read stream.<br />
 
−
Started 4 mapping threads.<br />
 
−
Detecting finished threads: 0, 1, 2, 3<br />
 
−
<br />
 
−
&#xa0;&#xa0;&#xa0;-------------&#x2013;&#x2014;  Results  -------------&#x2013;&#x2014;<br />
 
−
<br />
 
−
Genome:                1<br />
 
−
Key Length:            13<br />
 
−
Max Indel:            16000<br />
 
−
Minimum Score Ratio:  0.56<br />
 
−
Mapping Mode:        normal<br />
 
−
Reads Used:          80051666 (10086509916 bases)<br />
 
−
<br />
 
−
Mapping:          1740.577 seconds.<br />
 
−
Reads/sec:      45991.45<br />
 
−
kBases/sec:      5794.92<br />
 
−
<br />
 
−
<br />
 
−
Pairing data:  pct pairs num pairs pct bases   num bases<br />
 
−
<br />
 
−
mated pairs:      6.3830%   2554856   6.3830%   643823712<br />
 
−
bad pairs:        0.5098%   204058   0.5098%     51422616<br />
 
−
insert size avg:   572.74<br />
 
−
<br />
 
−
<br />
 
−
Read 1 data:      pct reads num reads pct bases   num bases<br />
 
−
<br />
 
−
mapped:            7.3722%   2950781   7.3722%   371798406<br />
 
−
unambiguous:      7.3702%   2949974   7.3702%   371696724<br />
 
−
ambiguous:        0.0020%       807   0.0020%       101682<br />
 
−
low-Q discards:    0.0000%         4   0.0000%         504<br />
 
−
<br />
 
−
perfect best site:   6.4366%   2576300   6.4366%   324613800<br />
 
−
semiperfect site:   6.4476%   2580705   6.4476%   325168830<br />
 
−
rescued:          0.0508%     20325<br />
 
−
<br />
 
−
Match Rate:            NA       NA 96.1995%   368304608<br />
 
−
Error Rate:      12.3749%   365158   3.7573%     14384862<br />
 
−
Sub Rate:        12.0228%   354768   0.6510%     2492378<br />
 
−
Del Rate:          1.7929%     52906   2.8880%     11056739<br />
 
−
Ins Rate:          2.6004%     76731   0.2183%       835745<br />
 
−
N Rate:            0.7226%     21323   0.0433%       165675<br />
 
−
<br />
 
−
<br />
 
−
Read 2 data:      pct reads num reads pct bases   num bases<br />
 
−
<br />
 
−
mapped:            7.1449%   2859815   7.1449%   360336690<br />
 
−
unambiguous:      7.1430%   2859047   7.1430%   360239922<br />
 
−
ambiguous:        0.0019%       768   0.0019%       96768<br />
 
−
low-Q discards:    0.1894%     75803   0.1894%     9551178<br />
 
−
<br />
 
−
perfect best site:   5.6690%   2269075   5.6690%   285903450<br />
 
−
semiperfect site:   5.6785%   2272877   5.6785%   286382502<br />
 
−
rescued:          0.0736%     29444<br />
 
−
<br />
 
−
Match Rate:            NA       NA 95.1404%   355147035<br />
 
−
Error Rate:      20.5184%   586790   4.8208%     17995311<br />
 
−
Sub Rate:        20.2023%   577748   1.1375%     4246210<br />
 
−
Del Rate:          1.7640%     50448   3.4693%     12950466<br />
 
−
Ins Rate:          2.5537%     73030   0.2139%       798635<br />
 
−
N Rate:            0.5302%     15164   0.0388%       144810<br />
 
−
<br />
 
−
Total time:    1743.960 seconds.<br />
 
−
</p>
 
  
 
     mummer2circos.py -r PROKKA_03022018.fna -q GCF_000237205.1/GCF_000237205.1_ASM23720v1_genomic.fna jellyfish_metagenome/FLZN01000001.fna jellyfish_metagenome/FLZO01000001.fna jellyfish_metagenome/FUHP01000001.fna jellyfish_metagenome/OBEO01000001.fna GCF_000020225.1/GCF_000020225.1_ASM2022v1_genomic.fna GCF_000196115.1/GCF_000196115.1_ASM19611v1_genomic.fna -s PROKKA_03022018.depth -gb PROKKA_03022018.gbf -l -a promer -lt locus_taxonomy.tab
 
     mummer2circos.py -r PROKKA_03022018.fna -q GCF_000237205.1/GCF_000237205.1_ASM23720v1_genomic.fna jellyfish_metagenome/FLZN01000001.fna jellyfish_metagenome/FLZO01000001.fna jellyfish_metagenome/FUHP01000001.fna jellyfish_metagenome/OBEO01000001.fna GCF_000020225.1/GCF_000020225.1_ASM2022v1_genomic.fna GCF_000196115.1/GCF_000196115.1_ASM19611v1_genomic.fna -s PROKKA_03022018.depth -gb PROKKA_03022018.gbf -l -a promer -lt locus_taxonomy.tab
  
−
* <tt>-lt</tt> allow to color CDS based on a taxon table of the followinf format
+
*<tt>-lt</tt> allow to color CDS based on a taxon table of the followinf format
−
 
+
*
−
<p class="verse">
+
<syntaxhighlight lang="bash">
−
#Chlamydiae<br />
+
#Chlamydiae
−
\\#Bacteroidetes<br />
+
#Bacteroidetes
−
SYSA\_00001<br />
+
SYSA_00001
−
SYSA\_00002 Chlamydiae<br />
+
SYSA_00002 Chlamydiae
−
SYSA\_00003 Chlamydiae<br />
+
SYSA_00003 Chlamydiae
−
SYSA\_00004 Chlamydiae<br />
+
SYSA_00004 Chlamydiae
 +
</syntaxhighlight><br />
 
</p>
 
</p>
  
−
* the 2 first lines indicates the taxon to color (with #)
+
*the 2 first lines indicates the taxon to color (with #)
  
−
* the folowing lines indocates the taxonomy of each locus
+
*the folowing lines indocates the taxonomy of each locus

Latest revision as of 22:10, 30 January 2019

annotation of the assembly with prokka

   prokka --locustag SYSA --genus Syngnamydia --species salmonis --strain 4K220114E9 --compliant --centre CHUV Genome_Syngnamydia_4K220114E9.fasta

kaiju

Setup of kaiju database (progenomes)

   # Representative genomes from proGenomes
   makeDB.sh -p

Sompare faa file to kaiju database

   kaiju -t ../progenomes/nodes.dmp -f ../progenomes/kaiju_db.fmi -i PROKKA_03062018.faa -p > output.txt

Generate summary file

   kaijuReport -i output.txt -o report.tab -t ../progenomes/nodes.dmp -n ../progenomes/names.dmp -r phylum
% reads phylum
44.844597 909 Chlamydiae
7.153429 145 Proteobacteria
3.404046 69 Firmicutes
3.157375 64 Bacteroidetes
1.184016 24 Actinobacteria
0.542674 11 Euryarchaeota
0.444006 9 Cyanobacteria
0.345338 7 Spirochaetes
0.246670 5 Verrucomicrobia
0.246670 5 Candidatus Cloacimonetes
0.197336 4 Deinococcus-Thermus
0.197336 4 Acidobacteria
0.197336 4 Chloroflexi
0.197336 4 Planctomycetes
0.148002 3 Thermodesulfobacteria
0.098668 2 Chlorobi
0.098668 2 Fusobacteria
0.098668 2 Thermotogae
0.098668 2 Balneolaeota
0.049334 1 Candidatus Aminicenantes
0.049334 1 Dictyoglomi
0.049334 1 Gemmatimonadetes
0.049334 1 Aquificae
0.049334 1 Deferribacteres
0.049334 1 Candidatus Poribacteria
0.049334 1 Synergistetes
0.049334 1 Tenericutes
0.049334 1 Thaumarchaeota
0.049334 1 Calditrichaeota
0.000000 0 Viruses
0.789344 16 cannot be assigned to a phylum
35.816479 726 unclassified

Generate summary file to use for circos

   addTaxonNames -t nodes.dmp -n names.dmp -i output.txt -o locus_taxonomy.tab -r phylum
  • locus_taxonomy.tab is a two colum file with: locus tag, phylum\_name
  • need to be manually edited to add target phylum of interest (max 2, see below)

Self mapping & mummer2circos

Execution (bbmap)

   bbmap.sh ref=PROKKA_03022018.fna in1=4K220114E9DNA_CGGAGCCTCCTAGAGT_L002_R1_001_BHB2GGADXX.filt.fastq.gz in2=4K220114E9DNA_CGGAGCCTCCTAGAGT_L002_R2_001_BHB2GGADXX.filt.fastq.gz outm=bbmap_initial.bam
   mummer2circos.py -r PROKKA_03022018.fna -q GCF_000237205.1/GCF_000237205.1_ASM23720v1_genomic.fna jellyfish_metagenome/FLZN01000001.fna jellyfish_metagenome/FLZO01000001.fna jellyfish_metagenome/FUHP01000001.fna jellyfish_metagenome/OBEO01000001.fna GCF_000020225.1/GCF_000020225.1_ASM2022v1_genomic.fna GCF_000196115.1/GCF_000196115.1_ASM19611v1_genomic.fna -s PROKKA_03022018.depth -gb PROKKA_03022018.gbf -l -a promer -lt locus_taxonomy.tab
  • -lt allow to color CDS based on a taxon table of the followinf format
#Chlamydiae
#Bacteroidetes
SYSA_00001
SYSA_00002 Chlamydiae
SYSA_00003 Chlamydiae
SYSA_00004 Chlamydiae


  • the 2 first lines indicates the taxon to color (with #)
  • the folowing lines indocates the taxonomy of each locus