-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
executable file
·27 lines (21 loc) · 1 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python
from wiki import tasks
from pymongo import MongoClient
from application_settings import mongo_database
# get mongo client and database
client = MongoClient()
db = client[mongo_database]
print("Generating Module Settings")
tasks.generate_module_settings()
tasks.generate_application_settings()
tasks.generate_strains()
tasks.generate_tax_map()
print("Generating Reference Genomes")
tasks.generate_org_list() # generate the list of organisms in json so front end can access easily
tasks.generate_jbrowse_data() # generate the core Jbrowse data (ref seq and gene annotations)
print("Generating Genes")
tasks.update_jbrowse_genes() # update the jbrowse instance with wikidata gene data related to the taxids
print("Generating Mutant Data")
tasks.update_jbrowse_mutants() # update the jbrowse instance with mongo mutant data related to the taxids
print("Generating Operon Data")
tasks.update_jbrowse_operons() # update the jbrowse instance with wikidata operon data related to the taxids