Skip to content

Commit

Permalink
fix: DRY
Browse files Browse the repository at this point in the history
  • Loading branch information
rroutsong committed Aug 22, 2024
1 parent 8ecc5e5 commit 8959ffd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions workflow/rules/DNA.smk
Original file line number Diff line number Diff line change
Expand Up @@ -449,15 +449,16 @@ rule cumulative_bin_stats:
done
# generate cumulative statistic report for binning
echo "genome\tcompleteness\tcontamination\tGC\tlineage\tN50\tsize\tbinner" > {output.cumulative_metabat2_stats}
FNs="genome\tcompleteness\tcontamination\tGC\tlineage\tN50\tsize\tbinner"
echo $FNs > {output.cumulative_metabat2_stats}
for report in `ls {params.refine_dir}/*/named_maxbin2_bins.stats`; do
tail -n+2 $report >> {output.cumulative_maxbin_stats}
done
echo "genome\tcompleteness\tcontamination\tGC\tlineage\tN50\tsize\tbinner" > {output.cumulative_metabat2_stats}
echo $FNs > {output.cumulative_metabat2_stats}
for report in `ls {params.refine_dir}/*/named_maxbin2_bins.stats`; do
tail -n+2 $report >> {output.cumulative_metabat2_stats}
done
echo "genome\tcompleteness\tcontamination\tGC\tlineage\tN50\tsize\tbinner" > {output.cumulative_metawrap_stats}
echo $FNs > {output.cumulative_metawrap_stats}
for report in `ls {params.refine_dir}/*/named_maxbin2_bins.stats`; do
tail -n+2 $report >> {output.cumulative_metawrap_stats}
done
Expand Down

0 comments on commit 8959ffd

Please sign in to comment.