|
4 | 4 | # Define the command-line arguments
|
5 | 5 | parser = argparse.ArgumentParser(description='Sets up manuel review files')
|
6 | 6 |
|
| 7 | +parser.add_argument('-WB', |
| 8 | + help='the path to the gcp_immuno folder of the trial you wish to tun script on, defined as WORKING_BASE in envs.txt') |
| 9 | + |
7 | 10 | parser.add_argument('-samp', help='Name of the sample')
|
8 | 11 | parser.add_argument('-a', help='Path to ITB Reviewed Candidates')
|
9 | 12 | parser.add_argument('-c', help='Path to annotated_filtered.vcf-pass-51mer.fa.manufacturability.tsv')
|
10 | 13 |
|
11 | 14 | parser.add_argument('-classI', help='Path to classI all_epitopes.aggregated.tsv', required=True)
|
12 | 15 | parser.add_argument('-classII', help='Path to classII all_epitopes.aggregated.tsv', required=True)
|
13 |
| -parser.add_argument('-o', help='The name of the html in which the coloring will be printed', required=True) |
14 | 16 |
|
15 | 17 |
|
16 | 18 |
|
17 | 19 | # Parse the command-line arguments
|
18 | 20 | args = parser.parse_args()
|
19 | 21 |
|
20 | 22 | # Check if the required arguments are provided
|
21 |
| -if not args.classI or not args.classII or not args.o: |
22 |
| - parser.error("Missing required arguments. Please provide -p, -classI, -classII, and -o.") |
| 23 | +if not args.classI or not args.classII or not args.WB: |
| 24 | + parser.error("Missing required arguments. Please provide -p, -classI, -classII, and -WB.") |
23 | 25 |
|
24 | 26 |
|
25 | 27 |
|
26 |
| -command1 = f"python /opt/scripts/generate_reviews_files.py -a {args.a} -c {args.c} -samp {args.samp}" |
27 |
| -command2 = f"python /opt/scripts/color_peptides51mer.py -p {args.samp}_Peptides_51-mer.xlsx -classI {args.classI} -classII {args.classII} -o {args.o}" |
| 28 | +command1 = f"python /opt/scripts/generate_reviews_files.py -WB {args.WB} -a {args.a} -c {args.c} -samp {args.samp}" |
| 29 | +command2 = f"python /opt/scripts/color_peptides51mer.py -WB {args.WB} -p {args.WB}/../manual_review/{args.samp}_Peptides_51-mer.xlsx -classI {args.classI} -classII {args.classII} -samp {args.samp}" |
28 | 30 |
|
29 | 31 |
|
30 | 32 | # Execute the first script
|
31 | 33 | print("Generating Review Files...")
|
| 34 | + |
32 | 35 | subprocess.run(command1, shell=True)
|
33 | 36 |
|
34 | 37 | # Execute the second script
|
35 | 38 | print("Coloring Peptide Sequeces...")
|
| 39 | + |
36 | 40 | subprocess.run(command2, shell=True)
|
37 | 41 |
|
| 42 | + |
38 | 43 | print("Scripts have been executed successfully.")
|
| 44 | + |
0 commit comments