<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Bactopia Blog</title>
        <link>https://bactopia.io/blog</link>
        <description>News, tutorials, and updates from the Bactopia project.</description>
        <lastBuildDate>Sun, 24 Mar 2024 00:00:00 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <copyright>Copyright 2026 Robert A. Petit III</copyright>
        <item>
            <title><![CDATA[Using Bactopia with AllTheBacteria Assemblies]]></title>
            <link>https://bactopia.io/blog/allthebacteria-tutorial</link>
            <guid>https://bactopia.io/blog/allthebacteria-tutorial</guid>
            <pubDate>Sun, 24 Mar 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[Learn how to use Bactopia to analyze nearly 2,000,000 bacterial assemblies from the AllTheBacteria project.]]></description>
            <content:encoded><![CDATA[<p><a href="https://github.com/iqbal-lab-org/AllTheBacteria" target="_blank" rel="noopener noreferrer" class="">AllTheBacteria</a> (ATB) is a collection
of nearly 2,000,000 bacterial assemblies. In this post you'll learn how to use Bactopia to
seamlessly analyze these assemblies with the available <a class="" href="https://bactopia.io/bactopia-tools">Bactopia Tools</a>.</p>
<!-- -->
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="allthebacteria">AllTheBacteria<a href="https://bactopia.io/blog/allthebacteria-tutorial#allthebacteria" class="hash-link" aria-label="Direct link to AllTheBacteria" title="Direct link to AllTheBacteria" translate="no">​</a></h2>
<p><a href="https://www.ebi.ac.uk/research/iqbal/" target="_blank" rel="noopener noreferrer" class="">Zamin Iqbal's Group</a>, who brought us <a href="https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.3001421" target="_blank" rel="noopener noreferrer" class="">661k bacterial assemblies</a>,
has now taken it a step further with <a href="https://www.biorxiv.org/content/10.1101/2024.03.08.584059v1" target="_blank" rel="noopener noreferrer" class="">AllTheBacteria</a>.
As someone once tasked with assembling "all the <em>Staphylococcus aureus</em> genomes" (<em>although, it was only
about 700 samples in 2010!</em>), this is truly an impressive feat, and a valuable community resource!
With the latest assemblies, the collection is now nearly 2,000,000 bacterial assemblies!</p>
<p>Similar to their previous methods, the latest version of AllTheBacteria uses <a href="https://github.com/tseemann/shovill" target="_blank" rel="noopener noreferrer" class="">Shovill</a>
for assembly. In addition, each assembly has basic metrics calculated, undergoes taxonomic
abundance estimation, and has sketches made available. For more details about this project,
please see:</p>
<ul>
<li class="">Preprint: <em><a href="https://www.biorxiv.org/content/10.1101/2024.03.08.584059v1" target="_blank" rel="noopener noreferrer" class="">AllTheBacteria - all bacterial genomes assembled, available and searchable</a></em></li>
<li class="">GitHub: <a href="https://github.com/iqbal-lab-org/AllTheBacteria" target="_blank" rel="noopener noreferrer" class="">AllTheBacteria</a></li>
</ul>
<p>Since Zamin revealed the latest updates on AllTheBacteria, I've been wondering: <em>How could Bactopia
users take advantage these assemblies? Especially, through available <a class="" href="https://bactopia.io/bactopia-tools">Bactopia Tools</a>?</em></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="why-bactopia-tools">Why Bactopia Tools?<a href="https://bactopia.io/blog/allthebacteria-tutorial#why-bactopia-tools" class="hash-link" aria-label="Direct link to Why Bactopia Tools?" title="Direct link to Why Bactopia Tools?" translate="no">​</a></h2>
<p>The really nice thing about Bactopia Tools is they make it super easy to run <a class="" href="https://bactopia.io/bactopia-tools">60 additional analyses</a>
on your genomes. It's really as simple as adding <code>--wf &lt;tool&gt;</code> to your Bactopia command, then Bactopia
will then handle the rest for you, including container selection and audit trails.</p>
<p>Obviously, I'm a bit biased here, but utilizing Bactopia Tools in this situation would
greatly streamline a lot of downstream analyses of AllTheBacteria assemblies. I think this
would allow researchers to quickly get to the science behind these assemblies.</p>
<p>To give you an idea, there are currently 38 Bactopia Tools that use assemblies as inputs.
In other words, each of these tools would be easy to run on the 2,000,000 AllTheBacteria
assemblies.</p>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Expand to see the list of Bactopia Tools</summary><div><div class="collapsibleContent_i85q">
<!-- -->
<div class="theme-admonition theme-admonition-tip admonition_xJq3 alert alert--success"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"></path></svg></span>tip</div><div class="admonitionContent_BuS1"><p>Each of the tools listed below accepts a single assembly as input.</p>




























































































































































<table><thead><tr><th>Tool</th><th>Description</th></tr></thead><tbody><tr><td><a class="" href="https://bactopia.io/bactopia-tools/bakta">bakta</a></td><td>Rapid annotation of bacterial genomes &amp; plasmids</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/fastani">fastani</a></td><td>Fast alignment-free computation of whole-genome Average Nucleotide Identity (ANI)</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/gtdb">gtdb</a></td><td>Identify marker genes and assign taxonomic classifications</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/mashtree">mashtree</a></td><td>Create a trees using Mash distances</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/abricate">abricate</a></td><td>Mass screening of contigs for antimicrobial and virulence genes</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/abritamr">abritamr</a></td><td>A NATA accredited tool for reporting the presence of antimicrobial resistance genes</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/agrvate">agrvate</a></td><td>Rapid identification of Staphylococcus aureus agr locus type and agr operon variants</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/amrfinderplus">amrfinderplus</a></td><td>Identify antimicrobial resistance in genes or proteins</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/btyper3">btyper3</a></td><td>Taxonomic classification of Bacillus cereus group isolates</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/busco">busco</a></td><td>Assembly completeness based on evolutionarily informed expectations</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/checkm">checkm</a></td><td>Assess the assembly quality of your microbial samples</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/ectyper">ectyper</a></td><td>In-silico prediction of Escherichia coli serotype</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/emmtyper">emmtyper</a></td><td>emm-typing of Streptococcus pyogenes assemblies</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/gamma">gamma</a></td><td>Identification, classification, and annotation of translated gene matches</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/hicap">hicap</a></td><td>Identify cap locus serotype and structure in your Haemophilus influenzae assemblies</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/hpsuissero">hpsuissero</a></td><td>Rapid Haemophilus parasuis Serotyping of assemblies</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/kleborate">kleborate</a></td><td>Screen for MLST, sub-species, and other Klebsiella related genes of interest</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/legsta">legsta</a></td><td>Typing of Legionella pneumophila assemblies</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/lissero">lissero</a></td><td>Serogroup typing prediction for Listeria monocytogenes</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/mashdist">mashdist</a></td><td>Calculate Mash distances between sequences</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/mcroni">mcroni</a></td><td>Sequence variation in mobilized colistin resistance (mcr-1) genes</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/meningotype">meningotype</a></td><td>Serotyping of Neisseria meningitidis</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/mlst">mlst</a></td><td>Scan contig files against PubMLST typing schemes</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/mobsuite">mobsuite</a></td><td>Reconstruct and annotate plasmids in bacterial assemblies</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/pasty">pasty</a></td><td>Serogrouping of Pseudomonas aeruginosa isolates</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/pbptyper">pbptyper</a></td><td>Penicillin Binding Protein (PBP) typer for Streptococcus pneumoniae</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/phispy">phispy</a></td><td>Predict prophages in bacterial genomes</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/plasmidfinder">plasmidfinder</a></td><td>Plasmid identification from assemblies</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/prokka">prokka</a></td><td>Whole genome annotation of small genomes (bacterial, archeal, viral)</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/quast">quast</a></td><td>Assess the quality of assembled contigs</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/rgi">rgi</a></td><td>Predict antibiotic resistance from assemblies</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/seqsero2">seqsero2</a></td><td>Salmonella serotype prediction from reads or assemblies</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/shigeifinder">shigeifinder</a></td><td>Shigella and EIEC serotyping from assemblies</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/sistr">sistr</a></td><td>Serovar prediction of Salmonella assemblies</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/spatyper">spatyper</a></td><td>Computational method for finding spa types in Staphylococcus aureus</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/stecfinder">stecfinder</a></td><td>Serotyping Shigella toxin producing Escherichia coli genomes</td></tr><tr><td><a class="" href="https://bactopia.io/bactopia-tools/ssuissero">ssuissero</a></td><td>Rapid Streptococcus suis Serotyping of assemblies</td></tr></tbody></table></div></div>
</div></div></details>
<div class="theme-admonition theme-admonition-danger admonition_xJq3 alert alert--danger"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"></path></svg></span>Bactopia Tools require samples processed with Bactopia</div><div class="admonitionContent_BuS1"><p>One of the key features of Bactopia Tools, is they utilize Bactopia outputs to rapidly
identify and begin analysis. AllTheBacteria assemblies were not processed by Bactopia,
so they aren't compatible with Bactopia Tools. But, no worries, with a little work we
can make this a possibility!</p></div></div>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="bactopia-atb-formatter"><code>bactopia atb-formatter</code><a href="https://bactopia.io/blog/allthebacteria-tutorial#bactopia-atb-formatter" class="hash-link" aria-label="Direct link to bactopia-atb-formatter" title="Direct link to bactopia-atb-formatter" translate="no">​</a></h2>
<p>Bactopia already allows assemblies as inputs, but I didn't want users to have to go through the
full Bactopia pipeline to use the Bactopia Tools. Instead, I wanted to make a quick and easy way
for users to go directly to using Bactopia Tools. To accomplish this, I created a new Bactopia
command called <a href="https://github.com/bactopia/bactopia-py?tab=readme-ov-file#all-the-bacteria-atb" target="_blank" rel="noopener noreferrer" class="">atb-formatter</a>
(<em>AllTheBacteria Formatter</em>). With <code>atb-formatter</code>, the necessary Bactopia output directory
structure will be created from a directory of _AllTheBacteria assemblies.</p>
<div class="theme-admonition theme-admonition-tip admonition_xJq3 alert alert--success"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"></path></svg></span>AllTheBacteria assemblies can be used with Bactopia Tools!</div></div>
<p>That's cool and all, but let's actually demonstrate the usage of <code>atb-formatter</code> on some
<em>Legionella pneumophila</em> assemblies from AllTheBacteria.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="example-usage-for-legionella-pneumophila">Example Usage for <em>Legionella pneumophila</em><a href="https://bactopia.io/blog/allthebacteria-tutorial#example-usage-for-legionella-pneumophila" class="hash-link" aria-label="Direct link to example-usage-for-legionella-pneumophila" title="Direct link to example-usage-for-legionella-pneumophila" translate="no">​</a></h2>
<p>To demonstrate the usage of <code>bactopia atb-formatter</code>, I will use assemblies for
<em>Legionella pneumophila</em> from AllTheBacteria and run <a href="https://github.com/tseemann/legsta" target="_blank" rel="noopener noreferrer" class="">legsta</a>,
a typing tool for <em>L. pneumophila</em> assemblies, written by <a href="https://www.doherty.edu.au/people/associate-professor-torsten-seemann" target="_blank" rel="noopener noreferrer" class="">Torsten Seeman</a>,
To be specific, I will run legsta from the available <a class="" href="https://bactopia.io/bactopia-tools/legsta">Bactopia Tool</a>.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="getting-setup">Getting Setup<a href="https://bactopia.io/blog/allthebacteria-tutorial#getting-setup" class="hash-link" aria-label="Direct link to Getting Setup" title="Direct link to Getting Setup" translate="no">​</a></h3>
<p>Before we get started, you'll need to have Bactopia installed. If you haven't done this yet,
please see the <a class="" href="https://bactopia.io/installation">installation instructions</a>.</p>
<p>You will also want to make sure you are using at least version 3.0.1 of Bactopia, as this is
the first release to have the <code>atb-formatter</code> command.</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token plain">bactopia </span><span class="token parameter variable" style="color:#36acaa">--version</span><span class="token plain"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">bactopia </span><span class="token number" style="color:#36acaa">3.0</span><span class="token plain">.1</span><br></div></code></pre></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="download-the-assemblies">Download the Assemblies<a href="https://bactopia.io/blog/allthebacteria-tutorial#download-the-assemblies" class="hash-link" aria-label="Direct link to Download the Assemblies" title="Direct link to Download the Assemblies" translate="no">​</a></h3>
<p>First I will download the <em>L. pneumophila</em> assemblies from AllTheBacteria, then extract
them into a folder called <code>legionella-assemblies</code>. Easy enough!</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token function" style="color:#d73a49">mkdir</span><span class="token plain"> atb-legionella</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token builtin class-name">cd</span><span class="token plain"> atb-legionella</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token comment" style="color:#999988;font-style:italic"># Download the assemblies</span><span class="token plain"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token function" style="color:#d73a49">wget</span><span class="token plain"> https://ftp.ebi.ac.uk/pub/databases/AllTheBacteria/Releases/0.1/assembly/legionella_pneumophila__01.asm.tar.xz</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token function" style="color:#d73a49">wget</span><span class="token plain"> https://ftp.ebi.ac.uk/pub/databases/AllTheBacteria/Releases/0.1/assembly/legionella_pneumophila__02.asm.tar.xz</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token comment" style="color:#999988;font-style:italic"># Extract the assemblies</span><span class="token plain"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token function" style="color:#d73a49">mkdir</span><span class="token plain"> legionella-assemblies</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token function" style="color:#d73a49">tar</span><span class="token plain"> </span><span class="token parameter variable" style="color:#36acaa">-C</span><span class="token plain"> legionella-assemblies </span><span class="token parameter variable" style="color:#36acaa">-xJf</span><span class="token plain"> legionella_pneumophila__01.asm.tar.xz</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token function" style="color:#d73a49">tar</span><span class="token plain"> </span><span class="token parameter variable" style="color:#36acaa">-C</span><span class="token plain"> legionella-assemblies </span><span class="token parameter variable" style="color:#36acaa">-xJf</span><span class="token plain"> legionella_pneumophila__02.asm.tar.xz</span><br></div></code></pre></div></div>
<p>At the time of writing this, there were 5,393 <em>L. pneumophila</em> assemblies available from
AllTheBacteria. While its not <em>Salmonella enterica</em> with it's hundreds of thousands of assemblies,
it's a great number to demonstrate the usage of <code>bactopia atb-formatter</code>.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="create-the-bactopia-directory-structure">Create the Bactopia Directory Structure<a href="https://bactopia.io/blog/allthebacteria-tutorial#create-the-bactopia-directory-structure" class="hash-link" aria-label="Direct link to Create the Bactopia Directory Structure" title="Direct link to Create the Bactopia Directory Structure" translate="no">​</a></h3>
<p>With the assemblies extracted, now I need to create the required Bactopia directory to make
use of Bactopia Tools. For this, I used <code>bactopia atb-formatter</code>, which creates a sample folder
for each assembly that matches the BioSample accession.</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token comment" style="color:#999988;font-style:italic"># Create the Bactopia directory structure</span><span class="token plain"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">bactopia atb-formatter </span><span class="token parameter variable" style="color:#36acaa">--path</span><span class="token plain"> legionella-assemblies </span><span class="token parameter variable" style="color:#36acaa">--recursive</span><br></div></code></pre></div></div>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>A few notes about <code>bactopia atb-formatter</code></summary><div><div class="collapsibleContent_i85q">
<!-- -->
<div class="theme-admonition theme-admonition-info admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>info</div><div class="admonitionContent_BuS1"><p>Please note the usage of <code>--recursive</code> here, this will traverse the <code>legionella-assemblies</code> directory
to find all assemblies contained. At this point, the <code>bactopia</code> directory structure has been
created for 5,393 assemblies and is ready for use with Bactopia Tools.</p><p>Also, by default the assemblies are not copied into the Bactopia directory structure, but
instead symbolic links are created. This is to save disk space, but if you would like to
copy the assemblies, you can use the <code>--publish-mode</code> parameter to change this behavior</p></div></div>
</div></div></details>
<p>After running the above command, you should see something like the following:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token number" style="color:#36acaa">2024</span><span class="token plain">-03-22 </span><span class="token number" style="color:#36acaa">14</span><span class="token plain">:30:07:root:INFO - Setting up Bactopia directory structure </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">use </span><span class="token parameter variable" style="color:#36acaa">--verbose</span><span class="token plain"> to see </span><span class="token function" style="color:#d73a49">more</span><span class="token plain"> details</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token number" style="color:#36acaa">2024</span><span class="token plain">-03-22 </span><span class="token number" style="color:#36acaa">14</span><span class="token plain">:30:08:root:INFO - Bactopia directory structure created at bactopia</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token number" style="color:#36acaa">2024</span><span class="token plain">-03-22 </span><span class="token number" style="color:#36acaa">14</span><span class="token plain">:30:08:root:INFO - Total assemblies processed: </span><span class="token number" style="color:#36acaa">5393</span><br></div></code></pre></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="use-bactopia-to-run-legsta">Use Bactopia to run Legsta<a href="https://bactopia.io/blog/allthebacteria-tutorial#use-bactopia-to-run-legsta" class="hash-link" aria-label="Direct link to Use Bactopia to run Legsta" title="Direct link to Use Bactopia to run Legsta" translate="no">​</a></h3>
<p>Fancy! Now we have all the assemblies sym-linked into a Bactopia directory structure. It's
time to let Bactopia Tools shine! To do this, I will run the
<a class="" href="https://bactopia.io/bactopia-tools/legsta">legsta Bactopia Tool</a> and demonstrate
how seamless it is to type 5,393 assemblies.</p>
<p>With a simple addition of <code>--wf legsta</code> and pointing to the Bactopia directory, <code>legsta</code> will
be executed on all 5,393 assemblies! It really is that simple!</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token comment" style="color:#999988;font-style:italic"># Run legsta</span><span class="token plain"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">bactopia </span><span class="token parameter variable" style="color:#36acaa">--wf</span><span class="token plain"> legsta </span><span class="token parameter variable" style="color:#36acaa">-profile</span><span class="token plain"> singularity</span><br></div></code></pre></div></div>
<div class="theme-admonition theme-admonition-tip admonition_xJq3 alert alert--success"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"></path></svg></span>Please use Docker or Singularity for these analyses</div><div class="admonitionContent_BuS1"><p>I'm a big supporter of Conda, but for reproducibility, it is recommended to use Docker or
Singularity with Bactopia Tools. Conda environments can change depending on when they are
installed, however the containers will always be the same.</p></div></div>
<p>After some time, the <code>legsta</code> tool will complete for all 5,393 assemblies, and you should be
met with something like the following:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">5d/d04297</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> process </span><span class="token operator" style="color:#393A34">&gt;</span><span class="token plain"> BACTOPIATOOLS:LEGSTA:LEGSTA_MODULE </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">SAMN29911258</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">100</span><span class="token plain">%</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">5393</span><span class="token plain"> of </span><span class="token number" style="color:#36acaa">5393</span><span class="token plain"> ✔</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">71</span><span class="token plain">/c63bf7</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> process </span><span class="token operator" style="color:#393A34">&gt;</span><span class="token plain"> BACTOPIATOOLS:LEGSTA:CSVTK_CONCAT </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">legsta</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">100</span><span class="token plain">%</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">1</span><span class="token plain"> of </span><span class="token number" style="color:#36acaa">1</span><span class="token plain"> ✔</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">16</span><span class="token plain">/833262</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> process </span><span class="token operator" style="color:#393A34">&gt;</span><span class="token plain"> BACTOPIATOOLS:CUSTOM_DUMPSOFTWAREVERSIONS </span><span class="token punctuation" style="color:#393A34">(</span><span class="token number" style="color:#36acaa">1</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain">     </span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#36acaa">100</span><span class="token plain">%</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">1</span><span class="token plain"> of </span><span class="token number" style="color:#36acaa">1</span><span class="token plain"> ✔</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">    Bactopia Tools: `legsta Execution Summary</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">    ---------------------------</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">    Bactopia Version </span><span class="token builtin class-name">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">3.0</span><span class="token plain">.1</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">    Nextflow Version </span><span class="token builtin class-name">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">23.10</span><span class="token plain">.1</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">    Command Line     </span><span class="token builtin class-name">:</span><span class="token plain"> nextflow run /home/rpetit3/bactopia/main.nf </span><span class="token parameter variable" style="color:#36acaa">--wf</span><span class="token plain"> legsta </span><span class="token punctuation" style="color:#393A34">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">                                    </span><span class="token parameter variable" style="color:#36acaa">--bactopia</span><span class="token plain"> bactopia/ </span><span class="token parameter variable" style="color:#36acaa">-profile</span><span class="token plain"> singularity</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">    Resumed          </span><span class="token builtin class-name">:</span><span class="token plain"> </span><span class="token boolean" style="color:#36acaa">false</span><span class="token plain"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">    Completed At     </span><span class="token builtin class-name">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">2024</span><span class="token plain">-03-22T15:09:54.959834620-06:00</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">    Duration         </span><span class="token builtin class-name">:</span><span class="token plain"> 32m 51s</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">    Success          </span><span class="token builtin class-name">:</span><span class="token plain"> </span><span class="token boolean" style="color:#36acaa">true</span><span class="token plain"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">    Exit Code        </span><span class="token builtin class-name">:</span><span class="token plain"> </span><span class="token number" style="color:#36acaa">0</span><span class="token plain"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">    Error Report     </span><span class="token builtin class-name">:</span><span class="token plain"> -</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">    Launch Dir       </span><span class="token builtin class-name">:</span><span class="token plain"> /home/rpetit3/test-legsta</span><br></div></code></pre></div></div>
<p>This took about 30 minutes on my laptop, but it was incredibly simple to run <code>legsta</code> on
all 5,393 <em>L. pneumophila</em> assemblies.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="results-of-typing">Results of Typing<a href="https://bactopia.io/blog/allthebacteria-tutorial#results-of-typing" class="hash-link" aria-label="Direct link to Results of Typing" title="Direct link to Results of Typing" translate="no">​</a></h3>
<p>Here's the fun part, typing results for all 5,393 <em>L. pneumophila</em> assemblies! Another nice
thing about the Bactopia Tools in that in most cases it will merge all the results at the end
leaving you with just a single file to review.</p>
<p>To share the results of this analysis, I've uploaded the results to Google Drive and made
them available from this link: <a href="https://docs.google.com/spreadsheets/d/1NjkXEstWq5PMP0CLmO392HTjC8UuW-JPQIXpqsZ30nU/edit?usp=sharing" target="_blank" rel="noopener noreferrer" class="">Bactopia - Legsta Results from AllTheBacteria</a></p>
<p>From this Google Sheet, you can make a copy or export the results as a CSV file.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="conclusion">Conclusion<a href="https://bactopia.io/blog/allthebacteria-tutorial#conclusion" class="hash-link" aria-label="Direct link to Conclusion" title="Direct link to Conclusion" translate="no">​</a></h2>
<p>In this post, I demonstrated how in just a few steps you can make use of Bactopia Tools to
rapidly and seamlessly start analyzing the 2,000,000 bacterial assemblies from AllTheBacteria.
If you are planning to do your own downstream analyses on these assemblies, I hope this post
has convinced you that Bactopia can make this process much easier.</p>
<p>If you have any questions or ideas for additional Bactopia Tools, please feel free to reach
out to me!</p>
<p><strong>Also! This the first ever blog post for Bactopia!</strong></p>]]></content:encoded>
            <category>community</category>
            <category>tutorial</category>
        </item>
    </channel>
</rss>