Skip to content

Commit

Permalink
hightime for scglue
Browse files Browse the repository at this point in the history
  • Loading branch information
janursa committed Aug 21, 2024
1 parent 8d0e477 commit cbd7398
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/methods/multi_omics/scglue/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ platforms:
- type: native
- type: nextflow
directives:
label: [midtime,midmem,midcpu]
label: [hightime,midmem,midcpu]
6 changes: 5 additions & 1 deletion src/metrics/regression_1/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ def regression_1(
"""
gene_names = train_df.index.to_numpy()
gene_names_grn = net.index.to_numpy()
print(net)
print(gene_names)
aa
# determine regressor
if reg_type=='ridge':
regr = Ridge(**dict(random_state=32))
Expand Down Expand Up @@ -162,6 +165,7 @@ def process_net(net, gene_names, manipulate):
net = net.map(lambda x: 1 if x>0 else (-1 if x<0 else 0))
return net


def main(par):
random_state = 42
set_global_seed(random_state)
Expand All @@ -172,7 +176,7 @@ def main(par):

perturbation_data = ad.read_h5ad(par['perturbation_data'])
gene_names = perturbation_data.var.index.to_numpy()
net = pd.read_csv(par['prediction'])
net = pd.read_csv(par['prediction'], index_col=0)

subsample = par['subsample']
reg_type = par['reg_type']
Expand Down

0 comments on commit cbd7398

Please sign in to comment.