C. Titus Brown
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # AllTheBacteria Buchnera and Sulcia search w/sourmash ATB download: https://github.com/sourmash-bio/sourmash/issues/3247 GTDB files: https://github.com/sourmash-bio/sourmash/issues/3183#issuecomment-2362160753 Build a picklist for the GTDB genomes we're interested in (Sulcia and Buchnera): ``` head -1 gtdb-rs220.lineages.csv > sublineages.csv egrep -i 'buchnera|sulcia' gtdb-rs220.lineages.csv >> sublineages.csv ``` Extract just those genomes from GTDB RS220: ``` sourmash sig cat --picklist sublineages.csv:ident:ident gtdb-rs220-k21.zip -o sublineages.sig.zip ``` Search ATB v0.2 for overlaps: ``` sourmash scripts manysearch sublineages.sig.zip allthebacteria-r0.2-k21.zip -o sublineages.x.atb.csv -k 21 ``` (Takes about 10-15 minutes ) Parse results: ```python >>> df = pd.read_csv('sublineages.x.atb.csv') >>> df2 = df[df['max_containment_ani'] >= 0.9] >>> df2[['match_name', 'max_containment_ani']] match_name max_containment_ani 23861 NZ_CP056771.1 Buchnera aphidicola (Aphis gossy... 0.907215 23879 NZ_CP056771.1 Buchnera aphidicola (Aphis gossy... 0.921266 23901 NZ_CP056771.1 Buchnera aphidicola (Aphis gossy... 0.910469 23906 NZ_CP056771.1 Buchnera aphidicola (Aphis gossy... 0.997631 23909 NZ_CP056771.1 Buchnera aphidicola (Aphis gossy... 1.000000 23911 NZ_CP056771.1 Buchnera aphidicola (Aphis gossy... 0.999172 ``` Eliminate all ATB genomes already labeled as Buchnera: ```python >>> df3 = df[~df['match_name'].str.contains('Buchnera')] >>> len(df3) 26764 >>> df3['max_containment'].max() np.float64(0.0448430493273542) >>> df3.sort_values(by='max_containment')[['match_name', 'max_containment']] match_name max_containment 21457 NZ_KB944588.1 Enterococcus faecalis ATCC 19433... 0.010017 96 NZ_BNJW01000001.1 Enterococcus lactis strain C... 0.010017 26119 NZ_LT700212.1 Actinomyces provencensis strain ... 0.010017 25967 NZ_MVFY01000010.1 Citrobacter portucalensis st... 0.010017 25963 NZ_PRDB01000030.1 Klebsiella michiganensis str... 0.010017 ... ... ... 23667 JAGGDU010000001.1 Trichodesmium erythraeum GBR... 0.042601 23596 JAGGDU010000001.1 Trichodesmium erythraeum GBR... 0.042601 23525 JAGGDU010000001.1 Trichodesmium erythraeum GBR... 0.042601 24492 NZ_JPOS01000001.1 Phaeodactylibacter xiamenens... 0.044643 24451 NZ_JPOS01000001.1 Phaeodactylibacter xiamenens... 0.044843 ``` So, there's a 4.5% overlap in k-mers with some Buchnera queries for `JAGGDU010000001.1` and `NZ_JPOS01000001.1`, which is probably not enough to call it a Buchnera genome... The estimated ANI is in the 80% range (column `max_containment_ani`). tl;dr no matches to Sulcia, only one match to Buchnera, in all the ATB genomes. Download the CSV file here for more exploration: https://farm.cse.ucdavis.edu/~ctbrown/buchnera-sulcia.manysearch.zip ### benchmark info with 4 CPUs: ``` Command being timed: "sourmash scripts manysearch sublineages.sig.zip allthebacteria-r0.2-k21.zip -o sublineages.x.atb.csv.2 -k 21 -c 4" User time (seconds): 10967.28 System time (seconds): 98.50 Percent of CPU this job got: 385% Elapsed (wall clock) time (h:mm:ss or m:ss): 47:51.17 Average shared text size (kbytes): 0 Average unshared data size (kbytes): 0 Average stack size (kbytes): 0 Average total size (kbytes): 0 Maximum resident set size (kbytes): 20568304 Average resident set size (kbytes): 0 Major (requiring I/O) page faults: 506284 Minor (reclaiming a frame) page faults: 4419875 Voluntary context switches: 63584 Involuntary context switches: 120076 Swaps: 0 File system inputs: 129128808 File system outputs: 21096 Socket messages sent: 0 Socket messages received: 0 Signals delivered: 0 Page size (bytes): 4096 Exit status: 0 ``` ## Followup ### sourmash calculates overlaps; ANI calculation; and reports For some background: sourmash relies on estimating overlaps using k-mers. From this one can estimate Jaccard, containment, and ANI between sets. We've found these estimates are pretty reliable for a wide range of parameters. I tend to use sourmash in a way that avoids reaching conclusions too quickly, because biology data is so messy :). But I didn't properly caveat the above results! Technically, what I show above is that there are substantial overlaps between Buchnera and Sulcia reference genomes from GTDB, and > 2000 SRA "isolate" shotgun sets. My first concern was: did I screw this up?? So that's what most of the below addresses. I'll revisit the questions you asked after I make sure I'm not imagining things! I've updated the [matches CSV](https://github.com/ctb/2025-atb-small-genomes/blob/main/manysearch-merged-2024-01-14.csv) with more information, explored below. Looking at the 4th best match, SRR27437571, it has: * containment of 38% * intersect_hashes of 256 => 256 KB of predicted overlap * a query containment ANI of > 95%, based on k-mer matches within the query So, whatever this sample is _supposed_ to be, it contains approximately 256,000 21-mers that belong to the Buchnera genome in GTDB. I would say this is either contamination in the Buchnera genome or Buchnera is present in this sample (or both). ### A more detailed analysis of the SRR27437571 sample (Buchnera 3rd match) Further analysis of SRR27437571 suggests that it is actually a metagenome, with a substantial portion of Buchnera present in it. I used [sourmash gather](https://sourmash.readthedocs.io/en/latest/classifying-signatures.html) to do this. [See the sourmash gather CSV for SRR27437571](https://github.com/ctb/2025-atb-small-genomes/blob/main/round2/SRR27437571.k51.gather.csv), sort by `f_unique_weighted`, look at match name - has about 3x coverage (median_abund), and Buchnera is about 0.0034% of the sample. So a very small match. Note that I did this analysis with k=51, so much more specific than k=21 (but less sensitive to evolutionary distance). We can do some alignments if we need to verify it but I'd bet good money that it's there :shrug: :sweat_smile: ### A larger analysis I took about 10 samples that matched to Buchnera or Sulcia, and did the metagenome breakdown as above. understand why buchnera/sulcia not in some of them ### Where does this leave us? Not sure. More goes here.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully