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}}' > logo.ps

ghostview logo.ps      View the file logo.ps generated by the command
Use vi to change "(1 ) makenumber" to "(First ) makenumber" in logo.ps and view the file again
Now change:
(First ) makenumber
to:
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 Vira.ps and Vira3.ps with ghostview and compare them using:
gdiff Vira.ps Vira3.ps