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