Skip to content

Commit e5ecc0c

Browse files
testing commit ability
1 parent 89b26ec commit e5ecc0c

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

scripts/generate_reviews_files.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import argparse
1+
mport argparse
22
import csv
33
import pandas as pd
44
import sys
@@ -28,6 +28,8 @@ def parse_arguments():
2828
help='The path to annotated_filtered.vcf-pass-51mer.fa.manufacturability.tsv from the generate_protein_fasta script')
2929
parser.add_argument('-samp',
3030
help='The name of the sample')
31+
parser.add_argument('-WB',
32+
help='the path to the gcp_immuno folder of the trial you wish to tun script on, defined as WORKING_BASE in envs.txt')
3133

3234
# The name of the final results folder
3335
parser.add_argument('-f', "--fin_results", help="Name of the final results folder in gcp immuno")
@@ -67,12 +69,20 @@ def main():
6769
peptides = peptides[["ID", "CANDIDATE NEOANTIGEN", "CANDIDATE NEOANTIGEN AMINO ACID SEQUENCE WITH FLANKING RESIDUES",
6870
"RESTRICTING HLA ALLELE", "CANDIDATE NEOANTIGEN AMINO ACID SEQUENCE MW (CLIENT)", "Comments"]]
6971

70-
Peptide_file_name = args.samp + "_Peptides_51-mer.xlsx"
72+
if args.WB:
73+
Peptide_file_name = args.WB + '/../manual_review/' + args.samp + "_Peptides_51-mer.xlsx"
74+
else:
75+
Peptide_file_name = args.samp + "_Peptides_51-mer.xlsx"
76+
7177
peptides.to_excel(Peptide_file_name, index=False)
7278

73-
Neoantigen_Canidates_file_name = args.samp + ".Annotated.Neoantigen_Candidates.xlsx"
74-
reviewed_canidates.to_excel( Neoantigen_Canidates_file_name, index=False)
79+
if args.WB:
80+
Neoantigen_Canidates_file_name = args.WB + '/../manual_review/' + args.samp + ".Annotated.Neoantigen_Candidates.xlsx"
81+
else:
82+
Neoantigen_Canidates_file_name = args.samp + ".Annotated.Neoantigen_Candidates.xlsx"
83+
84+
reviewed_canidates.to_excel(Neoantigen_Canidates_file_name, index=False)
7585

7686

7787
if __name__ == "__main__":
78-
main()
88+
main()

0 commit comments

Comments
 (0)