Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/xieguigang/mzkit
Browse files Browse the repository at this point in the history
  • Loading branch information
xieguigang committed Dec 18, 2024
2 parents 14964c1 + 383441c commit 56b287e
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 55 deletions.
114 changes: 59 additions & 55 deletions Rscript/Library/mzkit_app/src/mzkit/comprehensive/TissueMorphology.vb
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
#Region "Microsoft.VisualBasic::3d378d248d2314352cf77a8f05de51f9, Rscript\Library\mzkit_app\src\mzkit\comprehensive\TissueMorphology.vb"

' Author:
'
' xieguigang ([email protected], BioNovoGene Co., LTD.)
'
' Copyright (c) 2018 [email protected], BioNovoGene Co., LTD.
'
'
' MIT License
'
'
' Permission is hereby granted, free of charge, to any person obtaining a copy
' of this software and associated documentation files (the "Software"), to deal
' in the Software without restriction, including without limitation the rights
' to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
' copies of the Software, and to permit persons to whom the Software is
' furnished to do so, subject to the following conditions:
'
' The above copyright notice and this permission notice shall be included in all
' copies or substantial portions of the Software.
'
' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
' IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
' FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
' AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
' LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
' OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
' SOFTWARE.



' /********************************************************************************/

' Summaries:


' Code Statistics:

' Total Lines: 738
' Code Lines: 544 (73.71%)
' Comment Lines: 104 (14.09%)
' - Xml Docs: 97.12%
'
' Blank Lines: 90 (12.20%)
' File Size: 29.11 KB


' Module TissueMorphology
'
' Constructor: (+1 Overloads) Sub New
' Function: createCDF, createTissueData, createTissueTable, createUMAPsample, createUMAPTable
' FillLabels, GetPointLabels, gridding, intersect, loadSpatialMapping
' loadTissue, loadUMAP, (+2 Overloads) PlotTissueMap, SplitMapping, tag_samples
' TagSampleLabels
'
' /********************************************************************************/
' Author:
'
' xieguigang ([email protected], BioNovoGene Co., LTD.)
'
' Copyright (c) 2018 [email protected], BioNovoGene Co., LTD.
'
'
' MIT License
'
'
' Permission is hereby granted, free of charge, to any person obtaining a copy
' of this software and associated documentation files (the "Software"), to deal
' in the Software without restriction, including without limitation the rights
' to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
' copies of the Software, and to permit persons to whom the Software is
' furnished to do so, subject to the following conditions:
'
' The above copyright notice and this permission notice shall be included in all
' copies or substantial portions of the Software.
'
' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
' IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
' FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
' AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
' LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
' OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
' SOFTWARE.



' /********************************************************************************/

' Summaries:


' Code Statistics:

' Total Lines: 738
' Code Lines: 544 (73.71%)
' Comment Lines: 104 (14.09%)
' - Xml Docs: 97.12%
'
' Blank Lines: 90 (12.20%)
' File Size: 29.11 KB


' Module TissueMorphology
'
' Constructor: (+1 Overloads) Sub New
' Function: createCDF, createTissueData, createTissueTable, createUMAPsample, createUMAPTable
' FillLabels, GetPointLabels, gridding, intersect, loadSpatialMapping
' loadTissue, loadUMAP, (+2 Overloads) PlotTissueMap, SplitMapping, tag_samples
' TagSampleLabels
'
' /********************************************************************************/

#End Region

Expand Down Expand Up @@ -553,6 +553,10 @@ Module TissueMorphology
Dim colors As New Dictionary(Of String, Color)
Dim regions As New Dictionary(Of String, List(Of Point))

If colorSet Is Nothing Then
Return RInternal.debug.stop($"the color palette term is nothing, please check of the '{NameOf(colorSet)}' parameter!", env)
End If

If TypeOf colorSet Is list Then
Dim list As list = DirectCast(colorSet, list)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ <h3>Declare</h3>
<code id="clr_ts">
# namespace SMRUCC.genomics.Analysis.HTS.GSEA
export class Cluster extends <a href="/vignettes/clr/Microsoft/VisualBasic/Text/Xml/Models/ListOf`1.html">ListOf`1</a> {
category: string;
class: string;
# A brief description on term function.
description: string;
# The cluster id.(代谢途径的编号或者其他的标识符)
Expand Down

0 comments on commit 56b287e

Please sign in to comment.