Coder Social home page Coder Social logo

Comments (2)

Anto007 avatar Anto007 commented on July 18, 2024 1

Thank you very much for your kind response. Your suggestions worked like a charm! Thanks again for being such a kind soul always in this heartless world of academia :-)

from astrobiomike.github.io.

AstrobioMike avatar AstrobioMike commented on July 18, 2024

Hey there, @Anto007 :)

Thanks for the kind words! So glad it's been helpful at all :)

I wrote the DECIPHER developer asking if they had documented how they made the previous one, and if/when I hear back, I'll see about creating an updated DECIPHER-formatted SILVA 138.1 👍

In the meantime, to move forward with the dada2 classification output like you've generated above, i believe this will work to get you to the standard table I produce in the tutorial, taking off from the tax_info object you created above:

# loading your tax info saved data from your run
load("tax-info.RData")

# making an object we are going to modify, to leave the initial tax_info object alone
asv_tax <- tax_info

# adding the ASV IDs as row names (this asv_headers object should exist from the tutorial already)
row.names(asv_tax) <- sub(">", "", asv_headers)

# and that looks like this (with the tutorial data, not yours, just showing the format)
head(asv_tax)
      Kingdom    Phylum           Class                 Order                   Family           Genus       
ASV_1 "Bacteria" "Proteobacteria" "Alphaproteobacteria" "Kordiimonadales"       NA               NA          
ASV_2 "Bacteria" "Nitrospirota"   "Nitrospiria"         "Nitrospirales"         "Nitrospiraceae" "Nitrospira"
ASV_3 "Bacteria" "Proteobacteria" "Alphaproteobacteria" "Kiloniellales"         "Kiloniellaceae" NA          
ASV_4 "Bacteria" "Proteobacteria" "Gammaproteobacteria" "pItb-vmat-80"          NA               NA          
ASV_5 "Bacteria" "Proteobacteria" "Gammaproteobacteria" "UBA10353 marine group" NA               NA          
ASV_6 "Bacteria" "Proteobacteria" "Gammaproteobacteria" "Steroidobacterales"    "Woeseiaceae"    "Woeseia" 

I'm not sure if the column headers would be a problem with anything else in the tutorial, but just to be sure, we can change them to what I have:

colnames(asv_tax) <- c("domain", "phylum", "class", "order", "family", "genus")

head(asv_tax)
      domain     phylum           class                 order                   family           genus       
ASV_1 "Bacteria" "Proteobacteria" "Alphaproteobacteria" "Kordiimonadales"       NA               NA          
ASV_2 "Bacteria" "Nitrospirota"   "Nitrospiria"         "Nitrospirales"         "Nitrospiraceae" "Nitrospira"
ASV_3 "Bacteria" "Proteobacteria" "Alphaproteobacteria" "Kiloniellales"         "Kiloniellaceae" NA          
ASV_4 "Bacteria" "Proteobacteria" "Gammaproteobacteria" "pItb-vmat-80"          NA               NA          
ASV_5 "Bacteria" "Proteobacteria" "Gammaproteobacteria" "UBA10353 marine group" NA               NA          
ASV_6 "Bacteria" "Proteobacteria" "Gammaproteobacteria" "Steroidobacterales"    "Woeseiaceae"    "Woeseia"

Be aware, this tax stops at genus level, and the DECIPHER tax stops at species. So this table is still slightly different. I don't think that will make you run into a code problem elsewhere or not in the tutorial, but happy to try to help again if you do :)

Let me know if that works for you!

from astrobiomike.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.