Scénario de test & Cas d'usage
Network analysis and graph algorithms.
Discover all actions of optNetworkCreation of a protein interaction network with weights. P1-P2-P3 form a clique with high weights, while P4-P5-P6 form a clique with low weights.
| 1 | |
| 2 | DATA mycas.protein_interactions; |
| 3 | INPUT prot_a $ prot_b $ conf_score; |
| 4 | DATALINES; |
| 5 | P1 P2 5.0 P1 P3 5.0 P2 P3 5.0 P4 P5 1.0 P4 P6 1.0 P5 P6 1.0; |
| 6 | |
| 7 | RUN; |
| 8 |
| 1 | |
| 2 | PROC CAS; |
| 3 | ACTION optNetwork.clique / links={name='protein_interactions', vars={from='prot_a', to='prot_b', weight='conf_score'}} minLinkWeight=12.0 out={name='high_conf_complexes', replace=true}; |
| 4 | |
| 5 | RUN; |
| 6 |
The output table 'high_conf_complexes' should ONLY contain the clique {P1, P2, P3} (Total Weight = 15.0). The clique {P4, P5, P6} (Total Weight = 3.0) must be excluded because it does not meet the minLinkWeight threshold of 12.0.