Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/swiri021/PAM50_Classifier_for_PRCA

PAM50 classifier for Prostate Cancer in Python
https://github.com/swiri021/PAM50_Classifier_for_PRCA

pam50 pam50classifier prad prostate-cancer

Last synced: 2 months ago
JSON representation

PAM50 classifier for Prostate Cancer in Python

Awesome Lists containing this project

README

        

# PAM50 Classifier for Prostate Cancer.
This classifier is based on Zhao el al on JAMA for the microarray data, and if you have error or question for this code, let me know.(NOT PAPER)

# Reference
[Associations of Luminal and Basal Subtyping of Prostate Cancer With Prognosis and Response to Androgen Deprivation Therapy](http://jamanetwork.com/journals/jamaoncology/article-abstract/2626510)

# Example
```Python
import pandas as pd
from cls.PAM50_classifier import PAM50_CLS

# Expression data has to be median centered and EntrezID indexed
df = pd.read_csv('cls/dataset/example_expr.csv', index_col=0)

# score_softmax = True : It means desicision score will be calculated to softmax(0~1).
# If it is False, score will be just correlation score
pam50 = PAM50_CLS(df, score_softmax=True)

print pam50.pam50_result ### Predicted result
print pam50.pam50_score ### Decision score of predicted result

```