LyonsLab / coge

CoGe (Comparative Genomics) Platform
http://genomevolution.org
BSD 2-Clause "Simplified" License
44 stars 20 forks source link

Add option to SynMap to clear cached results/files for admins #81

Closed elyons closed 4 years ago

elyons commented 4 years ago

When a synmap analysis fails, it is often due to a problem generating one of the intermediate files required for the workflow. E.g., fasta file of CDS sequences, blast databases, etc. We have been manually going to server to find and delete these files when there is a bad analysis reported. Want an admin button to do this:

rm /scratch/coge/cache/fasta/$genomeID rm -r /scratch/coge/cache/last/db/$genomeID or rm -r /scratch/coge/cache/blast/db/$genomeID rm /opt/apache2/coge/web/data/fasta/$genomeID rm -r /opt/apache2/coge/web/data/diags/*****/$genomeID

elyons commented 4 years ago

This has been completed. There is a new script in "scripts" called clean_up_bad_synmap.pl to do this. There is new feature added to SynMap that if the user is an admin and the CGI parameter "clean=1" is added to the URL, the results from all old analyses using the specified genome IDs will be deleted from the system.