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

Seeking parameter suggestions for hdwgcna #285

Open
xjyenjoy81 opened this issue Jun 26, 2024 · 2 comments
Open

Seeking parameter suggestions for hdwgcna #285

xjyenjoy81 opened this issue Jun 26, 2024 · 2 comments
Labels
question Further information is requested

Comments

@xjyenjoy81
Copy link

xjyenjoy81 commented Jun 26, 2024

Hi,@smorabit, thank you for your answer to a small bug in my hdWGCNA last time. I have encountered a question that I would like to ask you. For example, the single-cell data I studied for stroke consists of 8 samples, of which 4 are MCAO and 4 are Sham. I want to find the hub genes of MCAO astrocytes. In the Construction Metacells step, should I delete the cell_type in the demonstration code and change it to
seurat_obj<- MetacellsByGroups(
seurat_obj = seurat_obj,
group.by=c('Sample'),
k = 25,
max_shared = 10,
ident.group = 'Sample'
)
seurat_obj <- NormalizeMetacells(seurat_obj)
In the step of Set up the expression matrix, it becomes
seurat_obj <- SetDatExpr(
seurat_obj,
group_name = "Astrocyte",
group.by='Sample', assay = 'RNA', slot = 'data'
)
Finally, the hub gene was obtained by selecting modules with darker colors from three MCAO samples. Is my parameter selection correct?

@xjyenjoy81 xjyenjoy81 added the question Further information is requested label Jun 26, 2024
@xjyenjoy81 xjyenjoy81 changed the title Question about [my question] Seeking parameter suggestions for hdwgcna Jun 26, 2024
@smorabit
Copy link
Owner

Hi,

I appreciate that you are trying to find the "correct" way to run hdWGCNA. However, the logic here is fundamentally flawed.

I want to emphasize that there is not a "correct" set of parameters or way to run hdWGCNA (or many algorithms for that matter). The choices that you make in your analysis affect the downstream interpretation, but that doesn't make one way "correct" and another "incorrect". Different parameters could work better or worse for different data. I don't know your dataset so I can't really recommend what to do in your case.

@xjyenjoy81
Copy link
Author

xjyenjoy81 commented Jul 1, 2024 via email

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

No branches or pull requests

2 participants