Skip to content

Commit 30c55d1

Browse files
committed
Add support for cell annotation for multi
1 parent 539fcde commit 30c55d1

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

scripts/multi/write_multiconfig.py

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
import argparse, csv, re, os
44
import sys
5+
from pathlib import Path
6+
7+
sys.path.insert(0, str(Path().absolute()))
8+
# Check if config.py and program.py exist in current working directory
9+
config_path = os.path.join(os.getcwd(), 'config.py')
10+
program_path = os.path.join(os.getcwd(), 'program.py')
11+
12+
if not os.path.exists(config_path):
13+
print("Error: config.py not found in current directory", file=sys.stderr)
14+
sys.exit(1)
15+
16+
if not os.path.exists(program_path):
17+
print("Error: program.py not found in current directory", file=sys.stderr)
18+
sys.exit(1)
19+
20+
import config
21+
import program
522

623
def main(raw_args=None):
724
parser = argparse.ArgumentParser(description="""Help to set up and run the single cell multi pipeline""")
@@ -78,7 +95,10 @@ def main(raw_args=None):
7895
spamwriter = csv.writer(csvfile, delimiter=',')
7996
spamwriter.writerow(['[gene-expression]'])
8097
spamwriter.writerow(['reference', args.ref])
81-
## Parameter for fixed RNA profiling
98+
if "hg38" in config.ref or "mm10" in args.ref or "mm39" in args.ref:
99+
spamwriter.writerow(['cell-annotation-model', 'auto'])
100+
spamwriter.writerow(['tenx-cloud-token-path', program.tenx_cloud_token_path])
101+
## Parameter for fixed RNA profiling
82102
if args.probe_set != None:
83103
spamwriter.writerow(['probe-set', args.probe_set])
84104
if args.force:

0 commit comments

Comments
 (0)