Skip to content

Commit

Permalink
workflow updated
Browse files Browse the repository at this point in the history
  • Loading branch information
janursa committed Sep 15, 2024
1 parent 1f2575c commit c1adbbd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
32 changes: 26 additions & 6 deletions src/methods/multi_omics/scglue/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,22 +218,42 @@ def prune_grn(par):
# Construct the command
#TODO: be sure that obs_id is in obs and name is in var
print("Run pscenic ctx", flush=True)
# command = [
# "pyscenic", "ctx",
# f"{par['temp_dir']}/draft_grn.csv",
# f"{par['temp_dir']}/glue.genes_vs_tracks.rankings.feather",
# f"{par['temp_dir']}/supp.genes_vs_tracks.rankings.feather",
# "--annotations_fname", f"{par['temp_dir']}/ctx_annotation.tsv",
# "--expression_mtx_fname", f"{par['temp_dir']}/rna.loom",
# "--output", f"{par['temp_dir']}/pruned_grn.csv",
# "--rank_threshold", "10000",
# "--auc_threshold", "0.1",
# "--nes_threshold", "2",
# "--mask_dropouts",
# "--min_genes", "1",
# "--num_workers", f"{par['num_workers']}",
# "--cell_id_attribute", "obs_id",
# "--gene_attribute", "name"
# ]

par['genes_vs_motifs_500'] = 'output/scenic/databases/hg38_500bp_up_100bp_down_full_tx_v10_clust.genes_vs_motifs.rankings.feather'
par['genes_vs_motifs_10k'] = 'output/scenic/databases/hg38_10kbp_up_10kbp_down_full_tx_v10_clust.genes_vs_motifs.rankings.feather'
par['motif_annotation'] = 'output/scenic/databases/motifs-v10nr_clust-nr.hgnc-m0.001-o0.0.tbl'

command = [
"pyscenic", "ctx",
f"{par['temp_dir']}/draft_grn.csv",
f"{par['temp_dir']}/glue.genes_vs_tracks.rankings.feather",
f"{par['temp_dir']}/supp.genes_vs_tracks.rankings.feather",
"--annotations_fname", f"{par['temp_dir']}/ctx_annotation.tsv",
par['genes_vs_motifs_500'],
par['genes_vs_motifs_10k'],
"--annotations_fname", par['motif_annotation'],
"--expression_mtx_fname", f"{par['temp_dir']}/rna.loom",
"--output", f"{par['temp_dir']}/pruned_grn.csv",
"--rank_threshold", "10000",
"--auc_threshold", "0.1",
"--nes_threshold", "2",
"--mask_dropouts",
"--min_genes", "1",
"--num_workers", f"{par['num_workers']}",
"--cell_id_attribute", "obs_id",
"--gene_attribute", "name"
"--num_workers", f"{par['num_workers']}"
]

result = subprocess.run(command, check=True)
Expand Down
4 changes: 2 additions & 2 deletions src/workflows/run_benchmark_single_omics/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ functionality:
- name: grn_methods/grnboost2
# - name: grn_methods/pidc
- name: grn_methods/ppcor
- name: grn_methods/scsgl
- name: grn_methods/tigress
# - name: grn_methods/scsgl
# - name: grn_methods/tigress
- name: grn_methods/scgpt
- name: grn_methods/scenic
repositories:
Expand Down

0 comments on commit c1adbbd

Please sign in to comment.