Skip to content

Commit

Permalink
add back log directive correcting split_fa dir
Browse files Browse the repository at this point in the history
  • Loading branch information
LiaOb21 committed Jan 3, 2024
1 parent 932dec1 commit c3fa673
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions workflow/rules/purge_dups.smk
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ rule run_purge_dups:
"logs/purge_dups.log"
shell:
"""
minimap2 -xasm20 {input.fasta} {input.reads} -t {config[minimap2][t]} | gzip -c - > hifi_vs_hifiasm_contigs.paf.gz
pbcstat hifi_vs_hifiasm_contigs.paf.gz
minimap2 -xasm20 {input.fasta} {input.reads} -t {config[minimap2][t]} | gzip -c - > hifi_vs_hifiasm_contigs.paf.gz >> {log} 2>&1
pbcstat hifi_vs_hifiasm_contigs.paf.gz >> {log} 2>&1
calcuts PB.stat > cutoffs 2>calcults.log
split_fa results/assemblies/hifiasm/hifiasm.asm.p_ctg.fa > hifiasm.asm.split
minimap2 -xasm5 -DP hifiasm.asm.split hifiasm.asm.split -t {config[minimap2][t]} | gzip -c - > hifiasm.split.self.paf.gz
split_fa results/hifiasm/hifiasm.asm.p_ctg.fa > hifiasm.asm.split >> {log} 2>&1
minimap2 -xasm5 -DP hifiasm.asm.split hifiasm.asm.split -t {config[minimap2][t]} | gzip -c - > hifiasm.split.self.paf.gz >> {log} 2>&1
purge_dups -2 -T cutoffs -c PB.base.cov hifiasm.split.self.paf.gz > dups.bed 2> purge_dups.log
get_seqs -e dups.bed results/hifiasm/hifiasm.asm.bp.p_ctg.fa > hifiasm_p_purged.fa
hist_plot.py -c cutoffs PB.stat hist.out.png
get_seqs -e dups.bed results/hifiasm/hifiasm.asm.bp.p_ctg.fa > hifiasm_p_purged.fa >> {log} 2>&1
hist_plot.py -c cutoffs PB.stat hist.out.png >> {log} 2>&1
mkdir -p results/purge_dups/
mv hifi_vs_hifiasm_contigs.paf.gz {output.paf}
Expand Down

0 comments on commit c3fa673

Please sign in to comment.