nuget server logo nuget api documents
↑

API Docs / SMRUCC.genomics.GCModeller.Workbench.ExperimentDesigner / Extensions

Extensions

Full name SMRUCC.genomics.GCModeller.Workbench.ExperimentDesigner.Extensions Assembly SMRUCC.genomics.GCModeller.Workbench.ExperimentDesigner Members 19

01 Syntax

SMRUCC.genomics.GCModeller.Workbench.ExperimentDesigner.Extensions

02 Methods

NameOverloadsSummary
PairedAnalysisSamples 1 为成对数据的T检验设计的帮助函数
TakeGroup 1 从所给定的样本信息列表之中,取出指定组别编号的所有的样本信息
ToCategory 1 按照SampleGroup.sample_info进行分组,读取出每一个分组之中的 SampleGroup.sample_name
SampleNames 1 取出所有的SampleGroup.sample_name
SampleIDs 1 取出SampleInfo.ID
SampleGroupInfo 1 SampleInfo.ID -> SampleGroup.sample_info
SampleGroupColor 1 相同分组的sample都会被分配到相同的颜色,这个函数主要是为一些分类相关的绘图准备的,例如PCA之类的绘图
DataAnalysisDesign 1 将组别比对标记转换为样品比对标记
EnsureGroupPaired 1 Ensure all of the name label in allSamples were paired in groups.
SetNames 1 将SampleInfo.ID映射为对应的SampleGroup.sample_name
TakeGroup 1
ToCategory 1
SampleGroupColor 1
EnsureGroupPaired 1
SetNames 1
ImpactFactor 1
ImpactSort 1

03 Fields

NameOverloadsSummary
ExperimentDesigner 2 ExperimentDesigner category for the TemplateAttribute

04 Members

method PairedAnalysisSamples #
PairedAnalysisSamples(IEnumerable(Of SampleInfo), IEnumerable(Of AnalysisDesigner), IEnumerable(Of SampleTuple))

为成对数据的T检验设计的帮助函数

Parameters
NameTypeDescription
sampleInfoIEnumerable(Of SampleInfo)

-

analysisDesignIEnumerable(Of AnalysisDesigner)

-

sampleTupleIEnumerable(Of SampleTuple)

-

method TakeGroup #
TakeGroup``1(IEnumerable(Of ``0), String)

从所给定的样本信息列表之中,取出指定组别编号的所有的样本信息

Parameters
NameTypeDescription
sampleInfoIEnumerable(Of ``0)

-

groupLabelString

SampleGroup.sample_info

method ToCategory #
ToCategory``1(IEnumerable(Of ``0))

按照SampleGroup.sample_info进行分组,读取出每一个分组之中的 SampleGroup.sample_name

Parameters
NameTypeDescription
sampleInfoIEnumerable(Of ``0)

-

method SampleNames #
SampleNames(IEnumerable(Of SampleGroup))
Parameters
NameTypeDescription
sampleInfoIEnumerable(Of SampleGroup)

-

method SampleIDs #
SampleIDs(IEnumerable(Of SampleInfo), String)
Parameters
NameTypeDescription
sampleInfoIEnumerable(Of SampleInfo)

-

method SampleGroupInfo #
SampleGroupInfo(IEnumerable(Of SampleInfo))

[SampleInfo.ID](cref:P:SMRUCC.genomics.GCModeller.Workbench.ExperimentDesigner.SampleInfo.ID) -> [SampleGroup.sample_info](cref:P:SMRUCC.genomics.GCModeller.Workbench.ExperimentDesigner.SampleGroup.sample_info)

Parameters
NameTypeDescription
sampleInfoIEnumerable(Of SampleInfo)

-

method SampleGroupColor #
SampleGroupColor``1(IEnumerable(Of ``0), Color())

相同分组的sample都会被分配到相同的颜色,这个函数主要是为一些分类相关的绘图准备的,例如PCA之类的绘图

Type Parameters
NameDescription
T
Parameters
NameTypeDescription
sampleInfoIEnumerable(Of ``0)

-

colorsColor()

Color for SampleGroup.sample_info

method DataAnalysisDesign #
DataAnalysisDesign(IEnumerable(Of SampleInfo), IEnumerable(Of AnalysisDesigner))

将组别比对标记转换为样品比对标记

Remarks

例如,存在下面的样品信息

  • PCCa组

    • M-P-CCa1
    • M-P-CCa2
    • M-P-CCa3
  • PCCaT组

    • M-P-CCaT1
    • M-P-CCaT2
    • M-P-CCaT3

而实验数据分析设计则是:PCCa组 vs PCCaT组

故而需要使用这个函数将组别标记转换为实际计算分析所要使用到的样品标记

Parameters
NameTypeDescription
sampleInfoIEnumerable(Of SampleInfo)

-

analysisIEnumerable(Of AnalysisDesigner)

AnalysisDesigner.controls和AnalysisDesigner.treatment都是组别名称

Returns

经过这个函数转换之后,AnalysisDesigner.controls和AnalysisDesigner.treatment 都分别被转换为样品标记了

method EnsureGroupPaired #
EnsureGroupPaired``1(IEnumerable(Of ``0), String(), String)

Ensure all of the name label in allSamples were paired in groups.

Type Parameters
NameDescription
T
Parameters
NameTypeDescription
sampleInfoIEnumerable(Of ``0)

Probably this is the part of the sample name collection

allSamples$String()

Contains all sample names, sampleInfo maybe is the subset of it.

groupCreated$String

-

method SetNames #
SetNames``1(``0(), SampleInfo())
Parameters
NameTypeDescription
matrix``0()

属性的键名称应该都是SampleInfo.ID

field ExperimentDesigner #
ExperimentDesigner

ExperimentDesigner category for the TemplateAttribute

field ExperimentDesigner overload 2 #
ExperimentDesigner
method TakeGroup #
TakeGroup(IEnumerable(Of T), String)
method ToCategory #
ToCategory(IEnumerable(Of T))
method SampleGroupColor #
SampleGroupColor(IEnumerable(Of T), Color())
method EnsureGroupPaired #
EnsureGroupPaired(IEnumerable(Of T), String(), String)
method SetNames #
SetNames(DataSet(), SampleInfo())
method ImpactFactor #
ImpactFactor(T)
method ImpactSort #
ImpactSort(IEnumerable(Of NamedCollection(Of T)), Boolean)