method
  • 13 Dec 2022
  • 2 Minutes to read
  • Contributors
  • Dark
    Light
  • PDF

method

  • Dark
    Light
  • PDF

Article summary

method

usage: required - datatype: string


Every Tag.script requires a method attribute. There are three analysis methods:

  1. The "tag-comparison" method compares the size of the intersection for each categorical analysis_variable and the focus attribute to the size of the intersection with the background attribute. In addition, the "tag-comparison" method compares the distribution of each numeric analysis_variable between the focus attribute and the background attribute.
  2. The "numeric-comparison" method compares the distribution of the numeric_focus attribute between each categorical analysis_variable and the background attribute.
  3. The "summary" method performs a statistical summary of each numeric and categorical analysis_variable over the background attribute.

"method": "mmmm" //tag-comparison, numeric-comparison, or summary

method options

summary

Question: What are the simple counting and summary statistics for each categorical and numeric variable, given the background?

The intersection of each categorical variable object listed in analysis_variables will be intersected with the background. In addition, the distribution of each numeric variable object listed in analysis_variables will be summarized for only those entities defined by the background.

tag-comparison

Question: What variables have significantly different intersections and numeric distributions for the specified categorical variable?

The tag-comparison method requires a focus attribute. The focus attribute must be a categorical variable object. The intersection of each categorical variable object listed in analysis_variables will be calculated with the focus and compared to that variable's intersection with thebackground. Additionally, the distribution of each numeric variable object listed in analysis_variables will be compared between the focus and the background.

By default, Fisher's exact test is used for categorical variables, and Mann-Whitney for numeric variables. The numeric_tag_algorithm of the protocol script can be changed if a t-test is needed.

image.png

numeric-comparison

Question: What variables have significantly different distributions for the specified numeric variable?

The numeric-comparison method requires a numeric_focus attribute. The numeric_focus must be a numeric variable object. The Tag.cortex engine will create a distribution of the numeric_focus variable for the entities defined by the background and compare it to the distribution of the numeric_focus variable for each categorical variable object listed in analysis_variables

image.png

survival-comparison

The survival-comparison method requires a time variable as thenumeric_focus attribute and a censoring variable as the focus attribute.

download

Question: Can I download the results of a summary analysis as a CSV?

The download method will calculate the intersection of each categorical variable object listed in analysis_variables with the background. The distribution of each numeric variable object listed in analysis_variables will be summarized for only those entities as defined by the background Upon executing this analysis, the user is prompted to download the results as a CSV.

numeric-multivariate

Performs linear regression. The default numeric_multivariate_algorithm is ordinary least squares. This requires the assignment of test and train attributes.

projection

Used in Uniform Manifold Approximation and Projection or UMAP algorithm for fast dimension reduction clustering, PCA or t-SNE. The projection_algorithm attribute can be either umap, pca, or t-sne. Note that all algorithms require their own parameters.

external

To external protocol is used to execute an R or Python script and to return those results to the front end.

batch

Coming soon

batch-exploratory

Coming soon

paired-batch

Coming soon


Was this article helpful?

What's Next