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

The function network.2 is not working #20

Open
halimaml opened this issue Mar 30, 2024 · 0 comments
Open

The function network.2 is not working #20

halimaml opened this issue Mar 30, 2024 · 0 comments

Comments

@halimaml
Copy link

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

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