[go: nahoru, domu]

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

Gene statistics table with many columns #31

Closed
kevinrue opened this issue Jan 12, 2018 · 8 comments
Closed

Gene statistics table with many columns #31

kevinrue opened this issue Jan 12, 2018 · 8 comments

Comments

@kevinrue
Copy link
Member

Gene statistics table with many columns go out of screen. We should probably allow users to select a subset of columns to show, with default settings being e.g. the first 5 or 10 columns.

@kevinrue kevinrue self-assigned this Jan 12, 2018
@csoneson
Copy link
Member

We can allow horizontal scrolling to potentially avoid this problem.

@kevinrue kevinrue removed their assignment Jan 12, 2018
@kevinrue
Copy link
Member Author

That is absolutely true. I opened this issue because I couldn't naturally scroll to the later columns, and I cannot remember if/how this can be enabled in Shiny apps.

@federicomarini
Copy link
Contributor

options = list(scrollX = TRUE) in the DT::datatable should suffice

@federicomarini
Copy link
Contributor

Can we close this one?

@LTLA
Copy link
Member
LTLA commented Jan 21, 2018

If someone had fixed it, then yes.

@federicomarini
Copy link
Contributor

Should be fixed now in the branch fede_edits, soon to be pushed.

Example to see how this allows the horizontal scrolling:

## building up on...
example(iSEE,ask = F)
## and slightly editing that `sce` object

rowData(sce) <- DataFrame(primacolonna = sample(1:20908),
                          secondacolonna = paste0("seconda_",sample(1:20908)),
                          terzacolonna = paste0("testobellolungohehe", sample(1:20908)),
                          quartacolonna = paste0("2otestobellolungohehe", sample(1:20908)),
                          quintacolonna = paste0("3otestobellolungohehe", sample(1:20908)))
iSEE(sce)

--> and scrolling on the datatable object, which now also respects the column width specification

@LTLA
Copy link
Member
LTLA commented Jan 21, 2018

My computer at home doesn't have enough grunt to run iSEE (or anything much, for that matter) so I'll assume that scrollX=TRUE does a sensible job. It doesn't scroll if it doesn't need to, right?

federicomarini added a commit that referenced this issue Jan 21, 2018
Fixes #31 - now datatable is h…
@federicomarini
Copy link
Contributor

Yep, no scroll if not needed. You can check how this is turned on when you resize the window where iSEE runs.

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

4 participants