Partek Flow Documentation

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
maxLevel2
minLevel2
excludeAdditional Assistance

GSA dialog

The first step of GSA is to choose which attributes to include in the test (Figure 1). All sample attributes including numeric and categorical attributes are displayed in the dialog, so use the check button to select between them. An experiment with two attributes Cell type (with groups A and B)and Time (time points 0, 5, 10) is used as an example in this section.
 

...

To compare Time point 5 vs. 0, select 5 for Time on the top, 0 for Time on the bottom, and click Add comparison (Figure 3).

 


Numbered figure captions
SubtitleTextSpecifying attribute levels for sub-group comparisons (contrast): Select 5 for Time on the top, 0 for Time on the bottom, click Add comparison to compare 5 vs 0
AnchorNameSubgroup Attribute comparison

To compare cell types at a certain time point, e.g. time point 5, select A and 5 on the top, and B and 5 on the bottom. Thereafter click Add comparison (Figure 4).

 


Numbered figure captions
SubtitleTextSpecifying attribute levels for subgroup comparisons (contrast): Select A and 5 on the top, B and 5 on the bottom, click Add comparison to compare A*5 vs B*5
AnchorNameSubgroup attribute comparrison contrast

Multiple comparisons can be computed in one GSA run; Figure 5 shows the above three comparisons are added in the computation.

 


Numbered figure captions
SubtitleTextThree comparisons included in GSA computation: A vs B; 5 vs 0; and A*5 vs B*5
AnchorNameComparison table

...

  • If invoked from a Partek E/M method output, the data node contains raw read counts and the default normalization is:
    • Normalize to total count (RPM)
    • Add 0.0001 (offset)
  • If invoked from a Cufflinks method output, the data node contains FPKM and the default normalization is:
    • Add 0.0001 (offset)

 


Numbered figure captions
SubtitleTextApplying default normalization if differential gene detection dialog is invoked from a quantification output data node (see text for details)
AnchorNameDefault normalization

If advanced normalization needs to be applied, perform the Normalize counts task on a quantification data node before doing differential expression detection (GSA or ANOVA).

GSA advanced options

Click on Configure to customize Advanced options (Figure 7).

 


Numbered figure captions
SubtitleTextConfiguring advanced GSA options
AnchorNameGSA advanced options

Image RemovedImage Added

Low-expression feature

Low -expression feature section allows you to specify criteria to exclude features that do not meet requirements for the calculation. If there is filter feature task performed in the upstream analysis, the default of this filter is set to "None", otherwise, the default is Lowest average coverage is set to 1.

  • Lowest average coverage: the computation will exclude a feature if its geometric mean across all samples is below than the specified value
  • Lowest maximum coverage: the computation will exclude a feature if its maximum across all samples is below the specified value
  • Minimum coverage: the computation will exclude a feature if its sum across all samples is below than the specified value
  • None: include all features in the computation

Multiple test correction

Multiple test correction can be performed on the p-values of each comparison, with FDR step-up being the default (1). If you check the Other options like Storey q-value (2), an extra column with q-values will be added to the report.  and Bonferroni are provided, select one method at a time; None means no multiple test correct will be performed.

FDR step-up:

Suppose there are n p-values (n is the number of features). The p-values are sorted by ascending order and m represents the rank of a p-value. The calculation compares p-value*(n/m) with the specified alpha level, and the cut-off p-value is the one that generates the last product that is less than the alpha level. The goal of step up method is to find:

Image Added

Define the step-up value as:

Image Added

Then an equivalent definition for K* is :

Image Added

So when

 Image Added

the step up value is 

Image Added

In order to find K* , start with Sn* and then go up the list until you find the first step up value that is less or equal to alpha.


Storey q-value:

q-value is the minimum "positive false discovery rate" (pFDR) that can occur when rejecting a statistic.

For an observed statistic T=t and nested set of rejection area {C},

Image Added

Bonferroni:

Suppose there are n p-values (n is the number of features), the expected number of Type I errors would be given by Image Added, thus the significance level of each individual test should be adjusted to Image Added. Alternatively the p-values should be adjusted as pB=p*n, pB is Bonferroni corrected p-value. If pB is greater than 1, it is set to 1

Report option

This section configures how to select the best model for a feature. There are two options for Model selection criterion: AICc (Akaike Information Criterion corrected) and AIC (Akaike Information Criterion). AICc is recommended for small sample size, while AIC is recommended for medium and large sample size What about large samples?(3). Note that when sample size grows from small to medium, AICc converges to AIC. Taking the AICc/AIC value into account, GSA considers the model with the lowest information criterion as the best choice.

In the results, the best model's Akaike weight is also generated. The model's weight is interpreted as the probability that the model would be picked as the best if the study were reproduced. The range of Akaike weight is between 0 to 1, where 1 means the best model is very superior to the other candidates from the model pool; if the best model's Akaike weight is close to 0.5 on the other hand, it means the best model is likely to be replaced by other candidates if the study were reproduced. One still uses the best shot model, however, the accuracy of the best shot is fairly low.

...

There are situations when a model estimation procedure does not outright fail, but still encounters some difficulties. In this case, it can even generate p-value and fold change for the comparisons, but those values are not reliable, and can be misleading. It is recommended to use only reliable estimation results, so the default option for Use only reliable estimation results is set Yes.

Model types configuration

Partek® Flow® provides five response distribution types for each design model in the pool, namely:

...

We recommend to use lognormal with shrinkage distribution (the default), and an experienced user may want to click on Custom to configure the model type and p-value type (Figure 8).

 


Numbered figure captions
SubtitleTextFive response distribution types for each design model
AnchorNameDesign model distribution types

...

The design pool can also be restricted by Min error degrees of freedom. The minimal When "Model types configuration" is set to Default , this is automated as follows: it is desirable to keep the error degrees of freedom is at or above six. Therefore, we automatically set to the largest k (k represents the error degree of freedom of the model) in the design model pool, with 0 <= k <=6 for which admissible models exist. Admissible model is one that can be estimated given the specified contrastsPlease make sure that I got the meaning right. In contrasts. In the above example, when we compare A vs B in Cell type, there are three possible design models. The error degree of freedom of model Cell type is largest and the error degree of freedom of model Cell type, Time, Cell type * Time is the smallest:

...

If the sample size is big, k >=6 in all three models, all the models will be evaluated and the best model will be selected for each feature. However, if the sample size is too small, none of the models will have k >=6, then only the model with maximal k will be used in the calculation. If the maximal k happens to be zero, we are forced to use Poisson response distribution only.

There are two types of p-value, F and Wald., Poisson, negative binomial and normal models can generate p-value using either Wald or F statistics. Lognormal models always employ the F statistics; the more replicates in the study, the less the difference between the two options. When there are no replicates, only Poisson can be used to generate p-value using Wald.

Note: Partek Flow keeps tracking the log status of the data, and no matter whether GSA is performed on logged data or not, the LSMeans, ratio and  fold change calculation is are always in linear scale. Ratio is the ratio of the two LSMeans from the two groups in the comparison (left is the numerator, right is the denominator); Fold change is converted from ratio: when ratio is greater than 1, fold change is same as ratio; when ratio is less than one, fold change is -1/ratio. In other words - fold change value is always >=1 or <=-1, there is no fold change value between -1 and 1. When the LSmean of numerator group is greater than that of denominator group, fold change is greater than 1; when LSmean of numerator group is less than denominator group, fold change is less than 1; when the group groups are the same, fold change is 1. Logratio is ratio is log2 transformed, which is equivalent to logfoldchange is some other software. 

GSA report

If there are multiple design models and multiple distribution types included in the calculation, the fraction of genes using each model and type will be displayed as pie charts in the task result (Figure 9).

 


Numbered figure captions
SubtitleTextPie charts of proportion of genes using each model and distribution in gene-specific analysis calculation
AnchorNameGene proportion

Feature list with p-value and fold change generated from the best model selected is displayed in a table with other statistical information (Figure 10). By default, the gene list table is sorted by the first p-value column. 


Numbered figure captions
SubtitleTextFeature list on the gene-specific analysis result. Clicking on the column header sorts the table. Panel on the left filters the table
AnchorNameFeature list

Image Modified

The following information is included in the table by default:

  • Feature ID information: if transcript level analysis was performed, and the annotation file has both transcript and gene level information, both gene ID and transcript ID are displayed. Otherwise, the table shows only the available information.
  • Total readscounts: total number of raw read counts across all the samples. Raw reads are retrieved from quantification data nodeobservations from the input data.
  • Each contrast outputs p-value, FDR step up p-value, ratio and fold change in linear scale, LSmean of each group comparison in linear scale

When you click on the Optional columns link on the top-left corner of the table, extra information will be displayed in the table when select:

  • Maximum count: maximum number of reads counts across all the observations from the input data.
  • Geometric mean: geometric mean value of the input counts across all observations.
  • Arithmetic mean: arithmetic mean value of input counts across all observations.

Click on View extra details report (Image Added) icon under View section to get more statistical information about the feature.  In a case that the task doesn't fail, but certain statistical information is not generated, e.g. p-value and/or fold change of a certain comparison are not generated for some or all feature, click on this icon to get more information by mousing over the read exclamation icon

Image Added

By clicking on Optional columns, you can retrieve more statistics result information, e.g. Average coverage which is the geometric mean of normalized reads in linear scale across all the samples; fold change lower/upper limits generated from 95% confidence interval;  feature annotation information if there are any more annotation information fields in the annotation model you specified for quantification, like genomic location, strand information etc.


On the right of each contrast header, there is volcano plot icon (  ). Select it to display the volcano plot on the chosen contrast (Figure 11).

 


Numbered figure captions
SubtitleTextVolcano plot in comparison A vs B. X-axis represents fold change (linear scale), Y-axis represents negative logged p-value (unadjusted), each dot is a feature. The horizontal line represents p-value of 0.05, two vertical lines represent fold change of -2 and 2. Lower left corner displays number of features passing the fold-change and p-value criteria
AnchorNameVolcano plot

Image RemovedImage Added

Feature list filter panel is on the left of the table (Figure 12). Click on the black triangle (  ) to collapse and expand the panel.

Select the check box of the field and specify the cutoff , and press by typing directly or using the slider. Press Enter to apply. After  After the filter has been applied, the total number of included features will be updated on the top of the panel (Result).

Note that for the LSMean, there are two columns corresponding to the two factors in the contrast.  The cutoffs can be specified for the left and right columns separately.  For example, in Figure 6, the LSMean (left) corresponds to A while the LSMean(right) is for the B.
 

Numbered figure captions
SubtitleTextFeature list filter panel
AnchorNameFeature list filter panel


The filtered result can be saved into a filtered data node by selecting the Generate list button at the lower-left corner of the table ( Image RemovedImage Added ). Selecting the Download button at the lower-right corner of the table downloads the table as a text file to the local computer.

If lognormal with shrinkage method was selected for GSA, a shrinkage plot is generated in the report (Figure 13). X-axis shows the log2 value of average coverage. The plot helps to determine the threshold of low expression featuresIf there is an increase before a monotone decrease trend on the left side of the plot, you need to set a higher threshold on the low expression filter. Detailed information on how to set the threshold can be found in the GSA white paper.

 


Numbered figure captions
SubtitleTextShrinkage plot generated on longnormal with shrinkage model. X-axis is represents average coverage in log2 scale; Y-axis represents log2 standard deviation of error term. Green dot represents standard deviation of residual error obtained from lognormal linear model on a gene; black line represents the trend how the errors change depending on the average gene expression; red dot represents adjusted (shrunk) standard deviation of error on a gene
AnchorNameShrinkage plot

References

  1. Benjamini, Y., Hochberg, Y. (1995). Controlling the false discovery rate: a practical and powerful approach to multiple testing, JRSS, B, 57, 289-300.
  2. Storey JD. (2003) The positive false discovery rate: A Bayesian interpretation and the q-value. Annals of Statistics, 31: 2013-2035.
  3. Auer, 2011, A two-stage Poisson model for testing RNA-Seq
  4. Burnham, Anderson, 2010, Model selection and multimodel inference
  5. Law C, Voom: precision weights unlock linear model analysis tools for RNA-seq read counts. Genome Biology, 2014 15:R29.
  6. http://cole-trapnell-lab.github.io/cufflinks/cuffdiff/index.html#cuffdiff-output-files
  7. Anders S, Huber W: Differential expression analysis for sequence count data. Genome Biology, 2010

...


...

Additional assistance



 

Rate Macro
allowUsersfalse

...