curatedTCGAData icon indicating copy to clipboard operation
curatedTCGAData copied to clipboard

Viewing Clinical Data Floods Console With Text

Open DarioS opened this issue 7 years ago • 1 comments

I am looking at clinical data for melanoma, but there's too much of it.

melanomaMicroRNA <- curatedTCGAData(diseaseCode = "SKCM", assays = "miRNASeqGene", dry.run = FALSE)
head(colData(melanomaMicroRNA))

Results in a lot of text being printed, ending with [ reached getOption("max.print") -- omitted 7 rows ].

Similarly, colnames(colData(melanomaMicroRNA)) ends with [ reached getOption("max.print") -- omitted 534 entries ].

Perhaps providing an option to just store some of the main clinical variables would make the table easier to work with.

DarioS avatar Feb 01 '18 04:02 DarioS

I actually discussed this with @vjcitn recently - I think the gist of our conversation was that DataFrame itself could use a better show method for when there are lots of columns. In the meantime, you could identify the columns to the ones you most likely want with the getClinicalNames() function from waldronlab/TCGAutils repo, and subset the colData to only these.

lwaldron avatar Feb 01 '18 10:02 lwaldron

This is more of an issue for S4Vectors::DataFrame..

LiNk-NY avatar Apr 10 '23 15:04 LiNk-NY