statgen / pheweb

A tool to build a website to browse hundreds or thousands of GWAS.
MIT License
154 stars 65 forks source link

Remove a phenotype #154

Closed jgrundstad closed 3 years ago

jgrundstad commented 3 years ago

Is there a way to cleanly remove a problematic phenotype from a completed instance? I attempted to remove from pheno-list.json and ended up getting errors when searching by gene:

"Error: Sorry, your region requested for phenocode 'bad-pheno' and gene 'GENE1' didn't work.

pjvandehaar commented 3 years ago

Remove the bad pheno from pheno-list.json and then run:

rm generated-by-pheweb/matrix*
rm generated-by-pheweb/top*
rm generated-by-pheweb/phenotypes.json
rm generated-by-pheweb/best*
rm generated-by-pheweb/sites/*marisa  # exists on some pheweb versions
rm generated-by-pheweb/sites/*sqlite3  # exists on some pheweb versions
pheweb process

This leaves some unused files from the old phenotype littered around but that's fine.

Let me know if this doesn't work for you.