Skip to content

Commit

Permalink
fixing header bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aineniamh committed Dec 1, 2023
1 parent 45fed5d commit 0732c03
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions piranha/report/make_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ def make_sample_report(report_to_generate,

info_dict = {} # keyed at ref- will need to mod if integrate haplo pipeline
sequences = ""


barcode_sample = ""
for record in SeqIO.parse(consensus_seqs,KEY_FASTA):

"""
Expand All @@ -66,7 +65,7 @@ def make_sample_report(report_to_generate,
description_dict[key] = value

if barcode == description_dict[KEY_BARCODE]:

barcode_sample = record_sample
sequences+= f">{record.description}<br>{record.seq}<br>"

# if plan to have more than one seq per ref group will need to modify this
Expand Down Expand Up @@ -176,7 +175,7 @@ def make_sample_report(report_to_generate,
date = date.today(),
version = __version__,
barcode = barcode,
sample = record_sample,
sample = barcode_sample,
data_for_report = data_for_report,
sequences = sequences,
LANGUAGE_CONFIG = LANGUAGE_CONFIG,
Expand Down

0 comments on commit 0732c03

Please sign in to comment.