Skip to content

Commit

Permalink
output proximal variants tsv
Browse files Browse the repository at this point in the history
  • Loading branch information
Evelyn Schmidt committed Apr 9, 2024
1 parent 9751636 commit 79c9189
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pvactools/tools/pvacseq/generate_protein_fasta.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ def main(args_input = sys.argv[1:]):

temp_dir = tempfile.mkdtemp()
proximal_variants_tsv = convert_vcf(args.input_vcf, temp_dir, args.sample_name, args.phased_proximal_variants_vcf, args.flanking_sequence_length, args.pass_only)
if proximal_variants_tsv is not None:
proximal_variants_file = "{}.proximal_variants.tsv".format(args.output_file)
with open(proximal_variants_tsv, 'r') as input_file:
with open(proximal_variants_file, 'w', newline='') as output_file:
output_file.write(input_file.read())

generate_fasta(args.flanking_sequence_length, downstream_sequence_length, temp_dir, proximal_variants_tsv)
parse_files(args.output_file, temp_dir, args.mutant_only, args.input_tsv, args.aggregate_report_evaluation)
shutil.rmtree(temp_dir, ignore_errors=True)
Expand Down

0 comments on commit 79c9189

Please sign in to comment.