joey711 / phyloseq

phyloseq is a set of classes, wrappers, and tools (in R) to make it easier to import, store, and analyze phylogenetic sequencing data; and to reproducibly share that data and analysis with others. See the phyloseq front page:
http://joey711.github.io/phyloseq/
569 stars 187 forks source link

phyloseq-sample data zero dimensions #1629

Open Gigiagio opened 1 year ago

Gigiagio commented 1 year ago

Hello,

I am new in the metagenomic world. I am encountering an issue when I try to assign my data frame to the phyloseq object. I run this script: ps <- phyloseq(otu_table(count_tab, taxa_are_rows=T ), sample_data(samples_info_tab ), tax_table(tax_tab)) and it gave me this error: Error in validObject(.Object) : invalid class “sample_data” object: Sample Data must have non-zero dimensions

I run the sample data to see what was going on, and this is the result: [35 samples by 1 sample variables]

I have 35 samples in 4 columns

Thank you!