<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://info.gersteinlab.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tara</id>
	<title>GersteinInfo - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://info.gersteinlab.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tara"/>
	<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/Special:Contributions/Tara"/>
	<updated>2026-04-25T17:14:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.6</generator>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=880</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=880"/>
		<updated>2011-02-21T15:50:51Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Example Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Motivation and Problem Set Up===&lt;br /&gt;
&lt;br /&gt;
Cis regulatory elements as a means of regulating gene expression have&lt;br /&gt;
been extensively studied.  However, beyond such motifs, are their&lt;br /&gt;
inherent properties of the targets themselves that make them more or&lt;br /&gt;
less likely to be regulated by a given class of transcription factors?&lt;br /&gt;
As an example, do essential transcription factors preferentially&lt;br /&gt;
regulate essential targets?  Are there genome composition features&lt;br /&gt;
such as GC or codon bias that influence which targets are regulated by&lt;br /&gt;
which TFs?&lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
Here, we use three different datasets as shown.&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200 px| thumb | left| Data Input Set up]]&lt;br /&gt;
&lt;br /&gt;
These objects are named as follows in the R dataset:&lt;br /&gt;
&lt;br /&gt;
(1) T: Transcription factors and their associated properties&lt;br /&gt;
&lt;br /&gt;
(2) C: Connector Matrix matching transcription factors to their associated targets&lt;br /&gt;
&lt;br /&gt;
(3) G: Gene targets and their associated properties&lt;br /&gt;
&lt;br /&gt;
T and G are both post processed from:&lt;br /&gt;
&lt;br /&gt;
Y. Xia, E. A. Franzosa, and M. B. Gerstein. Integrated assessment of genomic correlates of protein &lt;br /&gt;
evolutionary rate. PLoS Comput Biol, 5(6):e1000413–e1000413, 2009.&lt;br /&gt;
&lt;br /&gt;
C is post processed from:&lt;br /&gt;
&lt;br /&gt;
C. T. Harbison, et al. Transcriptional &lt;br /&gt;
regulatory code of a eukaryotic genome. Nature, 431(7004):99–104, 2004.&lt;br /&gt;
&lt;br /&gt;
As in Harbison et al, p&amp;lt;.001 was used to indicate a TF-gene target.  We binarized the matrix such that any TF-gene pair with a pval&amp;lt;.001 had a 1 and anything greater than this had a 0.&lt;br /&gt;
&lt;br /&gt;
===Example Code===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#The below code snippet needs to be altered to contain the appropriate file path for both the dataset and CRIT package.&lt;br /&gt;
#Load Data&lt;br /&gt;
load(file=&amp;quot;TFExample.RData&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Load CRIT functions&lt;br /&gt;
source(file=&amp;quot;CRIT.R&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Generate label for feature of interest &lt;br /&gt;
#Specify x for column variable of interest&lt;br /&gt;
tLabel&amp;lt;-initializer(T[,x], type=&amp;quot;median&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Determine set of targets sensitive to this feature&lt;br /&gt;
#This step can be quite slow, be patient (on average about 2-3 minutes)&lt;br /&gt;
DC&amp;lt;-discriminator(C, tLabel, multCorrect=TRUE)&lt;br /&gt;
&lt;br /&gt;
#Generate new label based on sensitivity identified in previous step&lt;br /&gt;
gLabel&amp;lt;-labelSlicer(DC, .05)&lt;br /&gt;
&lt;br /&gt;
#Identify features that seem to discriminate between sens/insens targets&lt;br /&gt;
DG&amp;lt;-discriminator(t(G), gLabel, multCorrect=TRUE)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Cross Patterns have a natural X relationship Y representation making a network representation an ideal way to visualize results.&lt;br /&gt;
&lt;br /&gt;
Cross patterns can easily be formatted in .sif for loading into various network browsers including&lt;br /&gt;
&lt;br /&gt;
[http://tyna.gersteinlab.org/tyna/ tYNA] or [http://www.cytoscape.org/ Cytoscape].&lt;br /&gt;
&lt;br /&gt;
[[File:results.png]]&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=879</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=879"/>
		<updated>2011-02-21T15:49:37Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Example Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Motivation and Problem Set Up===&lt;br /&gt;
&lt;br /&gt;
Cis regulatory elements as a means of regulating gene expression have&lt;br /&gt;
been extensively studied.  However, beyond such motifs, are their&lt;br /&gt;
inherent properties of the targets themselves that make them more or&lt;br /&gt;
less likely to be regulated by a given class of transcription factors?&lt;br /&gt;
As an example, do essential transcription factors preferentially&lt;br /&gt;
regulate essential targets?  Are there genome composition features&lt;br /&gt;
such as GC or codon bias that influence which targets are regulated by&lt;br /&gt;
which TFs?&lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
Here, we use three different datasets as shown.&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200 px| thumb | left| Data Input Set up]]&lt;br /&gt;
&lt;br /&gt;
These objects are named as follows in the R dataset:&lt;br /&gt;
&lt;br /&gt;
(1) T: Transcription factors and their associated properties&lt;br /&gt;
&lt;br /&gt;
(2) C: Connector Matrix matching transcription factors to their associated targets&lt;br /&gt;
&lt;br /&gt;
(3) G: Gene targets and their associated properties&lt;br /&gt;
&lt;br /&gt;
T and G are both post processed from:&lt;br /&gt;
&lt;br /&gt;
Y. Xia, E. A. Franzosa, and M. B. Gerstein. Integrated assessment of genomic correlates of protein &lt;br /&gt;
evolutionary rate. PLoS Comput Biol, 5(6):e1000413–e1000413, 2009.&lt;br /&gt;
&lt;br /&gt;
C is post processed from:&lt;br /&gt;
&lt;br /&gt;
C. T. Harbison, et al. Transcriptional &lt;br /&gt;
regulatory code of a eukaryotic genome. Nature, 431(7004):99–104, 2004.&lt;br /&gt;
&lt;br /&gt;
As in Harbison et al, p&amp;lt;.001 was used to indicate a TF-gene target.  We binarized the matrix such that any TF-gene pair with a pval&amp;lt;.001 had a 1 and anything greater than this had a 0.&lt;br /&gt;
&lt;br /&gt;
===Example Code===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#The below code snippet needs to be altered to contain the appropriate file path for both the dataset and CRIT package.&lt;br /&gt;
#Load Data&lt;br /&gt;
load(file=&amp;quot;TFExample.RData&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Load CRIT functions&lt;br /&gt;
source(file=&amp;quot;CRIT.R&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Generate label for feature of interest &lt;br /&gt;
#Specify x for column variable of interest&lt;br /&gt;
tLabel&amp;lt;-initializer(T[,x], type=&amp;quot;median&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Determine set of targets sensitive to this feature&lt;br /&gt;
#This step can be quite slow, be patient&lt;br /&gt;
DC&amp;lt;-discriminator(C, tLabel, multCorrect=TRUE)&lt;br /&gt;
&lt;br /&gt;
#Generate new label based on sensitivity identified in previous step&lt;br /&gt;
gLabel&amp;lt;-labelSlicer(DC, .05)&lt;br /&gt;
&lt;br /&gt;
#Identify features that seem to discriminate between sens/insens targets&lt;br /&gt;
DG&amp;lt;-discriminator(t(G), gLabel, multCorrect=TRUE)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Cross Patterns have a natural X relationship Y representation making a network representation an ideal way to visualize results.&lt;br /&gt;
&lt;br /&gt;
Cross patterns can easily be formatted in .sif for loading into various network browsers including&lt;br /&gt;
&lt;br /&gt;
[http://tyna.gersteinlab.org/tyna/ tYNA] or [http://www.cytoscape.org/ Cytoscape].&lt;br /&gt;
&lt;br /&gt;
[[File:results.png]]&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=878</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=878"/>
		<updated>2011-02-21T15:21:26Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Example Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Motivation and Problem Set Up===&lt;br /&gt;
&lt;br /&gt;
Cis regulatory elements as a means of regulating gene expression have&lt;br /&gt;
been extensively studied.  However, beyond such motifs, are their&lt;br /&gt;
inherent properties of the targets themselves that make them more or&lt;br /&gt;
less likely to be regulated by a given class of transcription factors?&lt;br /&gt;
As an example, do essential transcription factors preferentially&lt;br /&gt;
regulate essential targets?  Are there genome composition features&lt;br /&gt;
such as GC or codon bias that influence which targets are regulated by&lt;br /&gt;
which TFs?&lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
Here, we use three different datasets as shown.&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200 px| thumb | left| Data Input Set up]]&lt;br /&gt;
&lt;br /&gt;
These objects are named as follows in the R dataset:&lt;br /&gt;
&lt;br /&gt;
(1) T: Transcription factors and their associated properties&lt;br /&gt;
&lt;br /&gt;
(2) C: Connector Matrix matching transcription factors to their associated targets&lt;br /&gt;
&lt;br /&gt;
(3) G: Gene targets and their associated properties&lt;br /&gt;
&lt;br /&gt;
T and G are both post processed from:&lt;br /&gt;
&lt;br /&gt;
Y. Xia, E. A. Franzosa, and M. B. Gerstein. Integrated assessment of genomic correlates of protein &lt;br /&gt;
evolutionary rate. PLoS Comput Biol, 5(6):e1000413–e1000413, 2009.&lt;br /&gt;
&lt;br /&gt;
C is post processed from:&lt;br /&gt;
&lt;br /&gt;
C. T. Harbison, et al. Transcriptional &lt;br /&gt;
regulatory code of a eukaryotic genome. Nature, 431(7004):99–104, 2004.&lt;br /&gt;
&lt;br /&gt;
As in Harbison et al, p&amp;lt;.001 was used to indicate a TF-gene target.  We binarized the matrix such that any TF-gene pair with a pval&amp;lt;.001 had a 1 and anything greater than this had a 0.&lt;br /&gt;
&lt;br /&gt;
===Example Code===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#The below code snippet needs to be altered to contain the appropriate file path for both the dataset and CRIT package.&lt;br /&gt;
#Load Data&lt;br /&gt;
load(file=&amp;quot;TFExample.RData&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Load CRIT functions&lt;br /&gt;
source(file=&amp;quot;CRIT.R&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Generate label for feature of interest &lt;br /&gt;
#Specify x for column variable of interest&lt;br /&gt;
tLabel&amp;lt;-initializer(T[,x], type=&amp;quot;median&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Determine set of targets sensitive to this feature&lt;br /&gt;
DC&amp;lt;-discriminator(C, tLabel, multCorrect=TRUE)&lt;br /&gt;
&lt;br /&gt;
#Generate new label based on sensitivity identified in previous step&lt;br /&gt;
gLabel&amp;lt;-labelSlicer(DC, .05)&lt;br /&gt;
&lt;br /&gt;
#Identify features that seem to discriminate between sens/insens targets&lt;br /&gt;
DG&amp;lt;-discriminator(t(G), gLabel, multCorrect=TRUE)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Cross Patterns have a natural X relationship Y representation making a network representation an ideal way to visualize results.&lt;br /&gt;
&lt;br /&gt;
Cross patterns can easily be formatted in .sif for loading into various network browsers including&lt;br /&gt;
&lt;br /&gt;
[http://tyna.gersteinlab.org/tyna/ tYNA] or [http://www.cytoscape.org/ Cytoscape].&lt;br /&gt;
&lt;br /&gt;
[[File:results.png]]&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=877</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=877"/>
		<updated>2011-02-21T15:20:05Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Example Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Motivation and Problem Set Up===&lt;br /&gt;
&lt;br /&gt;
Cis regulatory elements as a means of regulating gene expression have&lt;br /&gt;
been extensively studied.  However, beyond such motifs, are their&lt;br /&gt;
inherent properties of the targets themselves that make them more or&lt;br /&gt;
less likely to be regulated by a given class of transcription factors?&lt;br /&gt;
As an example, do essential transcription factors preferentially&lt;br /&gt;
regulate essential targets?  Are there genome composition features&lt;br /&gt;
such as GC or codon bias that influence which targets are regulated by&lt;br /&gt;
which TFs?&lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
Here, we use three different datasets as shown.&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200 px| thumb | left| Data Input Set up]]&lt;br /&gt;
&lt;br /&gt;
These objects are named as follows in the R dataset:&lt;br /&gt;
&lt;br /&gt;
(1) T: Transcription factors and their associated properties&lt;br /&gt;
&lt;br /&gt;
(2) C: Connector Matrix matching transcription factors to their associated targets&lt;br /&gt;
&lt;br /&gt;
(3) G: Gene targets and their associated properties&lt;br /&gt;
&lt;br /&gt;
T and G are both post processed from:&lt;br /&gt;
&lt;br /&gt;
Y. Xia, E. A. Franzosa, and M. B. Gerstein. Integrated assessment of genomic correlates of protein &lt;br /&gt;
evolutionary rate. PLoS Comput Biol, 5(6):e1000413–e1000413, 2009.&lt;br /&gt;
&lt;br /&gt;
C is post processed from:&lt;br /&gt;
&lt;br /&gt;
C. T. Harbison, et al. Transcriptional &lt;br /&gt;
regulatory code of a eukaryotic genome. Nature, 431(7004):99–104, 2004.&lt;br /&gt;
&lt;br /&gt;
As in Harbison et al, p&amp;lt;.001 was used to indicate a TF-gene target.  We binarized the matrix such that any TF-gene pair with a pval&amp;lt;.001 had a 1 and anything greater than this had a 0.&lt;br /&gt;
&lt;br /&gt;
===Example Code===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#The below code snippet needs to be altered to contain the appropriate file path for both the dataset and CRIT package.&lt;br /&gt;
#Load Data&lt;br /&gt;
load(file=&amp;quot;TFExample.RData&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Load CRIT functions&lt;br /&gt;
source(file=&amp;quot;CRIT.R&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Generate label for feature of interest - set x for column variable&lt;br /&gt;
tLabel&amp;lt;-initializer(T[,x], type=&amp;quot;median&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Determine set of targets sensitive to this feature&lt;br /&gt;
DC&amp;lt;-discriminator(C, tLabel, multCorrect=TRUE)&lt;br /&gt;
&lt;br /&gt;
#Generate new label based on sensitivity identified in previous step&lt;br /&gt;
gLabel&amp;lt;-labelSlicer(DC, .05)&lt;br /&gt;
&lt;br /&gt;
#Identify features that seem to discriminate between sens/insens targets&lt;br /&gt;
DG&amp;lt;-discriminator(t(G), gLabel, multCorrect=TRUE)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Cross Patterns have a natural X relationship Y representation making a network representation an ideal way to visualize results.&lt;br /&gt;
&lt;br /&gt;
Cross patterns can easily be formatted in .sif for loading into various network browsers including&lt;br /&gt;
&lt;br /&gt;
[http://tyna.gersteinlab.org/tyna/ tYNA] or [http://www.cytoscape.org/ Cytoscape].&lt;br /&gt;
&lt;br /&gt;
[[File:results.png]]&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=876</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=876"/>
		<updated>2011-02-21T15:12:12Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Example Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Motivation and Problem Set Up===&lt;br /&gt;
&lt;br /&gt;
Cis regulatory elements as a means of regulating gene expression have&lt;br /&gt;
been extensively studied.  However, beyond such motifs, are their&lt;br /&gt;
inherent properties of the targets themselves that make them more or&lt;br /&gt;
less likely to be regulated by a given class of transcription factors?&lt;br /&gt;
As an example, do essential transcription factors preferentially&lt;br /&gt;
regulate essential targets?  Are there genome composition features&lt;br /&gt;
such as GC or codon bias that influence which targets are regulated by&lt;br /&gt;
which TFs?&lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
Here, we use three different datasets as shown.&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200 px| thumb | left| Data Input Set up]]&lt;br /&gt;
&lt;br /&gt;
These objects are named as follows in the R dataset:&lt;br /&gt;
&lt;br /&gt;
(1) T: Transcription factors and their associated properties&lt;br /&gt;
&lt;br /&gt;
(2) C: Connector Matrix matching transcription factors to their associated targets&lt;br /&gt;
&lt;br /&gt;
(3) G: Gene targets and their associated properties&lt;br /&gt;
&lt;br /&gt;
T and G are both post processed from:&lt;br /&gt;
&lt;br /&gt;
Y. Xia, E. A. Franzosa, and M. B. Gerstein. Integrated assessment of genomic correlates of protein &lt;br /&gt;
evolutionary rate. PLoS Comput Biol, 5(6):e1000413–e1000413, 2009.&lt;br /&gt;
&lt;br /&gt;
C is post processed from:&lt;br /&gt;
&lt;br /&gt;
C. T. Harbison, et al. Transcriptional &lt;br /&gt;
regulatory code of a eukaryotic genome. Nature, 431(7004):99–104, 2004.&lt;br /&gt;
&lt;br /&gt;
As in Harbison et al, p&amp;lt;.001 was used to indicate a TF-gene target.  We binarized the matrix such that any TF-gene pair with a pval&amp;lt;.001 had a 1 and anything greater than this had a 0.&lt;br /&gt;
&lt;br /&gt;
===Example Code===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#Load Data&lt;br /&gt;
data(TFExample.RData)&lt;br /&gt;
&lt;br /&gt;
#Load CRIT functions&lt;br /&gt;
library(CRIT.R)&lt;br /&gt;
&lt;br /&gt;
#Generate label for feature of interest - set x for column variable&lt;br /&gt;
tLabel&amp;lt;-initializer(T[,x], type=&amp;quot;median&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Determine set of targets sensitive to this feature&lt;br /&gt;
DC&amp;lt;-discriminator(C, tLabel, multCorrect=TRUE)&lt;br /&gt;
&lt;br /&gt;
#Generate new label based on sensitivity identified in previous step&lt;br /&gt;
gLabel&amp;lt;-labelSlicer(DC, .05)&lt;br /&gt;
&lt;br /&gt;
#Identify features that seem to discriminate between sens/insens targets&lt;br /&gt;
DG&amp;lt;-discriminator(t(G), gLabel, multCorrect=TRUE)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Cross Patterns have a natural X relationship Y representation making a network representation an ideal way to visualize results.&lt;br /&gt;
&lt;br /&gt;
Cross patterns can easily be formatted in .sif for loading into various network browsers including&lt;br /&gt;
&lt;br /&gt;
[http://tyna.gersteinlab.org/tyna/ tYNA] or [http://www.cytoscape.org/ Cytoscape].&lt;br /&gt;
&lt;br /&gt;
[[File:results.png]]&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=875</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=875"/>
		<updated>2011-02-21T15:10:09Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Motivation and Problem Set Up */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Motivation and Problem Set Up===&lt;br /&gt;
&lt;br /&gt;
Cis regulatory elements as a means of regulating gene expression have&lt;br /&gt;
been extensively studied.  However, beyond such motifs, are their&lt;br /&gt;
inherent properties of the targets themselves that make them more or&lt;br /&gt;
less likely to be regulated by a given class of transcription factors?&lt;br /&gt;
As an example, do essential transcription factors preferentially&lt;br /&gt;
regulate essential targets?  Are there genome composition features&lt;br /&gt;
such as GC or codon bias that influence which targets are regulated by&lt;br /&gt;
which TFs?&lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
Here, we use three different datasets as shown.&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200 px| thumb | left| Data Input Set up]]&lt;br /&gt;
&lt;br /&gt;
These objects are named as follows in the R dataset:&lt;br /&gt;
&lt;br /&gt;
(1) T: Transcription factors and their associated properties&lt;br /&gt;
&lt;br /&gt;
(2) C: Connector Matrix matching transcription factors to their associated targets&lt;br /&gt;
&lt;br /&gt;
(3) G: Gene targets and their associated properties&lt;br /&gt;
&lt;br /&gt;
T and G are both post processed from:&lt;br /&gt;
&lt;br /&gt;
Y. Xia, E. A. Franzosa, and M. B. Gerstein. Integrated assessment of genomic correlates of protein &lt;br /&gt;
evolutionary rate. PLoS Comput Biol, 5(6):e1000413–e1000413, 2009.&lt;br /&gt;
&lt;br /&gt;
C is post processed from:&lt;br /&gt;
&lt;br /&gt;
C. T. Harbison, et al. Transcriptional &lt;br /&gt;
regulatory code of a eukaryotic genome. Nature, 431(7004):99–104, 2004.&lt;br /&gt;
&lt;br /&gt;
As in Harbison et al, p&amp;lt;.001 was used to indicate a TF-gene target.  We binarized the matrix such that any TF-gene pair with a pval&amp;lt;.001 had a 1 and anything greater than this had a 0.&lt;br /&gt;
&lt;br /&gt;
===Example Code===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#Load Data&lt;br /&gt;
load(file=&amp;quot;TFExample.RData&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Load CRIT functions&lt;br /&gt;
source(file=&amp;quot;CRIT.R&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Generate label for feature of interest - set x for column variable&lt;br /&gt;
tLabel&amp;lt;-initializer(T[,x], type=&amp;quot;median&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Determine set of targets sensitive to this feature&lt;br /&gt;
DC&amp;lt;-discriminator(C, tLabel, multCorrect=TRUE)&lt;br /&gt;
&lt;br /&gt;
#Generate new label based on sensitivity identified in previous step&lt;br /&gt;
gLabel&amp;lt;-labelSlicer(DC, .05)&lt;br /&gt;
&lt;br /&gt;
#Identify features that seem to discriminate between sens/insens targets&lt;br /&gt;
DG&amp;lt;-discriminator(t(G), gLabel, multCorrect=TRUE)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Cross Patterns have a natural X relationship Y representation making a network representation an ideal way to visualize results.&lt;br /&gt;
&lt;br /&gt;
Cross patterns can easily be formatted in .sif for loading into various network browsers including&lt;br /&gt;
&lt;br /&gt;
[http://tyna.gersteinlab.org/tyna/ tYNA] or [http://www.cytoscape.org/ Cytoscape].&lt;br /&gt;
&lt;br /&gt;
[[File:results.png]]&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/code&amp;diff=874</id>
		<title>CRIT/code</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/code&amp;diff=874"/>
		<updated>2011-02-21T13:09:40Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* License information */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/crit/ &#039;&#039;&#039;CRIT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&lt;br /&gt;
=== Required Software - External ===&lt;br /&gt;
&lt;br /&gt;
# This is an R package.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Download ===&lt;br /&gt;
&lt;br /&gt;
==== Source code ====&lt;br /&gt;
A TAR ball that contains the source code for these two components can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/crit/R/ CRIT_1.0.tar.gz]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
Copyright (c) 2011 Tara Gianoulis&lt;br /&gt;
&lt;br /&gt;
Permission is hereby granted, free of charge, to any person obtaining a copy&lt;br /&gt;
of this software and associated documentation files (the &amp;quot;Software&amp;quot;), to deal&lt;br /&gt;
in the Software without restriction, including without limitation the rights&lt;br /&gt;
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell&lt;br /&gt;
copies of the Software, and to permit persons to whom the Software is&lt;br /&gt;
furnished to do so, subject to the following conditions:&lt;br /&gt;
&lt;br /&gt;
The above copyright notice and this permission notice shall be included in&lt;br /&gt;
all copies or substantial portions of the Software.&lt;br /&gt;
&lt;br /&gt;
THE SOFTWARE IS PROVIDED &amp;quot;AS IS&amp;quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR&lt;br /&gt;
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,&lt;br /&gt;
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE&lt;br /&gt;
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER&lt;br /&gt;
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,&lt;br /&gt;
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN&lt;br /&gt;
THE SOFTWARE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/code&amp;diff=873</id>
		<title>CRIT/code</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/code&amp;diff=873"/>
		<updated>2011-02-21T13:09:25Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Source code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/crit/ &#039;&#039;&#039;CRIT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&lt;br /&gt;
=== Required Software - External ===&lt;br /&gt;
&lt;br /&gt;
# This is an R package.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Download ===&lt;br /&gt;
&lt;br /&gt;
==== Source code ====&lt;br /&gt;
A TAR ball that contains the source code for these two components can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/crit/R/ CRIT_1.0.tar.gz]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
Copyright (c) 2011 Tara Gianoulis&lt;br /&gt;
&lt;br /&gt;
Permission is hereby granted, free of charge, to any person obtaining a copy&lt;br /&gt;
of this software and associated documentation files (the &amp;quot;Software&amp;quot;), to deal&lt;br /&gt;
in the Software without restriction, including without limitation the rights&lt;br /&gt;
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell&lt;br /&gt;
copies of the Software, and to permit persons to whom the Software is&lt;br /&gt;
furnished to do so, subject to the following conditions:&lt;br /&gt;
&lt;br /&gt;
The above copyright notice and this permission notice shall be included in&lt;br /&gt;
all copies or substantial portions of the Software.&lt;br /&gt;
&lt;br /&gt;
THE SOFTWARE IS PROVIDED &amp;quot;AS IS&amp;quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR&lt;br /&gt;
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,&lt;br /&gt;
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE&lt;br /&gt;
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER&lt;br /&gt;
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,&lt;br /&gt;
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN&lt;br /&gt;
THE SOFTWARE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/code&amp;diff=826</id>
		<title>CRIT/code</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/code&amp;diff=826"/>
		<updated>2011-01-30T22:44:59Z</updated>

		<summary type="html">&lt;p&gt;Tara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/crit/ &#039;&#039;&#039;CRIT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&lt;br /&gt;
=== Required Software - External ===&lt;br /&gt;
&lt;br /&gt;
# This is an R package.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Download ===&lt;br /&gt;
&lt;br /&gt;
==== Source code ====&lt;br /&gt;
A TAR ball that contains the source code for these two components can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/crit/R/ CRIT_1.0.tar.gz]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE CRIT IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/code&amp;diff=825</id>
		<title>CRIT/code</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/code&amp;diff=825"/>
		<updated>2011-01-30T21:39:26Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Source code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/crit/ &#039;&#039;&#039;CRIT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&lt;br /&gt;
=== Required Software - External ===&lt;br /&gt;
&lt;br /&gt;
# This is an R package.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Download ===&lt;br /&gt;
&lt;br /&gt;
==== Source code ====&lt;br /&gt;
A TAR ball that contains the source code for these two components can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/crit CRIT_1.0.tar.gz]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE CRIT IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=824</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=824"/>
		<updated>2011-01-30T21:21:15Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Output */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Motivation and Problem Set Up===&lt;br /&gt;
&lt;br /&gt;
Cis regulatory elements as a means of regulating gene expression have&lt;br /&gt;
been extensively studied.  However, beyond such motifs, are there&lt;br /&gt;
inherent properties of the targets themselves that make them more or&lt;br /&gt;
less likely to be regulated by a given class of transcription factors?&lt;br /&gt;
As an example, do essential transcription factors preferentially&lt;br /&gt;
regulate essential targets?  Are there genome composition features&lt;br /&gt;
such as GC or codon bias that influence which targets are regulated by&lt;br /&gt;
which TFs? &lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
Here, we use three different datasets as shown.&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200 px| thumb | left| Data Input Set up]]&lt;br /&gt;
&lt;br /&gt;
These objects are named as follows in the R dataset:&lt;br /&gt;
&lt;br /&gt;
(1) T: Transcription factors and their associated properties&lt;br /&gt;
&lt;br /&gt;
(2) C: Connector Matrix matching transcription factors to their associated targets&lt;br /&gt;
&lt;br /&gt;
(3) G: Gene targets and their associated properties&lt;br /&gt;
&lt;br /&gt;
T and G are both post processed from:&lt;br /&gt;
&lt;br /&gt;
Y. Xia, E. A. Franzosa, and M. B. Gerstein. Integrated assessment of genomic correlates of protein &lt;br /&gt;
evolutionary rate. PLoS Comput Biol, 5(6):e1000413–e1000413, 2009.&lt;br /&gt;
&lt;br /&gt;
C is post processed from:&lt;br /&gt;
&lt;br /&gt;
C. T. Harbison, et al. Transcriptional &lt;br /&gt;
regulatory code of a eukaryotic genome. Nature, 431(7004):99–104, 2004.&lt;br /&gt;
&lt;br /&gt;
As in Harbison et al, p&amp;lt;.001 was used to indicate a TF-gene target.  We binarized the matrix such that any TF-gene pair with a pval&amp;lt;.001 had a 1 and anything greater than this had a 0.&lt;br /&gt;
&lt;br /&gt;
===Example Code===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#Load Data&lt;br /&gt;
load(file=&amp;quot;TFExample.RData&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Load CRIT functions&lt;br /&gt;
source(file=&amp;quot;CRIT.R&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Generate label for feature of interest - set x for column variable&lt;br /&gt;
tLabel&amp;lt;-initializer(T[,x], type=&amp;quot;median&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Determine set of targets sensitive to this feature&lt;br /&gt;
DC&amp;lt;-discriminator(C, tLabel, multCorrect=TRUE)&lt;br /&gt;
&lt;br /&gt;
#Generate new label based on sensitivity identified in previous step&lt;br /&gt;
gLabel&amp;lt;-labelSlicer(DC, .05)&lt;br /&gt;
&lt;br /&gt;
#Identify features that seem to discriminate between sens/insens targets&lt;br /&gt;
DG&amp;lt;-discriminator(t(G), gLabel, multCorrect=TRUE)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Cross Patterns have a natural X relationship Y representation making a network representation an ideal way to visualize results.&lt;br /&gt;
&lt;br /&gt;
Cross patterns can easily be formatted in .sif for loading into various network browsers including&lt;br /&gt;
&lt;br /&gt;
[http://tyna.gersteinlab.org/tyna/ tYNA] or [http://www.cytoscape.org/ Cytoscape].&lt;br /&gt;
&lt;br /&gt;
[[File:results.png]]&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=File:Results.png&amp;diff=823</id>
		<title>File:Results.png</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=File:Results.png&amp;diff=823"/>
		<updated>2011-01-30T21:20:41Z</updated>

		<summary type="html">&lt;p&gt;Tara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=822</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=822"/>
		<updated>2011-01-30T21:17:00Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Output */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Motivation and Problem Set Up===&lt;br /&gt;
&lt;br /&gt;
Cis regulatory elements as a means of regulating gene expression have&lt;br /&gt;
been extensively studied.  However, beyond such motifs, are there&lt;br /&gt;
inherent properties of the targets themselves that make them more or&lt;br /&gt;
less likely to be regulated by a given class of transcription factors?&lt;br /&gt;
As an example, do essential transcription factors preferentially&lt;br /&gt;
regulate essential targets?  Are there genome composition features&lt;br /&gt;
such as GC or codon bias that influence which targets are regulated by&lt;br /&gt;
which TFs? &lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
Here, we use three different datasets as shown.&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200 px| thumb | left| Data Input Set up]]&lt;br /&gt;
&lt;br /&gt;
These objects are named as follows in the R dataset:&lt;br /&gt;
&lt;br /&gt;
(1) T: Transcription factors and their associated properties&lt;br /&gt;
&lt;br /&gt;
(2) C: Connector Matrix matching transcription factors to their associated targets&lt;br /&gt;
&lt;br /&gt;
(3) G: Gene targets and their associated properties&lt;br /&gt;
&lt;br /&gt;
T and G are both post processed from:&lt;br /&gt;
&lt;br /&gt;
Y. Xia, E. A. Franzosa, and M. B. Gerstein. Integrated assessment of genomic correlates of protein &lt;br /&gt;
evolutionary rate. PLoS Comput Biol, 5(6):e1000413–e1000413, 2009.&lt;br /&gt;
&lt;br /&gt;
C is post processed from:&lt;br /&gt;
&lt;br /&gt;
C. T. Harbison, et al. Transcriptional &lt;br /&gt;
regulatory code of a eukaryotic genome. Nature, 431(7004):99–104, 2004.&lt;br /&gt;
&lt;br /&gt;
As in Harbison et al, p&amp;lt;.001 was used to indicate a TF-gene target.  We binarized the matrix such that any TF-gene pair with a pval&amp;lt;.001 had a 1 and anything greater than this had a 0.&lt;br /&gt;
&lt;br /&gt;
===Example Code===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#Load Data&lt;br /&gt;
load(file=&amp;quot;TFExample.RData&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Load CRIT functions&lt;br /&gt;
source(file=&amp;quot;CRIT.R&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Generate label for feature of interest - set x for column variable&lt;br /&gt;
tLabel&amp;lt;-initializer(T[,x], type=&amp;quot;median&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Determine set of targets sensitive to this feature&lt;br /&gt;
DC&amp;lt;-discriminator(C, tLabel, multCorrect=TRUE)&lt;br /&gt;
&lt;br /&gt;
#Generate new label based on sensitivity identified in previous step&lt;br /&gt;
gLabel&amp;lt;-labelSlicer(DC, .05)&lt;br /&gt;
&lt;br /&gt;
#Identify features that seem to discriminate between sens/insens targets&lt;br /&gt;
DG&amp;lt;-discriminator(t(G), gLabel, multCorrect=TRUE)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Cross Patterns have a natural X relationship Y representation making a network representation an ideal way to visualize results.&lt;br /&gt;
&lt;br /&gt;
Cross patterns can easily be formatted in .sif for loading into various network browsers including&lt;br /&gt;
&lt;br /&gt;
[http://tyna.gersteinlab.org/tyna/ tYNA] or [http://www.cytoscape.org/ Cytoscape].&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=821</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=821"/>
		<updated>2011-01-30T21:16:41Z</updated>

		<summary type="html">&lt;p&gt;Tara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Motivation and Problem Set Up===&lt;br /&gt;
&lt;br /&gt;
Cis regulatory elements as a means of regulating gene expression have&lt;br /&gt;
been extensively studied.  However, beyond such motifs, are there&lt;br /&gt;
inherent properties of the targets themselves that make them more or&lt;br /&gt;
less likely to be regulated by a given class of transcription factors?&lt;br /&gt;
As an example, do essential transcription factors preferentially&lt;br /&gt;
regulate essential targets?  Are there genome composition features&lt;br /&gt;
such as GC or codon bias that influence which targets are regulated by&lt;br /&gt;
which TFs? &lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
Here, we use three different datasets as shown.&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200 px| thumb | left| Data Input Set up]]&lt;br /&gt;
&lt;br /&gt;
These objects are named as follows in the R dataset:&lt;br /&gt;
&lt;br /&gt;
(1) T: Transcription factors and their associated properties&lt;br /&gt;
&lt;br /&gt;
(2) C: Connector Matrix matching transcription factors to their associated targets&lt;br /&gt;
&lt;br /&gt;
(3) G: Gene targets and their associated properties&lt;br /&gt;
&lt;br /&gt;
T and G are both post processed from:&lt;br /&gt;
&lt;br /&gt;
Y. Xia, E. A. Franzosa, and M. B. Gerstein. Integrated assessment of genomic correlates of protein &lt;br /&gt;
evolutionary rate. PLoS Comput Biol, 5(6):e1000413–e1000413, 2009.&lt;br /&gt;
&lt;br /&gt;
C is post processed from:&lt;br /&gt;
&lt;br /&gt;
C. T. Harbison, et al. Transcriptional &lt;br /&gt;
regulatory code of a eukaryotic genome. Nature, 431(7004):99–104, 2004.&lt;br /&gt;
&lt;br /&gt;
As in Harbison et al, p&amp;lt;.001 was used to indicate a TF-gene target.  We binarized the matrix such that any TF-gene pair with a pval&amp;lt;.001 had a 1 and anything greater than this had a 0.&lt;br /&gt;
&lt;br /&gt;
===Example Code===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#Load Data&lt;br /&gt;
load(file=&amp;quot;TFExample.RData&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Load CRIT functions&lt;br /&gt;
source(file=&amp;quot;CRIT.R&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Generate label for feature of interest - set x for column variable&lt;br /&gt;
tLabel&amp;lt;-initializer(T[,x], type=&amp;quot;median&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Determine set of targets sensitive to this feature&lt;br /&gt;
DC&amp;lt;-discriminator(C, tLabel, multCorrect=TRUE)&lt;br /&gt;
&lt;br /&gt;
#Generate new label based on sensitivity identified in previous step&lt;br /&gt;
gLabel&amp;lt;-labelSlicer(DC, .05)&lt;br /&gt;
&lt;br /&gt;
#Identify features that seem to discriminate between sens/insens targets&lt;br /&gt;
DG&amp;lt;-discriminator(t(G), gLabel, multCorrect=TRUE)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
&lt;br /&gt;
Cross Patterns have a natural X relationship Y representation making a network representation and ideal way to visualize results.&lt;br /&gt;
&lt;br /&gt;
Cross patterns can easily be formatted in .sif for loading into various network browsers including&lt;br /&gt;
&lt;br /&gt;
[http://tyna.gersteinlab.org/tyna/ tYNA] or [http://www.cytoscape.org/ Cytoscape].&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=820</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=820"/>
		<updated>2011-01-30T21:12:38Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Example Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Motivation and Problem Set Up===&lt;br /&gt;
&lt;br /&gt;
Cis regulatory elements as a means of regulating gene expression have&lt;br /&gt;
been extensively studied.  However, beyond such motifs, are there&lt;br /&gt;
inherent properties of the targets themselves that make them more or&lt;br /&gt;
less likely to be regulated by a given class of transcription factors?&lt;br /&gt;
As an example, do essential transcription factors preferentially&lt;br /&gt;
regulate essential targets?  Are there genome composition features&lt;br /&gt;
such as GC or codon bias that influence which targets are regulated by&lt;br /&gt;
which TFs? &lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
Here, we use three different datasets as shown.&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200 px| thumb | left| Data Input Set up]]&lt;br /&gt;
&lt;br /&gt;
These objects are named as follows in the R dataset:&lt;br /&gt;
&lt;br /&gt;
(1) T: Transcription factors and their associated properties&lt;br /&gt;
&lt;br /&gt;
(2) C: Connector Matrix matching transcription factors to their associated targets&lt;br /&gt;
&lt;br /&gt;
(3) G: Gene targets and their associated properties&lt;br /&gt;
&lt;br /&gt;
T and G are both post processed from:&lt;br /&gt;
&lt;br /&gt;
Y. Xia, E. A. Franzosa, and M. B. Gerstein. Integrated assessment of genomic correlates of protein &lt;br /&gt;
evolutionary rate. PLoS Comput Biol, 5(6):e1000413–e1000413, 2009.&lt;br /&gt;
&lt;br /&gt;
C is post processed from:&lt;br /&gt;
&lt;br /&gt;
C. T. Harbison, et al. Transcriptional &lt;br /&gt;
regulatory code of a eukaryotic genome. Nature, 431(7004):99–104, 2004.&lt;br /&gt;
&lt;br /&gt;
As in Harbison et al, p&amp;lt;.001 was used to indicate a TF-gene target.  We binarized the matrix such that any TF-gene pair with a pval&amp;lt;.001 had a 1 and anything greater than this had a 0.&lt;br /&gt;
&lt;br /&gt;
===Example Code===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#Load Data&lt;br /&gt;
load(file=&amp;quot;TFExample.RData&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Load CRIT functions&lt;br /&gt;
source(file=&amp;quot;CRIT.R&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Generate label for feature of interest - set x for column variable&lt;br /&gt;
tLabel&amp;lt;-initializer(T[,x], type=&amp;quot;median&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Determine set of targets sensitive to this feature&lt;br /&gt;
DC&amp;lt;-discriminator(C, tLabel, multCorrect=TRUE)&lt;br /&gt;
&lt;br /&gt;
#Generate new label based on sensitivity identified in previous step&lt;br /&gt;
gLabel&amp;lt;-labelSlicer(DC, .05)&lt;br /&gt;
&lt;br /&gt;
#Identify features that seem to discriminate between sens/insens targets&lt;br /&gt;
DG&amp;lt;-discriminator(t(G), gLabel, multCorrect=TRUE)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=819</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=819"/>
		<updated>2011-01-30T21:12:16Z</updated>

		<summary type="html">&lt;p&gt;Tara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Motivation and Problem Set Up===&lt;br /&gt;
&lt;br /&gt;
Cis regulatory elements as a means of regulating gene expression have&lt;br /&gt;
been extensively studied.  However, beyond such motifs, are there&lt;br /&gt;
inherent properties of the targets themselves that make them more or&lt;br /&gt;
less likely to be regulated by a given class of transcription factors?&lt;br /&gt;
As an example, do essential transcription factors preferentially&lt;br /&gt;
regulate essential targets?  Are there genome composition features&lt;br /&gt;
such as GC or codon bias that influence which targets are regulated by&lt;br /&gt;
which TFs? &lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
Here, we use three different datasets as shown.&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200 px| thumb | left| Data Input Set up]]&lt;br /&gt;
&lt;br /&gt;
These objects are named as follows in the R dataset:&lt;br /&gt;
&lt;br /&gt;
(1) T: Transcription factors and their associated properties&lt;br /&gt;
&lt;br /&gt;
(2) C: Connector Matrix matching transcription factors to their associated targets&lt;br /&gt;
&lt;br /&gt;
(3) G: Gene targets and their associated properties&lt;br /&gt;
&lt;br /&gt;
T and G are both post processed from:&lt;br /&gt;
&lt;br /&gt;
Y. Xia, E. A. Franzosa, and M. B. Gerstein. Integrated assessment of genomic correlates of protein &lt;br /&gt;
evolutionary rate. PLoS Comput Biol, 5(6):e1000413–e1000413, 2009.&lt;br /&gt;
&lt;br /&gt;
C is post processed from:&lt;br /&gt;
&lt;br /&gt;
C. T. Harbison, et al. Transcriptional &lt;br /&gt;
regulatory code of a eukaryotic genome. Nature, 431(7004):99–104, 2004.&lt;br /&gt;
&lt;br /&gt;
As in Harbison et al, p&amp;lt;.001 was used to indicate a TF-gene target.  We binarized the matrix such that any TF-gene pair with a pval&amp;lt;.001 had a 1 and anything greater than this had a 0.&lt;br /&gt;
&lt;br /&gt;
===Example Code===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Example Code&lt;br /&gt;
&lt;br /&gt;
#Load Data&lt;br /&gt;
load(file=&amp;quot;TFExample.RData&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Load CRIT functions&lt;br /&gt;
source(file=&amp;quot;CRIT.R&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Generate label for feature of interest - set x for column variable&lt;br /&gt;
tLabel&amp;lt;-initializer(T[,x], type=&amp;quot;median&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
#Determine set of targets sensitive to this feature&lt;br /&gt;
DC&amp;lt;-discriminator(C, tLabel, multCorrect=TRUE)&lt;br /&gt;
&lt;br /&gt;
#Generate new label based on sensitivity identified in previous step&lt;br /&gt;
gLabel&amp;lt;-labelSlicer(DC, .05)&lt;br /&gt;
&lt;br /&gt;
#Identify features that seem to discriminate between sens/insens targets&lt;br /&gt;
DG&amp;lt;-discriminator(t(G), gLabel, multCorrect=TRUE)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=818</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=818"/>
		<updated>2011-01-29T17:30:52Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Input Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Motivation and Problem Set Up===&lt;br /&gt;
&lt;br /&gt;
Cis regulatory elements as a means of regulating gene expression have&lt;br /&gt;
been extensively studied.  However, beyond such motifs, are there&lt;br /&gt;
inherent properties of the targets themselves that make them more or&lt;br /&gt;
less likely to be regulated by a given class of transcription factors?&lt;br /&gt;
As an example, do essential transcription factors preferentially&lt;br /&gt;
regulate essential targets?  Are there genome composition features&lt;br /&gt;
such as GC or codon bias that influence which targets are regulated by&lt;br /&gt;
which TFs? &lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
Here, we use three different datasets as shown.&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200 px| thumb | left| Data Input Set up]]&lt;br /&gt;
&lt;br /&gt;
These objects are named as follows in the R dataset:&lt;br /&gt;
&lt;br /&gt;
(1) T: Transcription factors and their associated properties&lt;br /&gt;
&lt;br /&gt;
(2) C: Connector Matrix matching transcription factors to their associated targets&lt;br /&gt;
&lt;br /&gt;
(3) G: Gene targets and their associated properties&lt;br /&gt;
&lt;br /&gt;
T and G are both post processed from:&lt;br /&gt;
&lt;br /&gt;
Y. Xia, E. A. Franzosa, and M. B. Gerstein. Integrated assessment of genomic correlates of protein &lt;br /&gt;
evolutionary rate. PLoS Comput Biol, 5(6):e1000413–e1000413, 2009.&lt;br /&gt;
&lt;br /&gt;
C is post processed from:&lt;br /&gt;
&lt;br /&gt;
C. T. Harbison, et al. Transcriptional &lt;br /&gt;
regulatory code of a eukaryotic genome. Nature, 431(7004):99–104, 2004.&lt;br /&gt;
&lt;br /&gt;
As in Harbison et al, p&amp;lt;.001 was used to indicate a TF-gene target.  We binarized the matrix such that any TF-gene pair with a pval&amp;lt;.001 had a 1 and anything greater than this had a 0.&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=817</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=817"/>
		<updated>2011-01-29T16:59:18Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Input Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Motivation and Problem Set Up===&lt;br /&gt;
&lt;br /&gt;
Cis regulatory elements as a means of regulating gene expression have&lt;br /&gt;
been extensively studied.  However, beyond such motifs, are there&lt;br /&gt;
inherent properties of the targets themselves that make them more or&lt;br /&gt;
less likely to be regulated by a given class of transcription factors?&lt;br /&gt;
As an example, do essential transcription factors preferentially&lt;br /&gt;
regulate essential targets?  Are there genome composition features&lt;br /&gt;
such as GC or codon bias that influence which targets are regulated by&lt;br /&gt;
which TFs? &lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
Here, we use three different datasets as shown.&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200 px| thumb | left| Data Input Set up]]&lt;br /&gt;
&lt;br /&gt;
These objects are named as follows in the R dataset:&lt;br /&gt;
&lt;br /&gt;
(1) T: Transcription factors and their associated properties&lt;br /&gt;
&lt;br /&gt;
(2) C: Connector Matrix matching transcription factors to their associated targets&lt;br /&gt;
&lt;br /&gt;
(3) G: Gene targets and their associated properties&lt;br /&gt;
&lt;br /&gt;
T and G are both post processed from:&lt;br /&gt;
&lt;br /&gt;
Y. Xia, E. A. Franzosa, and M. B. Gerstein. Integrated assessment of genomic correlates of protein &lt;br /&gt;
evolutionary rate. PLoS Comput Biol, 5(6):e1000413–e1000413, 2009.&lt;br /&gt;
&lt;br /&gt;
C is post processed from:&lt;br /&gt;
&lt;br /&gt;
C. T. Harbison, et al. Transcriptional &lt;br /&gt;
regulatory code of a eukaryotic genome. Nature, 431(7004):99–104, 2004.&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=816</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=816"/>
		<updated>2011-01-29T16:58:38Z</updated>

		<summary type="html">&lt;p&gt;Tara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Motivation and Problem Set Up===&lt;br /&gt;
&lt;br /&gt;
Cis regulatory elements as a means of regulating gene expression have&lt;br /&gt;
been extensively studied.  However, beyond such motifs, are there&lt;br /&gt;
inherent properties of the targets themselves that make them more or&lt;br /&gt;
less likely to be regulated by a given class of transcription factors?&lt;br /&gt;
As an example, do essential transcription factors preferentially&lt;br /&gt;
regulate essential targets?  Are there genome composition features&lt;br /&gt;
such as GC or codon bias that influence which targets are regulated by&lt;br /&gt;
which TFs? &lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
Here, we use three different datasets as shown.&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|Data Input Set up]]&lt;br /&gt;
&lt;br /&gt;
These objects are named as follows in the R dataset:&lt;br /&gt;
&lt;br /&gt;
(1) T: Transcription factors and their associated properties&lt;br /&gt;
&lt;br /&gt;
(2) C: Connector Matrix matching transcription factors to their associated targets&lt;br /&gt;
&lt;br /&gt;
(3) G: Gene targets and their associated properties&lt;br /&gt;
&lt;br /&gt;
T and G are both post processed from:&lt;br /&gt;
&lt;br /&gt;
Y. Xia, E. A. Franzosa, and M. B. Gerstein. Integrated assessment of genomic correlates of protein &lt;br /&gt;
evolutionary rate. PLoS Comput Biol, 5(6):e1000413–e1000413, 2009.&lt;br /&gt;
&lt;br /&gt;
C is post processed from:&lt;br /&gt;
&lt;br /&gt;
C. T. Harbison, et al. Transcriptional &lt;br /&gt;
regulatory code of a eukaryotic genome. Nature, 431(7004):99–104, 2004.&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT&amp;diff=815</id>
		<title>CRIT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT&amp;diff=815"/>
		<updated>2011-01-29T16:38:40Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Cross Pattern Identification Technique (CRIT) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Cross Pattern Identification Technique (CRIT)=&lt;br /&gt;
&lt;br /&gt;
==Algorithm Overview==&lt;br /&gt;
&lt;br /&gt;
Label, Slice, Discriminate, Repeat.&lt;br /&gt;
&lt;br /&gt;
[[File:alg.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Core Functions and Their Parameters==&lt;br /&gt;
&lt;br /&gt;
===Initializer===&lt;br /&gt;
Initializer: Only run the first time to obtain some set of labels for the rows of A.  In all remaining steps, the discriminator generates the new label for propogation.  Alternatively, this step can be skipped and a label can be supplied directly to the labeler function.&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Column of A, type of partitioning&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every ROW of Column of A&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
initializer&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
#Create empty vector with the same number of rows of A&lt;br /&gt;
			 label&amp;lt;-matrix(0, length(A))&lt;br /&gt;
#Get value to threshold off of&lt;br /&gt;
			 t&amp;lt;-getThreshold(A, type=type)&lt;br /&gt;
#Create label&lt;br /&gt;
			 label&amp;lt;-labelSlicer(A ,t) 			 &lt;br /&gt;
			 return (label)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Labeler===&lt;br /&gt;
In implementation both labeler and slicer (labelSlicer) are integrated as the label is a simple column vector.  We show the breakdown to make the connection between the algorithm design and implementation more transparent.&lt;br /&gt;
&lt;br /&gt;
Labeler: Transfers labels on columns of previous datasets (A) to rows of new dataset (B)&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), vector assigning a label to every ROW of A&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
===Slicer===&lt;br /&gt;
Slicer: Partition rows of N into &amp;quot;slices&amp;quot; based on labels from A&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
Output: Set of slices where slice is defined as a set of rows of B all containing the same label (in practice this is just the grouping variable as opposed to actual data slices)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
labelSlicer&amp;lt;-function(values, t){&lt;br /&gt;
	#Set those strictly greater than threshold to 1&lt;br /&gt;
			 index&amp;lt;-which(values&amp;gt;=t)&lt;br /&gt;
			 label(index)&amp;lt;-1&lt;br /&gt;
			 return (label)		      &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Discriminator===&lt;br /&gt;
Discriminator: Evaluates the discriminatory power of labels generated from B in the context of C. Set of slices where slice is defined as a set of rows of B all containing the same label.  A random label would show no difference in the slices. (In practice this is implemented as an index instead of the literal data slice).&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), label&lt;br /&gt;
&lt;br /&gt;
Optional Arguments: set to TRUE to compute the FDR&lt;br /&gt;
&lt;br /&gt;
Output: Value of test for every column of B&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#In practice this is implemented as a index&lt;br /&gt;
#Additional discriminator functions that use KS test, hypergeometric&lt;br /&gt;
#distribution, etc are possible&lt;br /&gt;
discriminator&amp;lt;-function(mat=B, label=l, multCorrect=FALSE){&lt;br /&gt;
&lt;br /&gt;
#Create empty list&lt;br /&gt;
				ttest_struct&amp;lt;-list();&lt;br /&gt;
&lt;br /&gt;
#Compute value of test for each row&lt;br /&gt;
				for(i in 1:nrow(X)){&lt;br /&gt;
                		      temp&amp;lt;-t.test(as.numeric(B[i,])~label)&lt;br /&gt;
                		      ttest_struct[[i]]=temp;&lt;br /&gt;
        			}&lt;br /&gt;
&lt;br /&gt;
#Extract pvalue from structure&lt;br /&gt;
        			all_pval&amp;lt;-getPvalfromStruct(ttest_struct);&lt;br /&gt;
&lt;br /&gt;
#Test if we want to compute FDR&lt;br /&gt;
				if (multCorrect) { all_pval&amp;lt;-p.adjust(all_pval, method=&amp;quot;fdr&amp;quot;) }&lt;br /&gt;
&lt;br /&gt;
        			return  (all_pval)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==AUXILLIARY FUNCTIONS==&lt;br /&gt;
&lt;br /&gt;
===Checking against Threshold===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns a value to split on for the base case&lt;br /&gt;
getThreshold&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
			  type &amp;lt;- match.arg(type)&lt;br /&gt;
			  threshold &amp;lt;- switch(type,&lt;br /&gt;
				mean = mean(A),&lt;br /&gt;
         			median = median(A)  &lt;br /&gt;
			)&lt;br /&gt;
				return (threshold)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return t-test Object===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns only the t-test from the ttest object&lt;br /&gt;
getTfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,1));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return p Value Object===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns only the pvalues from the ttest object&lt;br /&gt;
getPvalfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,3));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT&amp;diff=814</id>
		<title>CRIT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT&amp;diff=814"/>
		<updated>2011-01-29T16:38:13Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Cross Pattern Identification Technique (CRIT) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Cross Pattern Identification Technique (CRIT)=&lt;br /&gt;
&lt;br /&gt;
Label, Slice, Discriminate, Repeat.&lt;br /&gt;
&lt;br /&gt;
[[File:alg.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Core Functions and Their Parameters==&lt;br /&gt;
&lt;br /&gt;
===Initializer===&lt;br /&gt;
Initializer: Only run the first time to obtain some set of labels for the rows of A.  In all remaining steps, the discriminator generates the new label for propogation.  Alternatively, this step can be skipped and a label can be supplied directly to the labeler function.&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Column of A, type of partitioning&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every ROW of Column of A&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
initializer&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
#Create empty vector with the same number of rows of A&lt;br /&gt;
			 label&amp;lt;-matrix(0, length(A))&lt;br /&gt;
#Get value to threshold off of&lt;br /&gt;
			 t&amp;lt;-getThreshold(A, type=type)&lt;br /&gt;
#Create label&lt;br /&gt;
			 label&amp;lt;-labelSlicer(A ,t) 			 &lt;br /&gt;
			 return (label)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Labeler===&lt;br /&gt;
In implementation both labeler and slicer (labelSlicer) are integrated as the label is a simple column vector.  We show the breakdown to make the connection between the algorithm design and implementation more transparent.&lt;br /&gt;
&lt;br /&gt;
Labeler: Transfers labels on columns of previous datasets (A) to rows of new dataset (B)&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), vector assigning a label to every ROW of A&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
===Slicer===&lt;br /&gt;
Slicer: Partition rows of N into &amp;quot;slices&amp;quot; based on labels from A&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
Output: Set of slices where slice is defined as a set of rows of B all containing the same label (in practice this is just the grouping variable as opposed to actual data slices)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
labelSlicer&amp;lt;-function(values, t){&lt;br /&gt;
	#Set those strictly greater than threshold to 1&lt;br /&gt;
			 index&amp;lt;-which(values&amp;gt;=t)&lt;br /&gt;
			 label(index)&amp;lt;-1&lt;br /&gt;
			 return (label)		      &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Discriminator===&lt;br /&gt;
Discriminator: Evaluates the discriminatory power of labels generated from B in the context of C. Set of slices where slice is defined as a set of rows of B all containing the same label.  A random label would show no difference in the slices. (In practice this is implemented as an index instead of the literal data slice).&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), label&lt;br /&gt;
&lt;br /&gt;
Optional Arguments: set to TRUE to compute the FDR&lt;br /&gt;
&lt;br /&gt;
Output: Value of test for every column of B&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#In practice this is implemented as a index&lt;br /&gt;
#Additional discriminator functions that use KS test, hypergeometric&lt;br /&gt;
#distribution, etc are possible&lt;br /&gt;
discriminator&amp;lt;-function(mat=B, label=l, multCorrect=FALSE){&lt;br /&gt;
&lt;br /&gt;
#Create empty list&lt;br /&gt;
				ttest_struct&amp;lt;-list();&lt;br /&gt;
&lt;br /&gt;
#Compute value of test for each row&lt;br /&gt;
				for(i in 1:nrow(X)){&lt;br /&gt;
                		      temp&amp;lt;-t.test(as.numeric(B[i,])~label)&lt;br /&gt;
                		      ttest_struct[[i]]=temp;&lt;br /&gt;
        			}&lt;br /&gt;
&lt;br /&gt;
#Extract pvalue from structure&lt;br /&gt;
        			all_pval&amp;lt;-getPvalfromStruct(ttest_struct);&lt;br /&gt;
&lt;br /&gt;
#Test if we want to compute FDR&lt;br /&gt;
				if (multCorrect) { all_pval&amp;lt;-p.adjust(all_pval, method=&amp;quot;fdr&amp;quot;) }&lt;br /&gt;
&lt;br /&gt;
        			return  (all_pval)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==AUXILLIARY FUNCTIONS==&lt;br /&gt;
&lt;br /&gt;
===Checking against Threshold===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns a value to split on for the base case&lt;br /&gt;
getThreshold&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
			  type &amp;lt;- match.arg(type)&lt;br /&gt;
			  threshold &amp;lt;- switch(type,&lt;br /&gt;
				mean = mean(A),&lt;br /&gt;
         			median = median(A)  &lt;br /&gt;
			)&lt;br /&gt;
				return (threshold)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return t-test Object===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns only the t-test from the ttest object&lt;br /&gt;
getTfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,1));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return p Value Object===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns only the pvalues from the ttest object&lt;br /&gt;
getPvalfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,3));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT&amp;diff=813</id>
		<title>CRIT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT&amp;diff=813"/>
		<updated>2011-01-29T16:37:47Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Cross Pattern Identification Technique (CRIT) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Cross Pattern Identification Technique (CRIT)=&lt;br /&gt;
&lt;br /&gt;
Label, Slice, Discriminate, Repeat.&lt;br /&gt;
&lt;br /&gt;
[[File:alg.png|200px|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Core Functions and Their Parameters==&lt;br /&gt;
&lt;br /&gt;
===Initializer===&lt;br /&gt;
Initializer: Only run the first time to obtain some set of labels for the rows of A.  In all remaining steps, the discriminator generates the new label for propogation.  Alternatively, this step can be skipped and a label can be supplied directly to the labeler function.&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Column of A, type of partitioning&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every ROW of Column of A&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
initializer&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
#Create empty vector with the same number of rows of A&lt;br /&gt;
			 label&amp;lt;-matrix(0, length(A))&lt;br /&gt;
#Get value to threshold off of&lt;br /&gt;
			 t&amp;lt;-getThreshold(A, type=type)&lt;br /&gt;
#Create label&lt;br /&gt;
			 label&amp;lt;-labelSlicer(A ,t) 			 &lt;br /&gt;
			 return (label)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Labeler===&lt;br /&gt;
In implementation both labeler and slicer (labelSlicer) are integrated as the label is a simple column vector.  We show the breakdown to make the connection between the algorithm design and implementation more transparent.&lt;br /&gt;
&lt;br /&gt;
Labeler: Transfers labels on columns of previous datasets (A) to rows of new dataset (B)&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), vector assigning a label to every ROW of A&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
===Slicer===&lt;br /&gt;
Slicer: Partition rows of N into &amp;quot;slices&amp;quot; based on labels from A&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
Output: Set of slices where slice is defined as a set of rows of B all containing the same label (in practice this is just the grouping variable as opposed to actual data slices)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
labelSlicer&amp;lt;-function(values, t){&lt;br /&gt;
	#Set those strictly greater than threshold to 1&lt;br /&gt;
			 index&amp;lt;-which(values&amp;gt;=t)&lt;br /&gt;
			 label(index)&amp;lt;-1&lt;br /&gt;
			 return (label)		      &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Discriminator===&lt;br /&gt;
Discriminator: Evaluates the discriminatory power of labels generated from B in the context of C. Set of slices where slice is defined as a set of rows of B all containing the same label.  A random label would show no difference in the slices. (In practice this is implemented as an index instead of the literal data slice).&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), label&lt;br /&gt;
&lt;br /&gt;
Optional Arguments: set to TRUE to compute the FDR&lt;br /&gt;
&lt;br /&gt;
Output: Value of test for every column of B&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#In practice this is implemented as a index&lt;br /&gt;
#Additional discriminator functions that use KS test, hypergeometric&lt;br /&gt;
#distribution, etc are possible&lt;br /&gt;
discriminator&amp;lt;-function(mat=B, label=l, multCorrect=FALSE){&lt;br /&gt;
&lt;br /&gt;
#Create empty list&lt;br /&gt;
				ttest_struct&amp;lt;-list();&lt;br /&gt;
&lt;br /&gt;
#Compute value of test for each row&lt;br /&gt;
				for(i in 1:nrow(X)){&lt;br /&gt;
                		      temp&amp;lt;-t.test(as.numeric(B[i,])~label)&lt;br /&gt;
                		      ttest_struct[[i]]=temp;&lt;br /&gt;
        			}&lt;br /&gt;
&lt;br /&gt;
#Extract pvalue from structure&lt;br /&gt;
        			all_pval&amp;lt;-getPvalfromStruct(ttest_struct);&lt;br /&gt;
&lt;br /&gt;
#Test if we want to compute FDR&lt;br /&gt;
				if (multCorrect) { all_pval&amp;lt;-p.adjust(all_pval, method=&amp;quot;fdr&amp;quot;) }&lt;br /&gt;
&lt;br /&gt;
        			return  (all_pval)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==AUXILLIARY FUNCTIONS==&lt;br /&gt;
&lt;br /&gt;
===Checking against Threshold===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns a value to split on for the base case&lt;br /&gt;
getThreshold&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
			  type &amp;lt;- match.arg(type)&lt;br /&gt;
			  threshold &amp;lt;- switch(type,&lt;br /&gt;
				mean = mean(A),&lt;br /&gt;
         			median = median(A)  &lt;br /&gt;
			)&lt;br /&gt;
				return (threshold)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return t-test Object===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns only the t-test from the ttest object&lt;br /&gt;
getTfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,1));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return p Value Object===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns only the pvalues from the ttest object&lt;br /&gt;
getPvalfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,3));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=File:Alg.png&amp;diff=812</id>
		<title>File:Alg.png</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=File:Alg.png&amp;diff=812"/>
		<updated>2011-01-29T16:37:00Z</updated>

		<summary type="html">&lt;p&gt;Tara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=811</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=811"/>
		<updated>2011-01-29T14:43:24Z</updated>

		<summary type="html">&lt;p&gt;Tara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Motivation and Problem Set Up===&lt;br /&gt;
&lt;br /&gt;
Cis regulatory elements as a means of regulating gene expression have&lt;br /&gt;
been extensively studied.  However, beyond such motifs, are there&lt;br /&gt;
inherent properties of the targets themselves that make them more or&lt;br /&gt;
less likely to be regulated by a given class of transcription factors?&lt;br /&gt;
As an example, do essential transcription factors preferentially&lt;br /&gt;
regulate essential targets?  Are there genome composition features&lt;br /&gt;
such as GC or codon bias that influence which targets are regulated by&lt;br /&gt;
which TFs? &lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
Here, we use three different datasets as shown.&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200px|thumb|left|Data Input Set up]]&lt;br /&gt;
&lt;br /&gt;
These objects are named as follows in the R dataset:&lt;br /&gt;
&lt;br /&gt;
(1) T: Transcription factors and their associated properties&lt;br /&gt;
&lt;br /&gt;
(2) C: Connector Matrix matching transcription factors to their associated targets&lt;br /&gt;
&lt;br /&gt;
(3) G: Gene targets and their associated properties&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=810</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=810"/>
		<updated>2011-01-29T14:42:45Z</updated>

		<summary type="html">&lt;p&gt;Tara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Motivation and Problem Set up &lt;br /&gt;
&lt;br /&gt;
Cis regulatory elements as a means of regulating gene expression have&lt;br /&gt;
been extensively studied.  However, beyond such motifs, are there&lt;br /&gt;
inherent properties of the targets themselves that make them more or&lt;br /&gt;
less likely to be regulated by a given class of transcription factors?&lt;br /&gt;
As an example, do essential transcription factors preferentially&lt;br /&gt;
regulate essential targets?  Are there genome composition features&lt;br /&gt;
such as GC or codon bias that influence which targets are regulated by&lt;br /&gt;
which TFs? &lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
Here, we use three different datasets as shown.&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200px|thumb|left|Data Input Set up]]&lt;br /&gt;
&lt;br /&gt;
These objects are named as follows in the R dataset.&lt;br /&gt;
(1) T: Transcription factors and their associated properties&lt;br /&gt;
&lt;br /&gt;
(2) C: Connector Matrix matching transcription factors to their associated targets&lt;br /&gt;
&lt;br /&gt;
(3) G: Gene targets and their associated properties&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=809</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=809"/>
		<updated>2011-01-29T14:35:05Z</updated>

		<summary type="html">&lt;p&gt;Tara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200px|thumb|left|Data Input Set up]]&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=808</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=808"/>
		<updated>2011-01-29T14:34:37Z</updated>

		<summary type="html">&lt;p&gt;Tara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
&lt;br /&gt;
[[File:schema.png|200px|thumb|left|alt text]]&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=File:Schema.png&amp;diff=807</id>
		<title>File:Schema.png</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=File:Schema.png&amp;diff=807"/>
		<updated>2011-01-29T14:33:45Z</updated>

		<summary type="html">&lt;p&gt;Tara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=806</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=806"/>
		<updated>2011-01-28T21:10:15Z</updated>

		<summary type="html">&lt;p&gt;Tara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Transcription Factor Example==&lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/code&amp;diff=805</id>
		<title>CRIT/code</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/code&amp;diff=805"/>
		<updated>2011-01-28T20:48:42Z</updated>

		<summary type="html">&lt;p&gt;Tara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/crit/ &#039;&#039;&#039;CRIT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&lt;br /&gt;
=== Required Software - External ===&lt;br /&gt;
&lt;br /&gt;
# This is an R package.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Download ===&lt;br /&gt;
&lt;br /&gt;
==== Source code ====&lt;br /&gt;
A TAR ball that contains the source code for these two components can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/crit CRIT-0.1.tar.gz]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE CRIT IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT&amp;diff=803</id>
		<title>CRIT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT&amp;diff=803"/>
		<updated>2011-01-26T16:40:25Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* Discriminator */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Cross Pattern Identification Technique (CRIT)=&lt;br /&gt;
&lt;br /&gt;
Label, Slice, Discriminate, Repeat.&lt;br /&gt;
&lt;br /&gt;
==Core Functions and Their Parameters==&lt;br /&gt;
&lt;br /&gt;
===Initializer===&lt;br /&gt;
Initializer: Only run the first time to obtain some set of labels for the rows of A.  In all remaining steps, the discriminator generates the new label for propogation.  Alternatively, this step can be skipped and a label can be supplied directly to the labeler function.&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Column of A, type of partitioning&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every ROW of Column of A&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
initializer&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
#Create empty vector with the same number of rows of A&lt;br /&gt;
			 label&amp;lt;-matrix(0, length(A))&lt;br /&gt;
#Get value to threshold off of&lt;br /&gt;
			 t&amp;lt;-getThreshold(A, type=type)&lt;br /&gt;
#Create label&lt;br /&gt;
			 label&amp;lt;-labelSlicer(A ,t) 			 &lt;br /&gt;
			 return (label)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Labeler===&lt;br /&gt;
In implementation both labeler and slicer (labelSlicer) are integrated as the label is a simple column vector.  We show the breakdown to make the connection between the algorithm design and implementation more transparent.&lt;br /&gt;
&lt;br /&gt;
Labeler: Transfers labels on columns of previous datasets (A) to rows of new dataset (B)&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), vector assigning a label to every ROW of A&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
===Slicer===&lt;br /&gt;
Slicer: Partition rows of N into &amp;quot;slices&amp;quot; based on labels from A&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
Output: Set of slices where slice is defined as a set of rows of B all containing the same label (in practice this is just the grouping variable as opposed to actual data slices)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
labelSlicer&amp;lt;-function(values, t){&lt;br /&gt;
	#Set those strictly greater than threshold to 1&lt;br /&gt;
			 index&amp;lt;-which(values&amp;gt;=t)&lt;br /&gt;
			 label(index)&amp;lt;-1&lt;br /&gt;
			 return (label)		      &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Discriminator===&lt;br /&gt;
Discriminator: Evaluates the discriminatory power of labels generated from B in the context of C. Set of slices where slice is defined as a set of rows of B all containing the same label.  A random label would show no difference in the slices. (In practice this is implemented as an index instead of the literal data slice).&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), label&lt;br /&gt;
&lt;br /&gt;
Optional Arguments: set to TRUE to compute the FDR&lt;br /&gt;
&lt;br /&gt;
Output: Value of test for every column of B&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#In practice this is implemented as a index&lt;br /&gt;
#Additional discriminator functions that use KS test, hypergeometric&lt;br /&gt;
#distribution, etc are possible&lt;br /&gt;
discriminator&amp;lt;-function(mat=B, label=l, multCorrect=FALSE){&lt;br /&gt;
&lt;br /&gt;
#Create empty list&lt;br /&gt;
				ttest_struct&amp;lt;-list();&lt;br /&gt;
&lt;br /&gt;
#Compute value of test for each row&lt;br /&gt;
				for(i in 1:nrow(X)){&lt;br /&gt;
                		      temp&amp;lt;-t.test(as.numeric(B[i,])~label)&lt;br /&gt;
                		      ttest_struct[[i]]=temp;&lt;br /&gt;
        			}&lt;br /&gt;
&lt;br /&gt;
#Extract pvalue from structure&lt;br /&gt;
        			all_pval&amp;lt;-getPvalfromStruct(ttest_struct);&lt;br /&gt;
&lt;br /&gt;
#Test if we want to compute FDR&lt;br /&gt;
				if (multCorrect) { all_pval&amp;lt;-p.adjust(all_pval, method=&amp;quot;fdr&amp;quot;) }&lt;br /&gt;
&lt;br /&gt;
        			return  (all_pval)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==AUXILLIARY FUNCTIONS==&lt;br /&gt;
&lt;br /&gt;
===Checking against Threshold===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns a value to split on for the base case&lt;br /&gt;
getThreshold&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
			  type &amp;lt;- match.arg(type)&lt;br /&gt;
			  threshold &amp;lt;- switch(type,&lt;br /&gt;
				mean = mean(A),&lt;br /&gt;
         			median = median(A)  &lt;br /&gt;
			)&lt;br /&gt;
				return (threshold)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return t-test Object===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns only the t-test from the ttest object&lt;br /&gt;
getTfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,1));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return p Value Object===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns only the pvalues from the ttest object&lt;br /&gt;
getPvalfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,3));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT&amp;diff=802</id>
		<title>CRIT</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT&amp;diff=802"/>
		<updated>2011-01-26T13:41:09Z</updated>

		<summary type="html">&lt;p&gt;Tara: Created page with &amp;#039;=Cross Pattern Identification Technique (CRIT)=  Label, Slice, Discriminate, Repeat.  ==Core Functions and Their Parameters==  ===Initializer=== Initializer: Only run the first t…&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Cross Pattern Identification Technique (CRIT)=&lt;br /&gt;
&lt;br /&gt;
Label, Slice, Discriminate, Repeat.&lt;br /&gt;
&lt;br /&gt;
==Core Functions and Their Parameters==&lt;br /&gt;
&lt;br /&gt;
===Initializer===&lt;br /&gt;
Initializer: Only run the first time to obtain some set of labels for the rows of A.  In all remaining steps, the discriminator generates the new label for propogation.  Alternatively, this step can be skipped and a label can be supplied directly to the labeler function.&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Column of A, type of partitioning&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every ROW of Column of A&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
initializer&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
#Create empty vector with the same number of rows of A&lt;br /&gt;
			 label&amp;lt;-matrix(0, length(A))&lt;br /&gt;
#Get value to threshold off of&lt;br /&gt;
			 t&amp;lt;-getThreshold(A, type=type)&lt;br /&gt;
#Create label&lt;br /&gt;
			 label&amp;lt;-labelSlicer(A ,t) 			 &lt;br /&gt;
			 return (label)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Labeler===&lt;br /&gt;
In implementation both labeler and slicer (labelSlicer) are integrated as the label is a simple column vector.  We show the breakdown to make the connection between the algorithm design and implementation more transparent.&lt;br /&gt;
&lt;br /&gt;
Labeler: Transfers labels on columns of previous datasets (A) to rows of new dataset (B)&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), vector assigning a label to every ROW of A&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
===Slicer===&lt;br /&gt;
Slicer: Partition rows of N into &amp;quot;slices&amp;quot; based on labels from A&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
Output: Set of slices where slice is defined as a set of rows of B all containing the same label (in practice this is just the grouping variable as opposed to actual data slices)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
labelSlicer&amp;lt;-function(values, t){&lt;br /&gt;
	#Set those strictly greater than threshold to 1&lt;br /&gt;
			 index&amp;lt;-which(values&amp;gt;=t)&lt;br /&gt;
			 label(index)&amp;lt;-1&lt;br /&gt;
			 return (label)		      &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Discriminator===&lt;br /&gt;
Discriminator: Evaluates the discriminatory power of labels generated from B in the context of C. Set of slices where slice is defined as a set of rows of B all containing the same label.  A random label would show no difference in the slices. (In practice this is implemented as an index instead of the literal data slice).&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), label&lt;br /&gt;
&lt;br /&gt;
Optional Arguments: set to TRUE to compute the FDR&lt;br /&gt;
&lt;br /&gt;
Output: Value of test for every column of B&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#In practice this is implemented as a index&lt;br /&gt;
#Additional discriminator functions that use KS test, hypergeometric&lt;br /&gt;
#distribution, etc are possible&lt;br /&gt;
discriminator&amp;lt;-function(mat=B, testLabel=l, multCorrect=FALSE){&lt;br /&gt;
&lt;br /&gt;
#Create empty list&lt;br /&gt;
				ttest_struct&amp;lt;-list();&lt;br /&gt;
&lt;br /&gt;
#Compute value of test for each row&lt;br /&gt;
				for(i in 1:nrow(X)){&lt;br /&gt;
                		      temp&amp;lt;-t.test(as.numeric(B[i,])~label)&lt;br /&gt;
                		      ttest_struct[[i]]=temp;&lt;br /&gt;
        			}&lt;br /&gt;
&lt;br /&gt;
#Extract pvalue from structure&lt;br /&gt;
        			all_pval&amp;lt;-getPvalfromStruct(ttest_struct);&lt;br /&gt;
&lt;br /&gt;
#Test if we want to compute FDR&lt;br /&gt;
				if (multcorrect) { all_pval&amp;lt;-p.adjust(all_pval, method=&amp;quot;fdr&amp;quot;) }&lt;br /&gt;
&lt;br /&gt;
        			return  (all_pval)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==AUXILLIARY FUNCTIONS==&lt;br /&gt;
&lt;br /&gt;
===Checking against Threshold===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns a value to split on for the base case&lt;br /&gt;
getThreshold&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
			  type &amp;lt;- match.arg(type)&lt;br /&gt;
			  threshold &amp;lt;- switch(type,&lt;br /&gt;
				mean = mean(A),&lt;br /&gt;
         			median = median(A)  &lt;br /&gt;
			)&lt;br /&gt;
				return (threshold)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return t-test Object===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns only the t-test from the ttest object&lt;br /&gt;
getTfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,1));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return p Value Object===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns only the pvalues from the ttest object&lt;br /&gt;
getPvalfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,3));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=798</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=798"/>
		<updated>2011-01-24T20:26:59Z</updated>

		<summary type="html">&lt;p&gt;Tara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Breast Cancer Example==&lt;br /&gt;
&lt;br /&gt;
===Input Data===&lt;br /&gt;
&lt;br /&gt;
p-value.xls:  The binding peaks of ER using ChIP-chip download from Myles Brown&#039;s Lab at: http://research4.dfci.harvard.edu/brownlab//datasets/index.php?dir=ER_MCF7_whole_human_genome/&lt;br /&gt;
&lt;br /&gt;
ER_putative_target_genes.txt: map peak to genes, each rows is a peak; all genes associated are listed in a single row separated using &amp;quot;$&amp;quot;&lt;br /&gt;
VeerData-ID.txt: microarray expression data for breast cancer&lt;br /&gt;
Veer-Info.txt: sample information&lt;br /&gt;
&lt;br /&gt;
UNDER CONSTRUCTION&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/&amp;diff=797</id>
		<title>CRIT/</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/&amp;diff=797"/>
		<updated>2011-01-24T20:05:17Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* AUXILLIARY FUNCTIONS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Cross Pattern Identification Technique (CRIT)=&lt;br /&gt;
&lt;br /&gt;
Label, Slice, Discriminate, Repeat.&lt;br /&gt;
&lt;br /&gt;
==Core Functions and Their Parameters==&lt;br /&gt;
&lt;br /&gt;
===Initializer===&lt;br /&gt;
Initializer: Only run the first time to obtain some set of labels for the rows of A.  In all remaining steps, the discriminator generates the new label for propogation.  Alternatively, this step can be skipped and a label can be supplied directly to the labeler function.&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Column of A, type of partitioning&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every ROW of Column of A&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
initializer&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
#Create empty vector with the same number of rows of A&lt;br /&gt;
			 label&amp;lt;-matrix(0, length(A))&lt;br /&gt;
#Get value to threshold off of&lt;br /&gt;
			 t&amp;lt;-getThreshold(A, type=type)&lt;br /&gt;
#Create label&lt;br /&gt;
			 label&amp;lt;-labelSlicer(A ,t) 			 &lt;br /&gt;
			 return (label)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Labeler===&lt;br /&gt;
In implementation both labeler and slicer (labelSlicer) are integrated as the label is a simple column vector.  We show the breakdown to make the connection between the algorithm design and implementation more transparent.&lt;br /&gt;
&lt;br /&gt;
Labeler: Transfers labels on columns of previous datasets (A) to rows of new dataset (B)&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), vector assigning a label to every ROW of A&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
===Slicer===&lt;br /&gt;
Slicer: Partition rows of N into &amp;quot;slices&amp;quot; based on labels from A&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
Output: Set of slices where slice is defined as a set of rows of B all containing the same label (in practice this is just the grouping variable as opposed to actual data slices)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
labelSlicer&amp;lt;-function(values, t){&lt;br /&gt;
	#Set those strictly greater than threshold to 1&lt;br /&gt;
			 index&amp;lt;-which(values&amp;gt;=t)&lt;br /&gt;
			 label(index)&amp;lt;-1&lt;br /&gt;
			 return (label)		      &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Discriminator===&lt;br /&gt;
Discriminator: Evaluates the discriminatory power of labels generated from B in the context of C. Set of slices where slice is defined as a set of rows of B all containing the same label.  A random label would show no difference in the slices. (In practice this is implemented as an index instead of the literal data slice).&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), label&lt;br /&gt;
&lt;br /&gt;
Optional Arguments: set to TRUE to compute the FDR&lt;br /&gt;
&lt;br /&gt;
Output: Value of test for every column of B&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#In practice this is implemented as a index&lt;br /&gt;
#Additional discriminator functions that use KS test, hypergeometric&lt;br /&gt;
#distribution, etc are possible&lt;br /&gt;
discriminator&amp;lt;-function(mat=B, testLabel=l, multCorrect=FALSE){&lt;br /&gt;
&lt;br /&gt;
#Create empty list&lt;br /&gt;
				ttest_struct&amp;lt;-list();&lt;br /&gt;
&lt;br /&gt;
#Compute value of test for each row&lt;br /&gt;
				for(i in 1:nrow(X)){&lt;br /&gt;
                		      temp&amp;lt;-t.test(as.numeric(B[i,])~label)&lt;br /&gt;
                		      ttest_struct[[i]]=temp;&lt;br /&gt;
        			}&lt;br /&gt;
&lt;br /&gt;
#Extract pvalue from structure&lt;br /&gt;
        			all_pval&amp;lt;-getPvalfromStruct(ttest_struct);&lt;br /&gt;
&lt;br /&gt;
#Test if we want to compute FDR&lt;br /&gt;
				if (multcorrect) { all_pval&amp;lt;-p.adjust(all_pval, method=&amp;quot;fdr&amp;quot;) }&lt;br /&gt;
&lt;br /&gt;
        			return  (all_pval)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==AUXILLIARY FUNCTIONS==&lt;br /&gt;
&lt;br /&gt;
===Checking against Threshold===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns a value to split on for the base case&lt;br /&gt;
getThreshold&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
			  type &amp;lt;- match.arg(type)&lt;br /&gt;
			  threshold &amp;lt;- switch(type,&lt;br /&gt;
				mean = mean(A),&lt;br /&gt;
         			median = median(A)  &lt;br /&gt;
			)&lt;br /&gt;
				return (threshold)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return t-test Object===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns only the t-test from the ttest object&lt;br /&gt;
getTfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,1));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return p Value Object===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Returns only the pvalues from the ttest object&lt;br /&gt;
getPvalfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,3));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=796</id>
		<title>CRIT/workflow</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/workflow&amp;diff=796"/>
		<updated>2011-01-24T20:02:15Z</updated>

		<summary type="html">&lt;p&gt;Tara: Created page with &amp;#039;==Under Construction==&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Under Construction==&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/&amp;diff=795</id>
		<title>CRIT/</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/&amp;diff=795"/>
		<updated>2011-01-24T19:33:38Z</updated>

		<summary type="html">&lt;p&gt;Tara: /* AUXILLIARY FUNCTIONS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Cross Pattern Identification Technique (CRIT)=&lt;br /&gt;
&lt;br /&gt;
Label, Slice, Discriminate, Repeat.&lt;br /&gt;
&lt;br /&gt;
==Core Functions and Their Parameters==&lt;br /&gt;
&lt;br /&gt;
===Initializer===&lt;br /&gt;
Initializer: Only run the first time to obtain some set of labels for the rows of A.  In all remaining steps, the discriminator generates the new label for propogation.  Alternatively, this step can be skipped and a label can be supplied directly to the labeler function.&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Column of A, type of partitioning&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every ROW of Column of A&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
initializer&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
#Create empty vector with the same number of rows of A&lt;br /&gt;
			 label&amp;lt;-matrix(0, length(A))&lt;br /&gt;
#Get value to threshold off of&lt;br /&gt;
			 t&amp;lt;-getThreshold(A, type=type)&lt;br /&gt;
#Create label&lt;br /&gt;
			 label&amp;lt;-labelSlicer(A ,t) 			 &lt;br /&gt;
			 return (label)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Labeler===&lt;br /&gt;
In implementation both labeler and slicer (labelSlicer) are integrated as the label is a simple column vector.  We show the breakdown to make the connection between the algorithm design and implementation more transparent.&lt;br /&gt;
&lt;br /&gt;
Labeler: Transfers labels on columns of previous datasets (A) to rows of new dataset (B)&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), vector assigning a label to every ROW of A&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
===Slicer===&lt;br /&gt;
Slicer: Partition rows of N into &amp;quot;slices&amp;quot; based on labels from A&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
Output: Set of slices where slice is defined as a set of rows of B all containing the same label (in practice this is just the grouping variable as opposed to actual data slices)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
labelSlicer&amp;lt;-function(values, t){&lt;br /&gt;
	#Set those strictly greater than threshold to 1&lt;br /&gt;
			 index&amp;lt;-which(values&amp;gt;=t)&lt;br /&gt;
			 label(index)&amp;lt;-1&lt;br /&gt;
			 return (label)		      &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Discriminator===&lt;br /&gt;
Discriminator: Evaluates the discriminatory power of labels generated from B in the context of C. Set of slices where slice is defined as a set of rows of B all containing the same label.  A random label would show no difference in the slices. (In practice this is implemented as an index instead of the literal data slice).&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), label&lt;br /&gt;
&lt;br /&gt;
Optional Arguments: set to TRUE to compute the FDR&lt;br /&gt;
&lt;br /&gt;
Output: Value of test for every column of B&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#In practice this is implemented as a index&lt;br /&gt;
#Additional discriminator functions that use KS test, hypergeometric&lt;br /&gt;
#distribution, etc are possible&lt;br /&gt;
discriminator&amp;lt;-function(mat=B, testLabel=l, multCorrect=FALSE){&lt;br /&gt;
&lt;br /&gt;
#Create empty list&lt;br /&gt;
				ttest_struct&amp;lt;-list();&lt;br /&gt;
&lt;br /&gt;
#Compute value of test for each row&lt;br /&gt;
				for(i in 1:nrow(X)){&lt;br /&gt;
                		      temp&amp;lt;-t.test(as.numeric(B[i,])~label)&lt;br /&gt;
                		      ttest_struct[[i]]=temp;&lt;br /&gt;
        			}&lt;br /&gt;
&lt;br /&gt;
#Extract pvalue from structure&lt;br /&gt;
        			all_pval&amp;lt;-getPvalfromStruct(ttest_struct);&lt;br /&gt;
&lt;br /&gt;
#Test if we want to compute FDR&lt;br /&gt;
				if (multcorrect) { all_pval&amp;lt;-p.adjust(all_pval, method=&amp;quot;fdr&amp;quot;) }&lt;br /&gt;
&lt;br /&gt;
        			return  (all_pval)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==AUXILLIARY FUNCTIONS==&lt;br /&gt;
&lt;br /&gt;
===Checking against Threshold===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Returns a value to split on for the base case&lt;br /&gt;
getThreshold&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
			  type &amp;lt;- match.arg(type)&lt;br /&gt;
			  threshold &amp;lt;- switch(type,&lt;br /&gt;
				mean = mean(A),&lt;br /&gt;
         			median = median(A)  &lt;br /&gt;
			)&lt;br /&gt;
				return (threshold)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return t-test Object===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Returns only the t-test from the ttest object&lt;br /&gt;
getTfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,1));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return p Value Object===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Returns only the pvalues from the ttest object&lt;br /&gt;
getPvalfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,3));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/&amp;diff=794</id>
		<title>CRIT/</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/&amp;diff=794"/>
		<updated>2011-01-24T19:32:02Z</updated>

		<summary type="html">&lt;p&gt;Tara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Cross Pattern Identification Technique (CRIT)=&lt;br /&gt;
&lt;br /&gt;
Label, Slice, Discriminate, Repeat.&lt;br /&gt;
&lt;br /&gt;
==Core Functions and Their Parameters==&lt;br /&gt;
&lt;br /&gt;
===Initializer===&lt;br /&gt;
Initializer: Only run the first time to obtain some set of labels for the rows of A.  In all remaining steps, the discriminator generates the new label for propogation.  Alternatively, this step can be skipped and a label can be supplied directly to the labeler function.&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Column of A, type of partitioning&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every ROW of Column of A&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
initializer&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
#Create empty vector with the same number of rows of A&lt;br /&gt;
			 label&amp;lt;-matrix(0, length(A))&lt;br /&gt;
#Get value to threshold off of&lt;br /&gt;
			 t&amp;lt;-getThreshold(A, type=type)&lt;br /&gt;
#Create label&lt;br /&gt;
			 label&amp;lt;-labelSlicer(A ,t) 			 &lt;br /&gt;
			 return (label)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Labeler===&lt;br /&gt;
In implementation both labeler and slicer (labelSlicer) are integrated as the label is a simple column vector.  We show the breakdown to make the connection between the algorithm design and implementation more transparent.&lt;br /&gt;
&lt;br /&gt;
Labeler: Transfers labels on columns of previous datasets (A) to rows of new dataset (B)&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), vector assigning a label to every ROW of A&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
===Slicer===&lt;br /&gt;
Slicer: Partition rows of N into &amp;quot;slices&amp;quot; based on labels from A&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
Output: Set of slices where slice is defined as a set of rows of B all containing the same label (in practice this is just the grouping variable as opposed to actual data slices)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
labelSlicer&amp;lt;-function(values, t){&lt;br /&gt;
	#Set those strictly greater than threshold to 1&lt;br /&gt;
			 index&amp;lt;-which(values&amp;gt;=t)&lt;br /&gt;
			 label(index)&amp;lt;-1&lt;br /&gt;
			 return (label)		      &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Discriminator===&lt;br /&gt;
Discriminator: Evaluates the discriminatory power of labels generated from B in the context of C. Set of slices where slice is defined as a set of rows of B all containing the same label.  A random label would show no difference in the slices. (In practice this is implemented as an index instead of the literal data slice).&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), label&lt;br /&gt;
&lt;br /&gt;
Optional Arguments: set to TRUE to compute the FDR&lt;br /&gt;
&lt;br /&gt;
Output: Value of test for every column of B&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#In practice this is implemented as a index&lt;br /&gt;
#Additional discriminator functions that use KS test, hypergeometric&lt;br /&gt;
#distribution, etc are possible&lt;br /&gt;
discriminator&amp;lt;-function(mat=B, testLabel=l, multCorrect=FALSE){&lt;br /&gt;
&lt;br /&gt;
#Create empty list&lt;br /&gt;
				ttest_struct&amp;lt;-list();&lt;br /&gt;
&lt;br /&gt;
#Compute value of test for each row&lt;br /&gt;
				for(i in 1:nrow(X)){&lt;br /&gt;
                		      temp&amp;lt;-t.test(as.numeric(B[i,])~label)&lt;br /&gt;
                		      ttest_struct[[i]]=temp;&lt;br /&gt;
        			}&lt;br /&gt;
&lt;br /&gt;
#Extract pvalue from structure&lt;br /&gt;
        			all_pval&amp;lt;-getPvalfromStruct(ttest_struct);&lt;br /&gt;
&lt;br /&gt;
#Test if we want to compute FDR&lt;br /&gt;
				if (multcorrect) { all_pval&amp;lt;-p.adjust(all_pval, method=&amp;quot;fdr&amp;quot;) }&lt;br /&gt;
&lt;br /&gt;
        			return  (all_pval)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==AUXILLIARY FUNCTIONS==&lt;br /&gt;
&lt;br /&gt;
#Returns a value to split on for the base case&lt;br /&gt;
getThreshold&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
			  type &amp;lt;- match.arg(type)&lt;br /&gt;
			  threshold &amp;lt;- switch(type,&lt;br /&gt;
				mean = mean(A),&lt;br /&gt;
         			median = median(A)  &lt;br /&gt;
			)&lt;br /&gt;
				return (threshold)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#Returns only the t-test from the ttest object&lt;br /&gt;
getTfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,1));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#Returns only the pvalues from the ttest object&lt;br /&gt;
getPvalfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,3));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/&amp;diff=793</id>
		<title>CRIT/</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/&amp;diff=793"/>
		<updated>2011-01-24T19:31:35Z</updated>

		<summary type="html">&lt;p&gt;Tara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Cross Pattern Identification Technique (CRIT)=&lt;br /&gt;
&lt;br /&gt;
Label, Slice, Discriminate, Repeat.&lt;br /&gt;
&lt;br /&gt;
==Core Functions and Their Parameters==&lt;br /&gt;
&lt;br /&gt;
===Initializer===&lt;br /&gt;
Initializer: Only run the first time to obtain some set of labels for the rows of A.  In all remaining steps, the discriminator generates the new label for propogation.  Alternatively, this step can be skipped and a label can be supplied directly to the labeler function.&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Column of A, type of partitioning&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every ROW of Column of A&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
initializer&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
#Create empty vector with the same number of rows of A&lt;br /&gt;
			 label&amp;lt;-matrix(0, length(A))&lt;br /&gt;
#Get value to threshold off of&lt;br /&gt;
			 t&amp;lt;-getThreshold(A, type=type)&lt;br /&gt;
#Create label&lt;br /&gt;
			 label&amp;lt;-labelSlicer(A ,t) 			 &lt;br /&gt;
			 return (label)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Labeler===&lt;br /&gt;
In implementation both labeler and slicer (labelSlicer) are integrated as the label is a simple column vector.  We show the breakdown to make the connection between the algorithm design and implementation more transparent.&lt;br /&gt;
&lt;br /&gt;
Labeler: Transfers labels on columns of previous datasets (A) to rows of new dataset (B)&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), vector assigning a label to every ROW of A&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
===Slicer===&lt;br /&gt;
Slicer: Partition rows of N into &amp;quot;slices&amp;quot; based on labels from A&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
Output: Set of slices where slice is defined as a set of rows of B all containing the same label (in practice this is just the grouping variable as opposed to actual data slices)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
labelSlicer&amp;lt;-function(values, t){&lt;br /&gt;
	#Set those strictly greater than threshold to 1&lt;br /&gt;
			 index&amp;lt;-which(values&amp;gt;=t)&lt;br /&gt;
			 label(index)&amp;lt;-1&lt;br /&gt;
			 return (label)		      &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Discriminator===&lt;br /&gt;
Discriminator: Evaluates the discriminatory power of labels generated from B in the context of C. Set of slices where slice is defined as a set of rows of B all containing the same label.  A random label would show no difference in the slices. (In practice this is implemented as an index instead of the literal data slice).&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), label&lt;br /&gt;
&lt;br /&gt;
Optional Arguments: set to TRUE to compute the FDR&lt;br /&gt;
&lt;br /&gt;
Output: Value of test for every column of B&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#In practice this is implemented as a index&lt;br /&gt;
#Additional discriminator functions that use KS test, hypergeometric&lt;br /&gt;
#distribution, etc are possible&lt;br /&gt;
discriminator&amp;lt;-function(mat=B, testLabel=l, multCorrect=FALSE){&lt;br /&gt;
&lt;br /&gt;
#Create empty list&lt;br /&gt;
				ttest_struct&amp;lt;-list();&lt;br /&gt;
&lt;br /&gt;
#Compute value of test for each row&lt;br /&gt;
				for(i in 1:nrow(X)){&lt;br /&gt;
                		      temp&amp;lt;-t.test(as.numeric(B[i,])~label)&lt;br /&gt;
                		      ttest_struct[[i]]=temp;&lt;br /&gt;
        			}&lt;br /&gt;
&lt;br /&gt;
#Extract pvalue from structure&lt;br /&gt;
        			all_pval&amp;lt;-getPvalfromStruct(ttest_struct);&lt;br /&gt;
&lt;br /&gt;
#Test if we want to compute FDR&lt;br /&gt;
				if (multcorrect) { all_pval&amp;lt;-p.adjust(all_pval, method=&amp;quot;fdr&amp;quot;) }&lt;br /&gt;
&lt;br /&gt;
        			return  (all_pval)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===AUXILLIARY FUNCTIONS===&lt;br /&gt;
&lt;br /&gt;
#Returns a value to split on for the base case&lt;br /&gt;
getThreshold&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
			  type &amp;lt;- match.arg(type)&lt;br /&gt;
			  threshold &amp;lt;- switch(type,&lt;br /&gt;
				mean = mean(A),&lt;br /&gt;
         			median = median(A)  &lt;br /&gt;
			)&lt;br /&gt;
				return (threshold)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#Returns only the t-test from the ttest object&lt;br /&gt;
getTfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,1));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#Returns only the pvalues from the ttest object&lt;br /&gt;
getPvalfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,3));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/&amp;diff=792</id>
		<title>CRIT/</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/&amp;diff=792"/>
		<updated>2011-01-24T19:27:44Z</updated>

		<summary type="html">&lt;p&gt;Tara: Created page with &amp;#039;=Cross Pattern Identification Technique (CRIT)=  ==Core Functions and Their Parameters==  ===Initializer=== Initializer: Only run the first time to obtain some set of labels for …&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Cross Pattern Identification Technique (CRIT)=&lt;br /&gt;
&lt;br /&gt;
==Core Functions and Their Parameters==&lt;br /&gt;
&lt;br /&gt;
===Initializer===&lt;br /&gt;
Initializer: Only run the first time to obtain some set of labels for the rows of A.  In all remaining steps, the discriminator generates the new label for propogation.  Alternatively, this step can be skipped and a label can be supplied directly to the labeler function.&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Column of A, type of partitioning&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every ROW of Column of A&lt;br /&gt;
&lt;br /&gt;
===Labeler===&lt;br /&gt;
In implementation both labeler and slicer (labelSlicer) are integrated as the label is a simple column vector.  We show the breakdown to make the connection between the algorithm design and implementation more transparent.&lt;br /&gt;
&lt;br /&gt;
Labeler: Transfers labels on columns of previous datasets (A) to rows of new dataset (B)&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), vector assigning a label to every ROW of A&lt;br /&gt;
&lt;br /&gt;
Output: Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
===Slicer===&lt;br /&gt;
Slicer: Partition rows of N into &amp;quot;slices&amp;quot; based on labels from A&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), Vector assigning a label to every COLUMN of B&lt;br /&gt;
&lt;br /&gt;
Output: Set of slices where slice is defined as a set of rows of B all containing the same label (in practice this is just the grouping variable as opposed to actual data slices)&lt;br /&gt;
&lt;br /&gt;
===Discriminator===&lt;br /&gt;
Discriminator: Evaluates the discriminatory power of labels generated from B in the context of C. Set of slices where slice is defined as a set of rows of B all containing the same label.  A random label would show no difference in the slices. (In practice this is implemented as an index instead of the literal data slice).&lt;br /&gt;
&lt;br /&gt;
Required Arguments: Matrix (B), label&lt;br /&gt;
&lt;br /&gt;
Optional Arguments: set to TRUE to compute the FDR&lt;br /&gt;
&lt;br /&gt;
Output: Value of test for every column of B&lt;br /&gt;
&lt;br /&gt;
#Label, Slice, Discriminate, Repeat&lt;br /&gt;
&lt;br /&gt;
#---------------CORE FUNCTIONS---------------#&lt;br /&gt;
&lt;br /&gt;
initializer&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
#Create empty vector with the same number of rows of A&lt;br /&gt;
			 label&amp;lt;-matrix(0, length(A))&lt;br /&gt;
#Get value to threshold off of&lt;br /&gt;
			 t&amp;lt;-getThreshold(A, type=type)&lt;br /&gt;
#Create label&lt;br /&gt;
			 label&amp;lt;-labelSlicer(A ,t) 			 &lt;br /&gt;
			 return (label)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#In practice this is implemented as a index&lt;br /&gt;
#Additional discriminator functions that use KS test, hypergeometric&lt;br /&gt;
#distribution, etc are possible&lt;br /&gt;
discriminator&amp;lt;-function(mat=B, testLabel=l, multCorrect=FALSE){&lt;br /&gt;
&lt;br /&gt;
#Create empty list&lt;br /&gt;
				ttest_struct&amp;lt;-list();&lt;br /&gt;
&lt;br /&gt;
#Compute value of test for each row&lt;br /&gt;
				for(i in 1:nrow(X)){&lt;br /&gt;
                		      temp&amp;lt;-t.test(as.numeric(B[i,])~label)&lt;br /&gt;
                		      ttest_struct[[i]]=temp;&lt;br /&gt;
        			}&lt;br /&gt;
&lt;br /&gt;
#Extract pvalue from structure&lt;br /&gt;
        			all_pval&amp;lt;-getPvalfromStruct(ttest_struct);&lt;br /&gt;
&lt;br /&gt;
#Test if we want to compute FDR&lt;br /&gt;
				if (multcorrect) { all_pval&amp;lt;-p.adjust(all_pval, method=&amp;quot;fdr&amp;quot;) }&lt;br /&gt;
&lt;br /&gt;
        			return  (all_pval)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
labelSlicer&amp;lt;-function(values, t){&lt;br /&gt;
	#Set those strictly greater than threshold to 1&lt;br /&gt;
			 index&amp;lt;-which(values&amp;gt;=t)&lt;br /&gt;
			 label(index)&amp;lt;-1&lt;br /&gt;
			 return (label)		      &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#---------------AUXILLIARY FUNCTIONS---------------#&lt;br /&gt;
&lt;br /&gt;
#Returns a value to split on for the base case&lt;br /&gt;
getThreshold&amp;lt;-function(A, type=c(&amp;quot;median&amp;quot;,&amp;quot;mean&amp;quot;)) {&lt;br /&gt;
			  type &amp;lt;- match.arg(type)&lt;br /&gt;
			  threshold &amp;lt;- switch(type,&lt;br /&gt;
				mean = mean(A),&lt;br /&gt;
         			median = median(A)  &lt;br /&gt;
			)&lt;br /&gt;
				return (threshold)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#Returns only the t-test from the ttest object&lt;br /&gt;
getTfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,1));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#Returns only the pvalues from the ttest object&lt;br /&gt;
getPvalfromStruct&amp;lt;-function(struct){&lt;br /&gt;
        p&amp;lt;-unlist(lapply(struct, &amp;quot;[&amp;quot;,3));&lt;br /&gt;
        return(p)&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/gallery&amp;diff=791</id>
		<title>CRIT/gallery</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/gallery&amp;diff=791"/>
		<updated>2011-01-24T19:12:12Z</updated>

		<summary type="html">&lt;p&gt;Tara: Created page with &amp;#039;==Coming Soon!==&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Coming Soon!==&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
	<entry>
		<id>https://info.gersteinlab.org/index.php?title=CRIT/code&amp;diff=790</id>
		<title>CRIT/code</title>
		<link rel="alternate" type="text/html" href="https://info.gersteinlab.org/index.php?title=CRIT/code&amp;diff=790"/>
		<updated>2011-01-24T19:10:06Z</updated>

		<summary type="html">&lt;p&gt;Tara: Created page with &amp;#039;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/crit/ &amp;#039;&amp;#039;&amp;#039;CRIT Main Page&amp;#039;&amp;#039;&amp;#039;]&amp;lt;/center&amp;gt;  __NOTOC__  == Code ==  === Required Software - External ===  # This is an R package.  &amp;lt;br&amp;gt;  ===…&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;[http://archive.gersteinlab.org/proj/crit/ &#039;&#039;&#039;CRIT Main Page&#039;&#039;&#039;]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&lt;br /&gt;
=== Required Software - External ===&lt;br /&gt;
&lt;br /&gt;
# This is an R package.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Download ===&lt;br /&gt;
&lt;br /&gt;
==== Source code ====&lt;br /&gt;
A TAR ball that contains the source code for these two components can be downloaded here:&lt;br /&gt;
* [http://archive.gersteinlab.org/proj/crit CRIT-0.1.tar.gz]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Important Note&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
THIS PACKAGE (RSEQtools including BIOS and MRF) IS PROVIDED &amp;quot;AS IS&amp;quot; AND WITHOUT ANY EXPRESSED OR IMPLIED&lt;br /&gt;
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES&lt;br /&gt;
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== License information ===&lt;br /&gt;
&lt;br /&gt;
The software package is released under the [http://creativecommons.org/licenses/by-nc/2.5/legalcode Creative Commons license (Attribution-NonCommerical)]. &amp;lt;br&amp;gt;&lt;br /&gt;
For more details please refer to the [http://www.gersteinlab.org/misc/permissions.html Permissions Page] on the Gerstein Lab webpage.&lt;/div&gt;</summary>
		<author><name>Tara</name></author>
	</entry>
</feed>