Hi Mina,
Thanks for using the REDUCE Suite and for posting your questions on the Forum.
Type AffinityProfile -h, and try the examples, on how to use the program. PSAM is a MatrixREDUCE-specific term and can be derived from running MatrixREDUCE. You may also run Convert2PSAM to convert commonly-used formats to PSAM. As with AffinityProfile -h, you can type -h or --help of these programs for helpful information with examples.
You may also want to try other (more sophisticated) software tools developed by the Bussemaker Lab.
Best regards,
Xiang-Jun