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

how to get siganature gene IDs or symblos? #170

Closed
Polligator opened this issue May 1, 2022 · 2 comments
Closed

how to get siganature gene IDs or symblos? #170

Polligator opened this issue May 1, 2022 · 2 comments

Comments

@Polligator
Copy link

I'm just wondering how to get the gene IDs and the sample IDs from a particular cluster on the heatmap, such as the Signature heatmap and the consensus heatmap. is there a function to do that?
Thanks

@jokergoo
Copy link
Owner

jokergoo commented May 9, 2022

  1. to get the sample ID, you can directly use get_classes() function (https://jokergoo.github.io/cola/reference/get_classes-ConsensusPartition-method.html).

  2. to get the gene IDs from the signature analysis, in the data frame returned by get_signatures(), the first column contains the row indices of the original matrix, so you can obtain them by e.g. rownames(expr)[tb$which_row], or in a specific row cluster: rownames(expr)[tb$which_row & tb$km == 2]. https://jokergoo.github.io/cola/reference/get_signatures-ConsensusPartition-method.html

@Polligator
Copy link
Author

Thanks for your reply, I figured it out.

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

2 participants