view mcm_final.sh @ 0:c14690ec0c9f draft

"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/mauve_contig_mover commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
author brinkmanlab
date Fri, 24 Jan 2020 17:43:19 -0500
parents
children
line wrap: on
line source

#!/usr/bin/env bash
ln -sf output/`ls -1 output | tail -n1` final
mv "`ls -1 final/*.backbone | tail -n1`" final.backbone
mv "`ls -1 final/*_contigs.tab | tail -n1`" final.contigs.tab
mv "`ls -1 final/*.fas | tail -n1`" final.reordered

FEATURES="`ls -1 final/*_features.tab 2>/dev/null | tail -n1`"
if [[ -w ${FEATURES} ]]; then
mv "${FEATURES}" final.features.tab
fi