Skip to content

Alternative SubsetFun #1019

@JackDettoLoco

Description

@JackDettoLoco

Thank you for your work on SqueezeMeta and for providing the documentation and tools.

I ran SqueezeMeta following the wiki instructions to process metagenomic and metatranscriptomic data together. At this point I have selected the metatranscriptomic samples in R for DESeq2 analysis (I’m not sure if there are better alternatives).

Using subsetFun I filtered on KEGG map 00361 and continued the analysis. This worked as expected. However, I also wanted to explore other pathways present in the same organisms that carry my function of interest. Using subsetFun alone is not sufficient for this, because it removes all functions that are not the one I’m targeting.

To address this, I devised the following procedure. I’d like to confirm whether this approach makes sense:

filtered <- Hadza[["misc"]][["samples"]][grep("^R.*IT", Hadza[["misc"]][["samples"]])] #filter
r_IT<-subsetSamples(SQM = Hadza,samples = filtered) #filtering original sqm
r_IT1 <- subsetFun(SQM = r_IT, fun = "00361")  # filter on KEGG function
r_IT2 <- subsetBins(SQM = r_IT, bins = r_IT1[["bins"]][["table"]] %>% rownames())  # filter by bins carrying that function
r_IT2[["functions"]][["KEGG"]][["abund"]] -> dfdeseq2  # extract table for DESeq2

Thanks in advance for any feedback or suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions