Skip to content

The function network.2 is not working  #20

@halimaml

Description

@halimaml

Hello,

I am trying the use the function network.2 of the ggClusterNet package and I am getting this error: Error in h(simpleError(msg, call)) :
error in evaluating the argument 'object' in selecting a method for function 'sample_data': undefined columns selected

Here is my code:

#Phyloseq

compost_OTU <- otu_table(otus, taxa_are_rows=T)
compost_metadat <- sample_data(metadat,errorIfNULL=TRUE)
compost_taxo <- tax_table(as.matrix(taxon), errorIfNULL=TRUE)
data16s <- phyloseq(compost_taxo,compost_OTU,compost_metadat)

Construct the network using Network.2()

result = network.2(ps = data16s,N = 100,r.threshold=0.6,big = T,
select_layout = T,
p.threshold=0.05,label = FALSE,path = path ,zipi = F)

Can you please help me figure out where the problem is?

Here is a part of my metadat:

compost_metadat
Sample Data: [30 samples by 2 sample variables]:
field ID
C7.C.1.Dairy conventional C7.C.1.Dairy
C8.C.2.Control conventional C8.C.2.Control
C9.C.3.Plant conventional C9.C.3.Plant

Thank you in Advance

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