make_UpSet_plot() creates an UpSet plot from a list of unique identifiers such as UniProt accession numbers or proteoform record numbers.
make_UpSet_plot( UpSetlist, plotType = "Protein", savePDF = FALSE, outputDir = getwd() )
UpSetlist | A list of lists of identifiers properly formatted for use by the UpSetR::upset() function. Alternatively, a data frame with columns named by fraction number and containing unique identifiers for proteins/proteoforms. |
---|---|
plotType | Type of UpSet plot to make. This only affects the axis titles and filename. Typical values are "Protein" or "Proteoform". Defaults to "Protein". |
savePDF | Boolean value, controls whether to save PDF output to outputDir. Defaults to FALSE. |
outputDir | Directory to save PDF output. Defaults to R working directory. |
An UpSet plot created by UpSetR::upset(). If savePDF is TRUE, a PDF is saved to the output directory.
make_UpSet_plot( list( list( "Fraction1" = c("A", "B", "C", "D", "E"), "Fraction2" = c("C", "D", "E", "F", "G") ) ) )#> [[1]]#>