Events News Research CBS CBS Publications Bioinformatics
Staff Contact About Internal CBS CBS Other

Post script hacking

To run this exercise you need first to run: cp -R /home/people/immu00/exercise1 .     ,
cd exercise1       and make a logo by:
cat epitope2protein.HLA-D_m13.out | gawk 'BEGIN{print "* Aligned protein sequences."}{s=substr($7,$3-4,9);if (length(s)==9){print s"."}}' | /home/projects/projects/vaccine/bin/logo2 -p - | gawk 'BEGIN{pr=0}{if (/\%\!PS-Adobe-3.0 EPSF-3.0/){pr=1} if(pr==1){print $0}}' >

ghostview      View the file generated by the command
Use vi to change "(1 ) makenumber" to "(First ) makenumber" in and view the file again
Now change:
(First ) makenumber
1.0 0.0 0.0 setrgbcolor
(First ) makenumber
0.0 0.0 0.0 setrgbcolor
and view it again - the 3 number are the values for red, green and blue.
View the files and with ghostview and compare them using: