src/hg/encode/encodeValidate/doEncodeValidate.pl 1.200
1.200 2009/10/09 23:10:39 kate
Add color by cell type (from cv.ra) to trackDb file
Index: src/hg/encode/encodeValidate/doEncodeValidate.pl
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/encode/encodeValidate/doEncodeValidate.pl,v
retrieving revision 1.199
retrieving revision 1.200
diff -b -B -U 4 -r1.199 -r1.200
--- src/hg/encode/encodeValidate/doEncodeValidate.pl 9 Oct 2009 20:27:21 -0000 1.199
+++ src/hg/encode/encodeValidate/doEncodeValidate.pl 9 Oct 2009 23:10:39 -0000 1.200
@@ -1918,8 +1918,15 @@
# print TRACK_RA $additional;
if(defined($ddfLine->{accession}) && length($ddfLine->{accession}) > 0) {
print TRACK_RA sprintf(" accession %s\n",$ddfLine->{accession});
}
+ # color track by color setting for cell type in cv.ra
+ if(defined($ddfLine->{cell})) {
+ if(defined($terms{'Cell Line'}->{$ddfLine->{cell}}->{'color'})) {
+ print TRACK_RA sprintf(" color %s\n",
+ $terms{'Cell Line'}->{$ddfLine->{cell}}->{'color'});
+ }
+ }
# metadata proj=wgEncode lab=Yale cell=GM12878 antiBody=Pol2 labVersion="PeakSeq 1.2 ..." dataVersion="ENCODE Feb 2009 Freeze"
print TRACK_RA sprintf(" metadata %s\n", $metadata);
print TRACK_RA "\n";
}