1
- import argparse
1
+ mport argparse
2
2
import csv
3
3
import pandas as pd
4
4
import sys
@@ -28,6 +28,8 @@ def parse_arguments():
28
28
help = 'The path to annotated_filtered.vcf-pass-51mer.fa.manufacturability.tsv from the generate_protein_fasta script' )
29
29
parser .add_argument ('-samp' ,
30
30
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' )
31
33
32
34
# The name of the final results folder
33
35
parser .add_argument ('-f' , "--fin_results" , help = "Name of the final results folder in gcp immuno" )
@@ -67,12 +69,20 @@ def main():
67
69
peptides = peptides [["ID" , "CANDIDATE NEOANTIGEN" , "CANDIDATE NEOANTIGEN AMINO ACID SEQUENCE WITH FLANKING RESIDUES" ,
68
70
"RESTRICTING HLA ALLELE" , "CANDIDATE NEOANTIGEN AMINO ACID SEQUENCE MW (CLIENT)" , "Comments" ]]
69
71
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
+
71
77
peptides .to_excel (Peptide_file_name , index = False )
72
78
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 )
75
85
76
86
77
87
if __name__ == "__main__" :
78
- main ()
88
+ main ()
0 commit comments