Facebook
From Whipped Gibbon, 2 Months ago, written in Bash.
This paste is a reply to from - view diff
Embed
Download Paste or View Raw
Hits: 23
  1. cd /mnt/isilon/projects/ecosystem_biology/ONT_pilot/external_data
  2.  
  3. # aquifer
  4. # rm extracted LR data (archive stays)
  5. rm -rf aquifer/lr/2019012*_02um
  6. # rm not used SR data (only ERR3654041 is needed) [see issue 62]
  7. rm -r aquifer/sr/ERR3654040/
  8. # protect
  9. chmod -R a-w aquifer/
  10.  
  11. # eli
  12. # protect
  13. rm -r eli/
  14.  
  15. # ganes
  16. # Q: do we need ganges ???
  17. # rm all data
  18. rm -r ganges/
  19.  
  20. # mock (aka zymo)
  21. # rm LR data for "LOG"
  22. rm mock/lr/Zymo-GridION-LOG-BB-SN_signal.tar.gz
  23. # rm not used SR data (only ERR2984773 is needed) [???]
  24. rm -r mock/sr/ERR2935805/
  25. # rename folder
  26. mv mock zymo
  27. # protect
  28. chmod -R a-w zymo/
  29.  
  30. # nwc
  31. # protect
  32. chmod -R a-w nwc/
  33.  
  34. # rumen
  35. # protect
  36. chmod -R a-w rumen/
  37.  
  38. # all the other stuff:
  39. #   -> not needed as there is code to download the data
  40. # rm
  41. find . -maxdepth 1 -mindepth 1 | grep -v "aquifer\|eli\|mock\|nwc\|rumen\|zymo" | while read f
  42. do
  43.     rm -ri "${f}"
  44. done
  45.  
  46. # set the s-bit for all directories
  47. cd /mnt/isilon/projects/ecosystem_biology/ONT_pilot/
  48. find external_data/ -type d -exec chmod g+s {} \;