Skip to content

Commit

Permalink
Add allcop predictions file
Browse files Browse the repository at this point in the history
  • Loading branch information
mariya committed Oct 15, 2024
1 parent 6bd7962 commit 5586ead
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Empty file added src/mpm_experiments/__init__.py
Empty file.
16 changes: 16 additions & 0 deletions src/mpm_experiments/allcop_predictions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import pandas as pd
from src.allium.gex_classifier import GEXClassifier

datasets = ['jude', 'lilljebjorn', 'jude']
data_dir = '/home/mariya/Data/allium'
gc = GEXClassifier('v3')

for dataset in datasets:
print("Predicting for", dataset)
testX = pd.read_csv(f'{data_dir}/{dataset}.counts.allium.csv',
index_col="id")
pheno = pd.read_csv(f'{data_dir}/{dataset}.pheno.allium.csv',
index_col="id",
sep=';')
result = gc.get_predictions(testX, pheno=pheno)
result.to_csv(f'{data_dir}/{dataset}.predictions.csv')

0 comments on commit 5586ead

Please sign in to comment.