Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in access(object, "otu_table", errorIfNULL) : #1773

Open
kdbchau opened this issue Oct 9, 2024 · 0 comments
Open

Error in access(object, "otu_table", errorIfNULL) : #1773

kdbchau opened this issue Oct 9, 2024 · 0 comments

Comments

@kdbchau
Copy link

kdbchau commented Oct 9, 2024

I'm trying to rarefy my data, and I want to first remove samples with less than 500 reads but I am running into an issue.

My phyloseq object:

phyloseq-class experiment-level object
otu_table()   OTU Table:         [ 457 taxa and 88 samples ]
sample_data() Sample Data:       [ 88 samples by 4 sample variables ]
tax_table()   Taxonomy Table:    [ 457 taxa by 6 taxonomic ranks ]

The code and error:


# Remove samples with < 500 reads total
samples_over500 <- subset_samples(phylo, sample_sums(phylo) > 500)

Error in access(object, "otu_table", errorIfNULL) : 
  otu_table slot is empty.

I've checked other sources for this error and there doesn't seem to be a clear reason why this occurs. I am using Phyloseq package version 1.42.0 on R Studio version 2024.04.2, with R version 4.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant