Skip to content

Commit

Permalink
refine_assembly -- update to sanitize fasta headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Sep 19, 2024
1 parent a5a6b7a commit 044cd22
Showing 1 changed file with 3 additions and 2 deletions.
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 044cd22

Please sign in to comment.