Skip to content

Commit

Permalink
Merge branches.
Browse files Browse the repository at this point in the history
  • Loading branch information
romanhaa committed Sep 25, 2020
2 parents 2857fee + de7b6d8 commit a46f2c0
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 32 deletions.
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Because this is a relatively big release, I have prepared a dedicated article wi
## Minor changes

- Add citation info.
- Composition tables (e.g. samples by clusters or cell cycle) are now calculated in the Shiny app rather than being expected to be present in the `.crb file.
- Composition tables (e.g. samples by clusters or cell cycle) are now calculated in the Shiny app rather than being expected to be present in the `.crb` file.
- Fix log message in `exportFromSeurat()` when extracting trajectories.
- The gene set selection box in the "Gene set expression" tab will not crash anymore when typing a sequence of letters that doesn't match any gene set names.
- Remove dependency on pre-assigned colors in the `.crb` file. If no colors have been assigned to samples and clusters when loading a data set, they will be assigned then.
Expand Down
1 change: 1 addition & 0 deletions R/getEnrichedPathways.R
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ getEnrichedPathways <- function(

## ... input data frame doesn't contain required "gene" column
} else if ( "gene" %in% colnames(current_marker_genes) == FALSE ) {

message(
paste0(
'[', format(Sys.time(), '%H:%M:%S'),
Expand Down
88 changes: 57 additions & 31 deletions inst/NEWS
Original file line number Diff line number Diff line change
@@ -1,43 +1,69 @@
\name{NEWS}
\title{News for Package \pkg{cerebroApp}}

\section{Changes in version 1.3.0}{

Because this is a relatively big release, a dedicated article with release notes for cerebroApp v1.3 is available on the cerebroApp website.

\itemize{
\item Major changes:
\itemize{
\item With data sets becoming more complex, users often have more than just the two grouping variables Cerebro was initially made to work with ('sample' and 'cluster'). To provide a more generalized interface, users can now specify multiple grouping variables (or a single one). Consequently, the 'Samples' and 'Clusters' tabs in the Cerebro interface have been replaced by the 'Groups' tab, where users can select one of the available grouping variables (with the same content as before). This can be useful when you cluster the cells with different methods/settings or have additional grouping variables, such as treatments, and want to provide the Cerebro user with both results.
\item Data loaded into Cerebro is now stored in a dedicated class: \texttt{Cerebro_v1.3}.
\item Due to the changes in data structure, files exported with cerebroApp v1.3 can only be visualized in Cerebro v1.3. Moreover, files exported with cerebroApp v1.2 and earlier cannot be loaded into Cerebro v1.3. I apologize for any inconvenience but I believe these changes will lead to more stability coming releases.
\item Removed support for Seurat objects before v3.0. Users who need to continue working with older version of Seurat have two options: (1) use the \texttt{Seurat::UpdateSeuratObject()} function to update their Seurat object before exporting it for visualization in Cerebro; (2) use older Cerebro version. I apologize for the any trouble this may cause.
\item The "Gene expression" and "Gene set expression" tabs have been merged into the new "Gene (set) expression)" which gives you access to both.
\item The new "Extra material" tab allows you to export additional material related to the data set that you want to share with others. At the moment, only tables and plots (from ggplot2) are supported, but support for other types of content can be added upon user request in the future.
}
}}

\section{Changes in version 1.2.2}{
\itemize{
\item Fixes:
\itemize{
\item The title in the browser tab now correctly says "Cerebro" instead of containing some HTML code.
\item Cluster trees should now be displayed correctly.
\item \texttt{getEnrichedPathways()} no longer results in an error when marker genes are present but no database returns any enriched pathways, e.g. because there are too few marker genes. Thanks to \href{@turkeyri}{https://github.com/turkeyri} for pointing it out and suggesting a solution!
}
}}

\section{Changes in version 1.2.1}{
\itemize{
\item New features:
\item It is now possible to select cells in the dimensional reduction plots ('Overview', 'Gene expression', and 'Gene set expression' tabs) and retrieve additional info for them. For example, users can get tables of meta data or expression values and save them as a file for further analysis. Also, gene expression can be shown in the selected vs. non-selected cells.
\item Small changes:
\itemize{
\item Scales for expression levels by sample and cluster in "Gene expression" and "Gene set expression" tabs are now set to be from 0 to 1.2 times the highest value. This is to limit the violin plots which cannot be trimed to the actual data range and will extend beyond, giving a false impression of negative values existing in the data.
\item Hover info in expression by gene plot in "Gene expression" and "Gene set expression" tabs now show both the gene name and the mean expression value instead of just the gene name.
}
\item New features:
\item It is now possible to select cells in the dimensional reduction plots ('Overview', 'Gene expression', and 'Gene set expression' tabs) and retrieve additional info for them. For example, users can get tables of meta data or expression values and save them as a file for further analysis. Also, gene expression can be shown in the selected vs. non-selected cells.
\item Small changes:
\itemize{
\item Scales for expression levels by sample and cluster in "Gene expression" and "Gene set expression" tabs are now set to be from 0 to 1.2 times the highest value. This is to limit the violin plots which cannot be trimed to the actual data range and will extend beyond, giving a false impression of negative values existing in the data.
\item Hover info in expression by gene plot in "Gene expression" and "Gene set expression" tabs now show both the gene name and the mean expression value instead of just the gene name.
}
}}

\section{Changes in version 1.2.0}{
\itemize{
\item New features:
\itemize{
\item New button for composition plots (e.g. samples by clusters or cell cycle) that allows to choose whether to scale by actual cell count (default) or percentage.
\item New button for composition plots that allows to show/hide the respective table of numbers behind them.
\item New tab "Color management": Users can now change the color assigned to each sample/cluster.
\item "Gene expression" and "Gene set expression" panels: Users can now pick from a set of color scales and adjust the color range.
\item The gene selection box in the "Gene expression" panel will now allow to view available genes and select them by clicking. It is not necessary anymore to hit Enter or Space to update the plot, this will be done automatically after providing new input.
\item It is now possible to export assays other than \texttt{RNA} through the \texttt{assay} parameter in relevant functions.
\item Launch old Cerebro interfaces through \texttt{version} parameter in \texttt{launchCerebro()}.
\item We added a vignette which explains how to use cerebroApp and its functions.
}
\item Other changes:
\itemize{
\item Add citation info.
\item Composition tables (e.g. samples by clusters or cell cycle) are now calculated in the Shiny app rather than being expected to be present in the \texttt{.crb} file.
\item Fix log message in \texttt{exportFromSeurat()} when extracting trajectories.
\item The gene set selection box in the "Gene set expression" tab will not crash anymore when typing a sequence of letters that doesn't match any gene set names.
\item Remove dependency on pre-assigned colors in the \texttt{.crb} file. If no colors have been assigned to samples and clusters when loading a data set, they will be assigned then.
\item Update examples of functions and include mini-Seurat object and example gene set (GMT file) to run the examples.
\item Modify pre-loaded data set in Cerebro interface to contain more data.
\item When attempting to download genes in GO term "cell surface" in the \texttt{getMarkerGenes()} function, it tries at max. 3 times to contact the biomaRt server and continues without if all attempts failed. Sometimes the server does not respond which gave an error in previous versions of the function.
\item Plenty of changes to meet Bioconductor guidelines (character count per line, replace \texttt{.} in dplyr pipes with \texttt{rlang::.data}, etc.).
\item Reduce package size by compressing reference files, e.g. gene name/ID conversion tables.
}
\item New features:
\itemize{
\item New button for composition plots (e.g. samples by clusters or cell cycle) that allows to choose whether to scale by actual cell count (default) or percentage.
\item New button for composition plots that allows to show/hide the respective table of numbers behind them.
\item New tab "Color management": Users can now change the color assigned to each sample/cluster.
\item "Gene expression" and "Gene set expression" panels: Users can now pick from a set of color scales and adjust the color range.
\item The gene selection box in the "Gene expression" panel will now allow to view available genes and select them by clicking. It is not necessary anymore to hit Enter or Space to update the plot, this will be done automatically after providing new input.
\item It is now possible to export assays other than \texttt{RNA} through the \texttt{assay} parameter in relevant functions.
\item Launch old Cerebro interfaces through \texttt{version} parameter in \texttt{launchCerebro()}.
\item We added a vignette which explains how to use cerebroApp and its functions.
}
\item Other changes:
\itemize{
\item Add citation info.
\item Composition tables (e.g. samples by clusters or cell cycle) are now calculated in the Shiny app rather than being expected to be present in the \texttt{.crb} file.
\item Fix log message in \texttt{exportFromSeurat()} when extracting trajectories.
\item The gene set selection box in the "Gene set expression" tab will not crash anymore when typing a sequence of letters that doesn't match any gene set names.
\item Remove dependency on pre-assigned colors in the \texttt{.crb} file. If no colors have been assigned to samples and clusters when loading a data set, they will be assigned then.
\item Update examples of functions and include mini-Seurat object and example gene set (GMT file) to run the examples.
\item Modify pre-loaded data set in Cerebro interface to contain more data.
\item When attempting to download genes in GO term "cell surface" in the \texttt{getMarkerGenes()} function, it tries at max. 3 times to contact the biomaRt server and continues without if all attempts failed. Sometimes the server does not respond which gave an error in previous versions of the function.
\item Plenty of changes to meet Bioconductor guidelines (character count per line, replace \texttt{.} in dplyr pipes with \texttt{rlang::.data}, etc.).
\item Reduce package size by compressing reference files, e.g. gene name/ID conversion tables.
}
}}

\section{Changes in version 1.1.0}{
Expand Down

0 comments on commit a46f2c0

Please sign in to comment.