Last active
August 21, 2023 11:58
-
-
Save epaule/e63b14072ca825aef23a72d9d2250dd5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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