diff --git a/DESCRIPTION b/DESCRIPTION index 0871d85..1229beb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: phenoptrReports Title: Create reports using Phenoptics data -Version: 0.2.1.9000 -Date: 2019-05-31 +Version: 0.2.2 +Date: 2019-06-18 Authors@R: c( person("Kent S", "Johnson", role = c("aut", "cre"), email = "kjohnson@akoyabio.com"), diff --git a/NEWS.md b/NEWS.md index d731f52..6cec3e9 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,12 +1,15 @@ -# phenoptrReports 0.2.1.9000 +# phenoptrReports 0.2.2 +**2019-06-18** + +Spatial map viewer addin: +- New addin provides a field-based viewer of nearest neighbor relationships. + See the + [Visualizing spatial relationships tutorial](https://akoyabio.github.io/phenoptrReports/articles/spatial_map_viewer.html) + for details. -Analysis addin +Analysis addin: - Phenotype definitions may include valid expressions such as `` ~`Membrane PDL1 (Opal 520) Mean`>5 ``. - -Spatial map viewer addin -- New addin provides a field-based viewer of nearest neighbor relationships. - See the "Viewing nearest neighbors" tutorial for details. Bug fixes: - Fix error during calculation of N/A and Total cell in cell seg summary report diff --git a/README.md b/README.md index 9862946..060a55b 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ the analysis addin and in inForm export folder containing composite and component images. For detailed instructions and requirements, see the -[Spatial map viewer tutorial](https://akoyabio.github.io/phenoptrReports/articles/spatial_map_viewer.html). +[Visualizing spatial relationships tutorial](https://akoyabio.github.io/phenoptrReports/articles/spatial_map_viewer.html). ### Unmixing quality report diff --git a/_pkgdown.yml b/_pkgdown.yml index 58bc6f1..eb5a534 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -16,6 +16,8 @@ navbar: href: articles/consolidation.html - text: "Analyzing inForm data" href: articles/analysis.html + - text: "Visualizing spatial relationships" + href: articles/spatial_map_viewer.html - text: "Unmixing quality report" href: articles/unmixing_quality_report.html - text: "Reference" diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index a4ee3e6..8d68e48 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -60,7 +60,7 @@ phenoptrReports - 0.2.1 + 0.2.2 @@ -85,6 +85,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/articles/analysis.html b/docs/articles/analysis.html index f99ce5a..d3e647c 100644 --- a/docs/articles/analysis.html +++ b/docs/articles/analysis.html @@ -30,7 +30,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -55,6 +55,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • @@ -94,7 +97,7 @@

    Analyzing inForm data

    Kent Johnson

    -

    2019-05-10

    +

    2019-06-18

    Source: vignettes/analysis.Rmd @@ -181,6 +184,17 @@

    +
    +

    +Select options for spatial analysis

    +

    In this section, select the types of spatial analysis to include.

    + +

    +

    Create reports

    @@ -217,6 +231,7 @@

  • Define phenotypes and markers
  • +
  • Select options for spatial analysis
  • Create reports
  • diff --git a/docs/articles/consolidation.html b/docs/articles/consolidation.html index c47de85..85c41ec 100644 --- a/docs/articles/consolidation.html +++ b/docs/articles/consolidation.html @@ -30,7 +30,7 @@ phenoptrReports - 0.2.0 + 0.2.2

    @@ -55,6 +55,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • @@ -94,7 +97,7 @@

    Consolidating inForm data

    Kent Johnson

    -

    2019-05-10

    +

    2019-06-18

    Source: vignettes/consolidation.Rmd diff --git a/docs/articles/figures/Nearest_neighbor_viewer_main.png b/docs/articles/figures/Nearest_neighbor_viewer_main.png new file mode 100644 index 0000000..7584fa6 Binary files /dev/null and b/docs/articles/figures/Nearest_neighbor_viewer_main.png differ diff --git a/docs/articles/figures/Spatial_map_viewer_startup.png b/docs/articles/figures/Spatial_map_viewer_startup.png new file mode 100644 index 0000000..f9eb5b2 Binary files /dev/null and b/docs/articles/figures/Spatial_map_viewer_startup.png differ diff --git a/docs/articles/figures/Spatial_options.png b/docs/articles/figures/Spatial_options.png new file mode 100644 index 0000000..c5cc35a Binary files /dev/null and b/docs/articles/figures/Spatial_options.png differ diff --git a/docs/articles/index.html b/docs/articles/index.html index 01b0b5e..7d5c585 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -60,7 +60,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -85,6 +85,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/articles/spatial_map_viewer.html b/docs/articles/spatial_map_viewer.html new file mode 100644 index 0000000..e12c4e5 --- /dev/null +++ b/docs/articles/spatial_map_viewer.html @@ -0,0 +1,204 @@ + + + + + + + +Viewing nearest neighbors • phenoptrReports + + + + + + + + + +
    +
    + + + +
    +
    + + + + +
    +

    +Overview

    +

    The “Spatial map viewer” addin allows viewing of nearest neighbor relationships between cells of selected phenotypes in a single field. Views can be saved for later use.

    +
    +
    +

    +Data requirements

    +
    +

    +Nearest neighbors data file

    +

    Nearest neighbor relationships are read from a nearest_neighbors.csv file. This file is created by the “Analyze consolidated data” addin when “Save nearest neighbor details” is selected.

    +
    +
    +

    +Composite and component image files

    +

    The viewer uses both composite and component image files for the fields of interest. These files are written by the inForm export step.

    +

    The composite images are shown as the background of the nearest neighbor visualizations. The colors and components shown are determined by the inForm export settings.

    +

    The component images are the source of metadata about fields that is needed to properly places cells in the visualizations.

    +
    +
    +
    +

    +Detailed steps

    +
    +

    +Start the spatial map viewer

    +

    Choose “Spatial map viewer” from the RStudio Addins menu to start the viewer.

    +
    +
    +

    +Select input files

    +

    The viewer’s initial screen allows you to select the nearest neighbor file and inForm export directory containing the fields of interest.

    +
      +
    1. First, click the “Browse input” button and select the nearest_neighbors.csv file created by the analysis addin.

    2. +
    3. Next, click the second “Browse” button and select the inForm output directory corresponding with the nearest neighbors file.

    4. +
    5. Finally, click “Open Viewer” to start the viewer.

    6. +
    +

    +
    +
    +

    +Nearest neighbor viewer

    +

    The nearest neighbor viewer allows you to

    +
      +
    1. Select and color phenotypes In this section, select the two phenotypes of interest and the colors to use to display the phenotypes. Important! Only single phenotypes are supported. Double-positive phenotypes may not be used here.

    2. +
    3. Select a field to view Use the dropdown to select a particular field, or use the Previous and Next buttons to browse through all the fields.

    4. +
    5. Select the type of nearest neighbor relationship “Nearest neighbor” is not a symmetric relationship—cell A may have a nearest neighbor B, whose nearest neighbor is not A. Try the different settings to find the one you want.

    6. +
    7. Control the dot size This slider controls the size of the dots displaying the cells. You may want to make the dots smaller before saving images.

    8. +
    9. Save a single view or views for all fields The “Save image” button will save the currently displayed image in your browser’s Download folder. The “Save all” button will use the current settings to save a zip file containing images of all fields in the experiment.

    10. +
    +

    +
    +
    +
    + + + +
    + + + +
    + + + + + diff --git a/docs/articles/unmixing_quality_report.html b/docs/articles/unmixing_quality_report.html index e2c960b..de494f7 100644 --- a/docs/articles/unmixing_quality_report.html +++ b/docs/articles/unmixing_quality_report.html @@ -30,7 +30,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -55,6 +55,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • @@ -94,7 +97,7 @@

    Unmixing quality report

    Kent Johnson

    -

    2019-05-10

    +

    2019-06-18

    Source: vignettes/unmixing_quality_report.Rmd diff --git a/docs/authors.html b/docs/authors.html index 78b98f5..396bb9a 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -60,7 +60,7 @@ phenoptrReports - 0.2.1 + 0.2.2 @@ -85,6 +85,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • @@ -130,6 +133,10 @@

    Authors

    Kent S Johnson. Author, maintainer.

    +
  • +

    Carla Coltharp. Contributor. +

    +
  • Akoya Biosciences. Copyright holder.

    diff --git a/docs/index.html b/docs/index.html index 12e2f60..bd6b6a4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -30,7 +30,7 @@ phenoptrReports - 0.2.1 + 0.2.2 @@ -55,6 +55,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • @@ -92,96 +95,80 @@
    -
    +

    -Introduction

    -

    phenoptrReports generates reports based on data created by Akoya Biosciences’ inForm® software.

    -
    -

    -Merging data from individual fields

    -

    The “Merge cell seg files” application merges inForm data files from individual fields to create “Merge” data files. This is similar to the inForm Merge tab but does not include the ability to review and reject individual fields.

    -
    -
    -

    -Data aggregation and reporting

    -

    The consolidation and analysis applications in phenoptrReports use merged data files to analyze cell phenotype and expression data created by inForm. They use data from multiple inForm projects to aggregate phenoype counts, density, mean expression and H-Score for each slide and tissue category in an experiment.

    -

    For each analysis, the applications create

    -
      -
    • a consolidated data file
    • -
    • an Excel workbook with aggregation results
    • -
    • a Word document with visualizations of the results
    • -
    • an R script which provides an audit trail and can be used to reproduce or modify the analysis.
    • -
    -
    -
    -

    -Unmixing quality report

    -

    The unmixing quality report analyzes unmixed, singleplex images to help evaluate staining and unmixing quality. This report shows crosstalk between components and highlights potential problem areas in assay development.

    -
    -
    -

    -Component levels report

    -

    The component levels report analyzes unmixed, multiplex images to help evaluate staining levels for an entire experiment. This report shows the distribution of signal and dark pixels for all components.

    -
    -

    phenoptrReports is part of the Akoya Biosciences Phenoptics™ family of Quantitative Pathology Research Solutions. For more information visit the Phenoptics™ home page.

    +Reports and visualizations from inForm data +

    phenoptrReports generates reports and visualizations based on data created by Akoya Biosciences’ inForm® software.

    +

    phenoptrReports is part of the Akoya Biosciences Phenoptics™ family of Quantitative Pathology Research Solutions. For more information visit the Phenoptics™ home page.


    -

    Installation

    -

    phenoptrReports requires the R environment for statistical computing, version 3.5.0 or higher. To install R, visit the R download page.

    The analysis apps in phenoptrReports run as “Addins” to the RStudio IDE, which must also be installed.

    -
      -
    1. Install R. Download the most recent version from https://cloud.r-project.org/.
    2. -
    3. Install RStudio. Download the desktop version from https://www.rstudio.com/products/rstudio/.
    4. -
    5. Start RStudio.
    6. -
    7. Install phenoptrReports from GitHub. In the RStudio console, copy and paste or type these commands (press Enter after each line):
    8. -
    -
    install.packages("devtools")
    -devtools::install_github("akoyabio/phenoptrReports")
    -
      -
    1. If requested, enter 1 (Yes) to install BiocInstaller.
    2. -
    3. Restart RStudio.
    4. -
    +

    phenoptrReports uses the Akoya Biosciences phenoptr package for much of its functionality. Please follow the phenoptr installation instructions, including the optional installations, before installing phenoptrReports.

    +

    Next, install phenoptrReports from GitHub. In the RStudio console, copy and paste or type this command:

    +
    devtools::install_github("akoyabio/phenoptrReports")

    Getting Started

    -
    +

    phenoptrReports functionality is provided via RStudio Addins. These are small applications accessed via the “Addins” menu in the RStudio IDE.

    +

    -Merging data from individual fields

    -

    Use the “Merge cell seg files” addin to merge inForm data from individual fields into “Merge” data files. This is similar to the function of the inForm Merge tab and should be used only when the inForm Merge is not available.

    +Merge data from individual fields +

    The Merge cell seg files addin merges inForm data files from individual fields to create “Merge” data files. This is similar to the inForm Merge tab but does not include the ability to review and reject individual fields. Use this addin if you are not able to merge in inForm for any reason.

    +

    This addin allows you to select an inForm export directory containing data files for individual fields. It creates merge data files combining data for all fields.

    -
    +

    -Data consolidation

    -

    A phenoptrReports data analysis has two major steps - data consolidation and data aggregation. Start the consolidation step by selecting Consolidate and summarize from the RStudio Addins menu.

    -

    The consolidation step combines the output from multiple inForm projects into a single consolidated data file, creating columns for each individual phenotype. The inputs to this step are merged cell seg data files created by inForm. The output is a consolidated data file and a summary report for each file.

    -

    Run the consolidation step even if your data comes from a single inForm project. This creates a data file in the format that the analysis step uses.

    -

    For detailed instructions and requirements, see the Consolidating inForm data tutorial.

    +Consolidate merged data to a single file +

    The Consolidate and summarize addin combines the output from multiple inForm projects into a single consolidated data file, creating columns for each individual phenotype. The inputs to this addin are merged cell seg data files created by inForm. The output is a consolidated data file and a summary report for each file.

    +

    Run the consolidation addin even if your data comes from a single inForm project. This creates a data file in the format that the analysis addin uses.

    +

    For detailed instructions and requirements, see the Consolidating inForm data tutorial.

    Data analysis

    -

    The analysis step has three parts:

    +

    The Analyze consolidated data addin reads data produced by the consolidation addin. It aggregates phenoype counts, density, mean expression and H-Score for each slide and tissue category in an experiment and can also report on nearest neighbors and count cells within a radius.

    +

    This addin creates

    +
      +
    • an Excel workbook with aggregation results
    • +
    • a Word document with visualizations of the results
    • +
    • CSV files containing spatial metrics
    • +
    • an R script which provides an audit trail and can be used to reproduce or modify the analysis.
    • +
    +

    The analysis addin has three parts:

    • select the input files
    • define the desired analysis
    • create the final reports
    -

    The most important input file is the consolidated data file from the consolidation step. Selecting a summary cell seg data file enables density calculations; selecting a score data file enables H-Score calculation.

    +

    The most important input file is the consolidated data file from the consolidation addin. Selecting a summary cell seg data file enables density calculations; selecting a score data file enables H-Score calculation.

    To define the analysis, you select tissue categories, phenotypes, and markers of interest.

    To create the final reports, the analysis app writes and runs an R script. The script computes the aggregated statistics, writes them to an Excel workbook, and creates visualizations of the results in a Word document.

    -

    For detailed instructions and requirements, see the Analyzing inForm data tutorial.

    +

    For detailed instructions and requirements, see the Analyzing inForm data tutorial.

    -
    +

    -Unmixing quality report

    -

    For more information about the unmixing quality report, see the Unmixing quality report tutorial.

    +Visualization of spatial relationships +

    The Spatial map viewer addin creates visualizations of nearest neighbors of selected phenotypes within individual fields. The visualizations can be saved for use in other applications.

    +

    The spatial map viewer requires a nearest_neighbors.csv file created by the analysis addin and in inForm export folder containing composite and component images.

    +

    For detailed instructions and requirements, see the Visualizing spatial relationships tutorial.

    +
    +
    +

    +Unmixing quality report

    +

    The Unmixing quality report addin analyzes unmixed, singleplex images to help evaluate staining and unmixing quality. This report shows crosstalk between components and highlights potential problem areas in assay development.

    +

    For more information about the unmixing quality report, see the Unmixing quality report tutorial.

    +
    +
    +

    +Component levels report

    +

    The Component levels report addin analyzes unmixed, multiplex images to help evaluate staining levels for an entire experiment. This report shows the distribution of signal and dark pixels for all components.

    diff --git a/docs/news/index.html b/docs/news/index.html index afb8f7e..8861b56 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -60,7 +60,7 @@ phenoptrReports - 0.2.1 + 0.2.2
    @@ -85,6 +85,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • @@ -126,6 +129,23 @@

    Changelog

    Source: NEWS.md
    +
    +

    +phenoptrReports 0.2.2

    +

    2019-06-18

    +

    Spatial map viewer addin:

    + +

    Analysis addin:

    +
      +
    • Phenotype definitions may include valid expressions such as ~`Membrane PDL1 (Opal 520) Mean`>5.
    • +
    +

    Bug fixes:

    +
      +
    • Fix error during calculation of N/A and Total cell in cell seg summary report
    • +
    +

    phenoptrReports 0.2.1

    @@ -319,6 +339,7 @@

    Contents

    @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/addin_10_merge.html b/docs/reference/addin_10_merge.html index de730b2..d356aa0 100644 --- a/docs/reference/addin_10_merge.html +++ b/docs/reference/addin_10_merge.html @@ -68,7 +68,7 @@ phenoptrReports - 0.2.0 + 0.2.2

    @@ -93,6 +93,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/addin_20_consolidate.html b/docs/reference/addin_20_consolidate.html index a7daebc..7fb46a0 100644 --- a/docs/reference/addin_20_consolidate.html +++ b/docs/reference/addin_20_consolidate.html @@ -66,7 +66,7 @@ phenoptrReports - 0.2.0 + 0.2.2
    @@ -91,6 +91,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/addin_30_analysis_app.html b/docs/reference/addin_30_analysis_app.html index 67f7e79..233071e 100644 --- a/docs/reference/addin_30_analysis_app.html +++ b/docs/reference/addin_30_analysis_app.html @@ -64,7 +64,7 @@ phenoptrReports - 0.2.0 + 0.2.2
    @@ -89,6 +89,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/addin_35_spatial_map_viewer.html b/docs/reference/addin_35_spatial_map_viewer.html new file mode 100644 index 0000000..179ac6f --- /dev/null +++ b/docs/reference/addin_35_spatial_map_viewer.html @@ -0,0 +1,175 @@ + + + + + + + + +Spatial map viewer addin — addin_35_spatial_map_viewer • phenoptrReports + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + +
    + +
    +
    + + +
    + +

    This function starts a GUI which allows you to select a nearest neighbors +file and an inForm export directory. Once selected, you can view fields +in the export directory superimposed with a map of nearest neighbor +relationships.

    + +
    + +
    addin_35_spatial_map_viewer()
    + + +
    + +
    + +
    + + +
    +

    Site built with pkgdown 1.3.0.

    +
    +
    +
    + + + + + + diff --git a/docs/reference/addin_40_unmixing_quality.html b/docs/reference/addin_40_unmixing_quality.html index 2a6dc3f..f345092 100644 --- a/docs/reference/addin_40_unmixing_quality.html +++ b/docs/reference/addin_40_unmixing_quality.html @@ -66,7 +66,7 @@ phenoptrReports - 0.2.0 + 0.2.2
    @@ -91,6 +91,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/addin_50_component_levels.html b/docs/reference/addin_50_component_levels.html index f44feda..42fa0c0 100644 --- a/docs/reference/addin_50_component_levels.html +++ b/docs/reference/addin_50_component_levels.html @@ -66,7 +66,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -91,6 +91,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/cc_and.html b/docs/reference/cc_and.html index 987f4e3..856725b 100644 --- a/docs/reference/cc_and.html +++ b/docs/reference/cc_and.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/check_phenotypes.html b/docs/reference/check_phenotypes.html index 87ef88c..48c6f99 100644 --- a/docs/reference/check_phenotypes.html +++ b/docs/reference/check_phenotypes.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/choose_directory.html b/docs/reference/choose_directory.html index be15d21..d286418 100644 --- a/docs/reference/choose_directory.html +++ b/docs/reference/choose_directory.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/choose_files.html b/docs/reference/choose_files.html index cd193dc..064a359 100644 --- a/docs/reference/choose_files.html +++ b/docs/reference/choose_files.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/component_levels_report.html b/docs/reference/component_levels_report.html index f24b10e..dfbb9e5 100644 --- a/docs/reference/component_levels_report.html +++ b/docs/reference/component_levels_report.html @@ -66,7 +66,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -91,6 +91,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/compute_density_from_cell_summary.html b/docs/reference/compute_density_from_cell_summary.html index 9d22107..282fc36 100644 --- a/docs/reference/compute_density_from_cell_summary.html +++ b/docs/reference/compute_density_from_cell_summary.html @@ -64,7 +64,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -89,6 +89,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/compute_density_from_table.html b/docs/reference/compute_density_from_table.html index 7179ea9..47abf83 100644 --- a/docs/reference/compute_density_from_table.html +++ b/docs/reference/compute_density_from_table.html @@ -64,7 +64,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -89,6 +89,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/compute_h_score.html b/docs/reference/compute_h_score.html index c0da5dd..5e96b78 100644 --- a/docs/reference/compute_h_score.html +++ b/docs/reference/compute_h_score.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/compute_h_score_from_score_data.html b/docs/reference/compute_h_score_from_score_data.html index e59657e..36473a4 100644 --- a/docs/reference/compute_h_score_from_score_data.html +++ b/docs/reference/compute_h_score_from_score_data.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/compute_mean_expression.html b/docs/reference/compute_mean_expression.html index 5fd8f1b..287521f 100644 --- a/docs/reference/compute_mean_expression.html +++ b/docs/reference/compute_mean_expression.html @@ -65,7 +65,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -90,6 +90,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/compute_mean_expression_many.html b/docs/reference/compute_mean_expression_many.html index ccda95d..b10eb5d 100644 --- a/docs/reference/compute_mean_expression_many.html +++ b/docs/reference/compute_mean_expression_many.html @@ -64,7 +64,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -89,6 +89,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/compute_positivity.html b/docs/reference/compute_positivity.html index 4999c18..aba8ed8 100644 --- a/docs/reference/compute_positivity.html +++ b/docs/reference/compute_positivity.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/compute_positivity_many.html b/docs/reference/compute_positivity_many.html index 3fddc9a..a8d90a7 100644 --- a/docs/reference/compute_positivity_many.html +++ b/docs/reference/compute_positivity_many.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/consolidate_and_summarize_cell_seg_data.html b/docs/reference/consolidate_and_summarize_cell_seg_data.html index fda0c9f..c344c08 100644 --- a/docs/reference/consolidate_and_summarize_cell_seg_data.html +++ b/docs/reference/consolidate_and_summarize_cell_seg_data.html @@ -66,7 +66,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -91,6 +91,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/count_phenotypes.html b/docs/reference/count_phenotypes.html index 97cbfb3..7241c06 100644 --- a/docs/reference/count_phenotypes.html +++ b/docs/reference/count_phenotypes.html @@ -65,7 +65,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -90,6 +90,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/count_within_summary.html b/docs/reference/count_within_summary.html index 9ca0d3b..59d2122 100644 --- a/docs/reference/count_within_summary.html +++ b/docs/reference/count_within_summary.html @@ -66,7 +66,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -91,6 +91,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/counts_to_percents.html b/docs/reference/counts_to_percents.html index 2ac1e6c..63f3043 100644 --- a/docs/reference/counts_to_percents.html +++ b/docs/reference/counts_to_percents.html @@ -65,7 +65,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -90,6 +90,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/figures/Akoya.png b/docs/reference/figures/Akoya.png index 9da0f4f..5d5c30a 100644 Binary files a/docs/reference/figures/Akoya.png and b/docs/reference/figures/Akoya.png differ diff --git a/docs/reference/file_to_fluor.html b/docs/reference/file_to_fluor.html index 633d3ca..ff943f3 100644 --- a/docs/reference/file_to_fluor.html +++ b/docs/reference/file_to_fluor.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/function_exists.html b/docs/reference/function_exists.html index 135d6ec..105a114 100644 --- a/docs/reference/function_exists.html +++ b/docs/reference/function_exists.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/index.html b/docs/reference/index.html index 05d9cb8..3e64ec0 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -60,7 +60,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -85,6 +85,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • @@ -160,6 +163,12 @@

    addin_35_spatial_map_viewer()

    + +

    Spatial map viewer addin

    + +

    addin_40_unmixing_quality()

    @@ -412,12 +421,25 @@

    nearest_neighbor_map()

    + +

    Make a nearest neighbor map for a single field

    + +

    order_by_slide_and_tissue_category()

    Order a data frame by slide ID and tissue category, putting the categories in the given order and the "Total" category in the proper place.

    + + + +

    spatial_map_viewer()

    + +

    Run the spatial map viewer with the given nearest neighbor +file and export directory.

    diff --git a/docs/reference/make_nested.html b/docs/reference/make_nested.html index cbd8631..42a06e8 100644 --- a/docs/reference/make_nested.html +++ b/docs/reference/make_nested.html @@ -66,7 +66,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -91,6 +91,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/make_unique_names.html b/docs/reference/make_unique_names.html index 3c79493..abe32c5 100644 --- a/docs/reference/make_unique_names.html +++ b/docs/reference/make_unique_names.html @@ -66,7 +66,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -91,6 +91,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/merge_cell_seg_files.html b/docs/reference/merge_cell_seg_files.html index a66a335..079f55a 100644 --- a/docs/reference/merge_cell_seg_files.html +++ b/docs/reference/merge_cell_seg_files.html @@ -65,7 +65,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -90,6 +90,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/nearest_neighbor_map.html b/docs/reference/nearest_neighbor_map.html new file mode 100644 index 0000000..c277788 --- /dev/null +++ b/docs/reference/nearest_neighbor_map.html @@ -0,0 +1,224 @@ + + + + + + + + +Make a nearest neighbor map for a single field — nearest_neighbor_map • phenoptrReports + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + +
    + +
    +
    + + +
    + +

    The phenotype definitions may be NA, in which case the base field +will be shown with any available phenotype.

    + +
    + +
    nearest_neighbor_map(csd, field, export_path, pheno1, pheno2, color1,
    +  color2, show_as = c("from_to", "to_from", "mutual", "none"),
    +  dot_size = 3, add_logo = TRUE)
    + +

    Arguments

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    csd

    Cell seg data with distance columns

    field

    Sample Name or Annotation ID to map

    export_path

    Path to a directory containing composite and component +image files from inForm

    pheno1, pheno2

    Phenotype definitions

    color1, color2

    Colors to draw the phenotype dots

    show_as

    Which nearest neighbors should be shown?

    dot_size

    Size of the dots used to show phenotypes

    add_logo

    Show the Akoya logo in the image?

    + +

    Value

    + +

    A ggplot object

    + +

    Details

    + +

    Note: Only single phenotypes are supported.

    + + +
    + +
    + +
    + + +
    +

    Site built with pkgdown 1.3.0.

    +
    +
    +
    + + + + + + diff --git a/docs/reference/nearest_neighbor_summary.html b/docs/reference/nearest_neighbor_summary.html index 3680287..e94d0f5 100644 --- a/docs/reference/nearest_neighbor_summary.html +++ b/docs/reference/nearest_neighbor_summary.html @@ -64,7 +64,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -89,6 +89,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/order_by_slide_and_tissue_category.html b/docs/reference/order_by_slide_and_tissue_category.html index e84e32d..a58a30f 100644 --- a/docs/reference/order_by_slide_and_tissue_category.html +++ b/docs/reference/order_by_slide_and_tissue_category.html @@ -69,7 +69,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -94,6 +94,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/process_singleplex_image.html b/docs/reference/process_singleplex_image.html index 33242fe..6cff392 100644 --- a/docs/reference/process_singleplex_image.html +++ b/docs/reference/process_singleplex_image.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/spatial_map_viewer.html b/docs/reference/spatial_map_viewer.html new file mode 100644 index 0000000..c2f6c2c --- /dev/null +++ b/docs/reference/spatial_map_viewer.html @@ -0,0 +1,196 @@ + + + + + + + + +Run the spatial map viewer with the given nearest neighbor +file and export directory. — spatial_map_viewer • phenoptrReports + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + +
    + +
    +
    + + +
    + +

    See addin_35_spatial_map_viewer() +for a GUI front-end to this function.

    + +
    + +
    spatial_map_viewer(nn_path, export_path)
    + +

    Arguments

    + + + + + + + + + + +
    nn_path

    Path to a nearest_neighbors.csv file created by the +analysis app.

    export_path

    Path to a directory containing composite and +component images for the fields in the nearest neighbors file.

    + +

    Value

    + +

    None; starts the viewer app

    + + +
    + +
    + +
    + + +
    +

    Site built with pkgdown 1.3.0.

    +
    +
    +
    + + + + + + diff --git a/docs/reference/spatial_map_viewer_front_end.html b/docs/reference/spatial_map_viewer_front_end.html new file mode 100644 index 0000000..a579f9c --- /dev/null +++ b/docs/reference/spatial_map_viewer_front_end.html @@ -0,0 +1,169 @@ + + + + + + + + +Request input file and directory for the viewer, then launch the viewer — spatial_map_viewer_front_end • phenoptrReports + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + +
    + +
    +
    + + +
    + +

    Request input file and directory for the viewer, then launch the viewer

    + +
    + +
    spatial_map_viewer_front_end()
    + + +
    + +
    + +
    + + +
    +

    Site built with pkgdown 1.3.0.

    +
    +
    +
    + + + + + + diff --git a/docs/reference/split_phenotypes.html b/docs/reference/split_phenotypes.html index c741270..cde1d94 100644 --- a/docs/reference/split_phenotypes.html +++ b/docs/reference/split_phenotypes.html @@ -64,7 +64,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -89,6 +89,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/unmixing_quality_report.html b/docs/reference/unmixing_quality_report.html index a813f12..cd640d2 100644 --- a/docs/reference/unmixing_quality_report.html +++ b/docs/reference/unmixing_quality_report.html @@ -66,7 +66,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -91,6 +91,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/upset_data.html b/docs/reference/upset_data.html index ddb0119..fc34e09 100644 --- a/docs/reference/upset_data.html +++ b/docs/reference/upset_data.html @@ -64,7 +64,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -89,6 +89,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/upset_plot.html b/docs/reference/upset_plot.html index 833d4a3..f0785ee 100644 --- a/docs/reference/upset_plot.html +++ b/docs/reference/upset_plot.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/write_count_within_sheet.html b/docs/reference/write_count_within_sheet.html index d048acc..c2f8b86 100644 --- a/docs/reference/write_count_within_sheet.html +++ b/docs/reference/write_count_within_sheet.html @@ -64,7 +64,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -89,6 +89,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/write_counts_sheet.html b/docs/reference/write_counts_sheet.html index 97dae1c..ae3822a 100644 --- a/docs/reference/write_counts_sheet.html +++ b/docs/reference/write_counts_sheet.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/write_density_sheet.html b/docs/reference/write_density_sheet.html index f7b205e..793957f 100644 --- a/docs/reference/write_density_sheet.html +++ b/docs/reference/write_density_sheet.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/write_expression_sheet.html b/docs/reference/write_expression_sheet.html index 151d295..839e5c0 100644 --- a/docs/reference/write_expression_sheet.html +++ b/docs/reference/write_expression_sheet.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/write_h_score_sheet.html b/docs/reference/write_h_score_sheet.html index ec98a24..cad8847 100644 --- a/docs/reference/write_h_score_sheet.html +++ b/docs/reference/write_h_score_sheet.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/write_nearest_neighbor_summary_sheet.html b/docs/reference/write_nearest_neighbor_summary_sheet.html index c117f8c..f3983b5 100644 --- a/docs/reference/write_nearest_neighbor_summary_sheet.html +++ b/docs/reference/write_nearest_neighbor_summary_sheet.html @@ -64,7 +64,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -89,6 +89,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/write_percents_sheet.html b/docs/reference/write_percents_sheet.html index 859b67a..5f6d8ab 100644 --- a/docs/reference/write_percents_sheet.html +++ b/docs/reference/write_percents_sheet.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/write_plot_sheet.html b/docs/reference/write_plot_sheet.html index 2ce9fe6..9476aa4 100644 --- a/docs/reference/write_plot_sheet.html +++ b/docs/reference/write_plot_sheet.html @@ -63,7 +63,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -88,6 +88,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/write_session_info.html b/docs/reference/write_session_info.html index ae2124e..2ba1b30 100644 --- a/docs/reference/write_session_info.html +++ b/docs/reference/write_session_info.html @@ -64,7 +64,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -89,6 +89,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/write_sheet.html b/docs/reference/write_sheet.html index f0763ca..045de35 100644 --- a/docs/reference/write_sheet.html +++ b/docs/reference/write_sheet.html @@ -69,7 +69,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -94,6 +94,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/write_summary_charts.html b/docs/reference/write_summary_charts.html index 452dc92..1b64965 100644 --- a/docs/reference/write_summary_charts.html +++ b/docs/reference/write_summary_charts.html @@ -65,7 +65,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -90,6 +90,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/write_summary_report.html b/docs/reference/write_summary_report.html index 0ff8c12..c8ac0fe 100644 --- a/docs/reference/write_summary_report.html +++ b/docs/reference/write_summary_report.html @@ -64,7 +64,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -89,6 +89,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/reference/write_summary_sheet.html b/docs/reference/write_summary_sheet.html index c6cb3a9..8d0e6bd 100644 --- a/docs/reference/write_summary_sheet.html +++ b/docs/reference/write_summary_sheet.html @@ -64,7 +64,7 @@ phenoptrReports - 0.2.0 + 0.2.2 @@ -89,6 +89,9 @@
  • Analyzing inForm data
  • +
  • + Visualizing spatial relationships +
  • Unmixing quality report
  • diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 95040cc..209cc2e 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -12,6 +12,9 @@ http://akoyabio.github.io/phenoptrReports/reference/addin_30_analysis_app.html + + http://akoyabio.github.io/phenoptrReports/reference/addin_35_spatial_map_viewer.html + http://akoyabio.github.io/phenoptrReports/reference/addin_40_unmixing_quality.html @@ -87,6 +90,9 @@ http://akoyabio.github.io/phenoptrReports/reference/merge_cell_seg_files.html + + http://akoyabio.github.io/phenoptrReports/reference/nearest_neighbor_map.html + http://akoyabio.github.io/phenoptrReports/reference/nearest_neighbor_summary.html @@ -96,6 +102,12 @@ http://akoyabio.github.io/phenoptrReports/reference/process_singleplex_image.html + + http://akoyabio.github.io/phenoptrReports/reference/spatial_map_viewer.html + + + http://akoyabio.github.io/phenoptrReports/reference/spatial_map_viewer_front_end.html + http://akoyabio.github.io/phenoptrReports/reference/split_phenotypes.html @@ -108,9 +120,6 @@ http://akoyabio.github.io/phenoptrReports/reference/upset_plot.html - - http://akoyabio.github.io/phenoptrReports/reference/validate_phenotype_definitions.html - http://akoyabio.github.io/phenoptrReports/reference/write_counts_sheet.html @@ -156,6 +165,9 @@ http://akoyabio.github.io/phenoptrReports/articles/consolidation.html + + http://akoyabio.github.io/phenoptrReports/articles/spatial_map_viewer.html + http://akoyabio.github.io/phenoptrReports/articles/unmixing_quality_report.html diff --git a/vignettes/spatial_map_addin.Rmd b/vignettes/spatial_map_viewer.Rmd similarity index 100% rename from vignettes/spatial_map_addin.Rmd rename to vignettes/spatial_map_viewer.Rmd