Skip to content

Commit

Permalink
Merge pull request #49 from broadinstitute/dp-fasta-handling
Browse files Browse the repository at this point in the history
refine_assembly: tolerate whitespace in fasta headers
  • Loading branch information
dpark01 authored Sep 20, 2024
2 parents a5a6b7a + f0685b4 commit 42f3182
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/broadinstitute/viral-core:2.3.5
FROM quay.io/broadinstitute/viral-core:2.3.6

LABEL maintainer "[email protected]"

Expand Down
5 changes: 3 additions & 2 deletions assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,9 +915,10 @@ def refine_assembly(
novoalign = tools.novoalign.NovoalignTool(license_path=novoalign_license_path)
gatk = tools.gatk.GATKTool(path=gatk_path)

# Create deambiguated genome for GATK
# Sanitize fasta header & create deambiguated genome for GATK
deambigFasta = util.file.mkstempfname('.deambig.fasta')
deambig_fasta(inFasta, deambigFasta)
with util.file.fastas_with_sanitized_ids(inFasta, use_tmp=True) as sanitized_fastas:
deambig_fasta(sanitized_fastas[0], deambigFasta)
picard_index.execute(deambigFasta, overwrite=True)
samtools.faidx(deambigFasta, overwrite=True)

Expand Down

0 comments on commit 42f3182

Please sign in to comment.