Skip to content

Commit

Permalink
Generate proviral_landscape for HIVIntact runs too
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaim committed Jul 21, 2023
1 parent 6ad62bd commit 7e15cf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gene_splicer/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def main():
for file in fasta_files:
gene_splicer.run(file, outdir=outpath)
utils.generate_table_precursor(name=run_name, outpath=outpath)
utils.generate_proviral_landscape_csv(outpath)
utils.generate_proviral_landscape_csv(outpath, is_hivintact=args.hivintact)
copy_output(outpath / 'outcome_summary.csv', args.outcome_summary_csv)
copy_output(outpath / (run_name + '_conseqs_primer_analysis.csv'),
args.conseqs_primers_csv)
Expand Down
4 changes: 3 additions & 1 deletion gene_splicer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,12 +558,14 @@ def generate_table_precursor_2(hivseqinr_resultsfile, filtered_file,
return table_precursorfile


def generate_proviral_landscape_csv(outpath):
def generate_proviral_landscape_csv(outpath, is_hivintact):
proviral_landscape_csv = os.path.join(outpath, 'proviral_landscape.csv')
landscape_rows = []

table_precursor_csv = os.path.join(outpath, 'table_precursor.csv')
blastn_csv = glob.glob(
os.path.join(outpath, 'hivintact*', 'blast.tsv') \
if is_hivintact else \
os.path.join(
outpath,
'hivseqinr*',
Expand Down

0 comments on commit 7e15cf0

Please sign in to comment.