Skip to content

Instantly share code, notes, and snippets.

@epaule
Last active August 21, 2023 11:58
Show Gist options
  • Save epaule/e63b14072ca825aef23a72d9d2250dd5 to your computer and use it in GitHub Desktop.
Save epaule/e63b14072ca825aef23a72d9d2250dd5 to your computer and use it in GitHub Desktop.
#!/bin/bash
# simple files
for f in *.bed *.contamination *recommendation *report.txt *taxonomy.rpt */*/*combined_summary.csv *.fa *.gb
do
perl -i_original -pne 's/scaffold_/SCAFFOLD_/' $f
done
# compressed fastas
for f in *.gz
do
zcat $f | perl -pne 's/scaffold_/SCAFFOLD_/' | gzip -9 -c > "${f%.gz}_new"
mv $f "${f%.gz}_original.gz"
mv "${f%.gz}_new" $f
done
cbNecPumi1 - done
xcThyRhom1 - done
glLicPygm2 - done (need to tell Yumi)
ilLysCori56 - done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment