Skip to content

Commit

Permalink
start of common elements...
Browse files Browse the repository at this point in the history
... e.g. {{config.api_web_root}} to re-use documentation pages across sites
  • Loading branch information
mbaudis committed Feb 1, 2024
1 parent af56e3b commit 03bd33b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
26 changes: 16 additions & 10 deletions docs/plotting.md → docs/common/plotting.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,38 +34,44 @@ by the [`byconaut`](https://byconaut.progenetix.org/) software project. It suppo
Below are just some plot examples; for detailed use please refer to the
[documentation](https://byconaut.progenetix.org/plotting/).

Examples link to or are embedded from **{{api_site_label}}**.

### CNV Histogram Plots

There are two possibilities to plot CNV histograms through the Progenetix API w/o using the user interface:

1. direct visualization of pre-computed collations, e.g. publications or diagnosttic entities
* [progenetix.org/services/collationPlots/?datasetIds=progenetix&id=NCIT:C4443](http://progenetix.org/services/collationPlots/?datasetIds=progenetix&id=NCIT:C4443)
2. a Beacon API query with the added option `&output=histoplot`
* [progenetix.org/beacon/biosamples/?limit=200&datasetIds=progenetix&referenceName=refseq:NC_000009.12&variantType=EFO:0030067&start=21500000,21975098&end=21967753,22500000&filters=NCIT:C3058&output=histoplot](http://progenetix.org/beacon/biosamples/?limit=200&datasetIds=progenetix&referenceName=refseq:NC_000009.12&variantType=EFO:0030067&start=21500000,21975098&end=21967753,22500000&filters=NCIT:C3058&output=histoplot)
* [services/collationPlots/?datasetIds=progenetix&id=NCIT:C4443]({{config.api_web_root}}/services/collationPlots/?datasetIds=progenetix&id=NCIT:C4443)
2. a services API query in Beacon format, with the added option `&plotType=histoplot`
(which is actually the fallback so not strictly needed...)
* [services/sampleplots?limit=200&datasetIds=progenetix&referenceName=refseq:NC_000009.12&variantType=EFO:0030067&start=21500000,21975098&end=21967753,22500000&filters=NCIT:C3058&output=histoplot]({{config.api_web_root}}/services/sampleplots?limit=200&datasetIds=progenetix&referenceName=refseq:NC_000009.12&variantType=EFO:0030067&start=21500000,21975098&end=21967753,22500000&filters=NCIT:C3058&output=histoplot)

Please **use option 1** if accessing complete entities (i.e. only using a single `filters` value) - this option is not limited through large sample numbers.

#### Examples (using progenetix.org)
#### Examples

!!! note "Live Plot Generation"

The examples below are embedded using direct API calls to `progenetix.org`.

!!!

* customized plot for glioblastoma CNV frequencies, limited to chromosomes 7, 9
and 10 and
- `services/collationPlots/?id=NCIT:C3058&plotPars=plotChros=7,9,10::size_plotimage_w_px=640`

![](https://progenetix.org/services/collationPlots/?id=NCIT:C3058&plotPars=plotChros=7,9,10::size_plotimage_w_px=640)
![]({{config.api_web_root}}/services/collationPlots/?id=NCIT:C3058&plotPars=plotChros=7,9,10::size_plotimage_w_px=640)

* plot with modified maximum Y - `value_plot_y_max` (histogram's maximum value
in percent) and some custom label, for the TCGA cancer samples
- `services/collationPlots/?id=pgx:cohort-TCGAcancers&plotPars=value_plot_y_max=50::plot_region_labels=5:0-48000000:Frequent+5p+gain,8:127735434-127742951:MYC::plot_marker_font_size=12`

![](https://progenetix.org/services/collationPlots/?id=pgx:cohort-TCGAcancers&plotPars=value_plot_y_max=50::plot_region_labels=5:0-48000000:Frequent+5p+gain,8:127735434-127742951:MYC::plot_marker_font_size=12)
![]({{config.api_web_root}}/services/collationPlots/?id=pgx:cohort-TCGAcancers&plotPars=value_plot_y_max=50::plot_region_labels=5:0-48000000:Frequent+5p+gain,8:127735434-127742951:MYC::plot_marker_font_size=12)

* as above, but plastering some cancer driver genes on the plot by their gene
symbols (`plot_gene_symbols`):
- `services/collationPlots/?id=pgx:cohort-TCGAcancers&plotPars=value_plot_y_max=50::plot_gene_symbols=MYC,MYCN,REL,ERBB2,TP53,CDK1,EGFR,BCL2,RB1::plot_marker_font_size=10`

![](https://progenetix.org/services/collationPlots/?id=pgx:cohort-TCGAcancers&plotPars=value_plot_y_max=50::plot_gene_symbols=MYC,MYCN,REL,ERBB2,TP53,CDK1,EGFR,BCL2,RB1::plot_marker_font_size=10)
![]({{config.api_web_root}}/services/collationPlots/?id=pgx:cohort-TCGAcancers&plotPars=value_plot_y_max=50::plot_gene_symbols=MYC,MYCN,REL,ERBB2,TP53,CDK1,EGFR,BCL2,RB1::plot_marker_font_size=10)


### Sample Strip Plots
Expand All @@ -75,9 +81,9 @@ Please **use option 1** if accessing complete entities (i.e. only using a single
- it uses the `plotType=samplesplot` to force the per sample display
- `services/sampleplots?filters=NCIT:C3058,pgx:cohort-TCGAcancers&plotPars=plotGeneSymbols=CDKN2A,EGFR&limit=30&plotType=samplesplot`

![](https://progenetix.org/services/sampleplots?filters=NCIT:C3058,pgx:cohort-TCGAcancers&plotPars=plotGeneSymbols=CDKN2A,EGFR&limit=30&plotType=samplesplot)
![]({{config.api_web_root}}/services/sampleplots?filters=NCIT:C3058,pgx:cohort-TCGAcancers&plotPars=plotGeneSymbols=CDKN2A,EGFR&limit=30&plotType=samplesplot)

* as above, without the `plotType=samplesplot` using the `histoplot` default
- `services/sampleplots?filters=NCIT:C3058,pgx:cohort-TCGAcancers&plotPars=plotGeneSymbols=CDKN2A,EGFR&limit=30`

![](https://progenetix.org/services/sampleplots?filters=NCIT:C3058,pgx:cohort-TCGAcancers&plotPars=plotGeneSymbols=CDKN2A,EGFR&limit=30)
![]({{config.api_web_root}}/services/sampleplots?filters=NCIT:C3058,pgx:cohort-TCGAcancers&plotPars=plotGeneSymbols=CDKN2A,EGFR&limit=30)
11 changes: 8 additions & 3 deletions mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ copyright: '© Copyright 2023, Michael Baudis and progenetix.org'
repo_name: progenetix-web
repo_url: https://github.com/progenetix/progenetix-web

###############################################################################
# vars for common files (shared between sites) #################################

api_site_label: progenetix.org
api_web_root: https://progenetix.org

################################################################################

nav:
- Documentation Home: index.md
Expand All @@ -15,7 +20,7 @@ nav:
- File Formats: file-formats
- Beacon+ API & bycon: beaconplus
- Analysis in R - pgxRpi: pgxRpi
- Plotting & Visualizations: plotting
- Plotting & Visualizations: common/plotting
- Use Case Examples: use-cases
- Classifications, Ontologies & Standards: classifications-and-ontologies
- Publication Collection: publication-collection
Expand All @@ -26,7 +31,7 @@ nav:
- cancercelllines.org ↗: http://cancercelllines.org
- Baudisgroup @ UZH ↗: http://info.baudisgroup.org

###############################################################################
################################################################################

markdown_extensions:
- toc:
Expand Down

0 comments on commit 03bd33b

Please sign in to comment.