-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from paulzierep/add-all-public-servers
Add all public servers
- Loading branch information
Showing
4 changed files
with
135 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import argparse | ||
|
||
import pandas as pd | ||
import requests | ||
|
||
|
||
def get_public_galaxy_servers(output: str) -> None: | ||
""" | ||
Get public galaxy servers, that can be queried for tools using their API | ||
:param output: path to output the server list tsv | ||
""" | ||
|
||
to_process = {} | ||
serverlist = requests.get("https://galaxyproject.org/use/feed.json").json() | ||
for server in serverlist: | ||
|
||
print(server["title"]) | ||
# We intentionally drop all usegalaxy.eu subdomains. They're all the | ||
# same as the top level domain and just pollute the supported instances | ||
# list. | ||
if ".usegalaxy.eu" in server["url"]: | ||
continue | ||
# Apparently the french do it too | ||
if ".usegalaxy.fr" in server["url"]: | ||
continue | ||
# The aussies will soon | ||
if ".usegalaxy.org.au" in server["url"]: | ||
continue | ||
# No test servers permitted | ||
if "test." in server["url"]: | ||
continue | ||
|
||
galaxy_url = server["url"] | ||
galaxy_url = galaxy_url.rstrip("/") | ||
base_url = f"{galaxy_url}/api" | ||
|
||
try: | ||
r = requests.get(f"{base_url}/tools", params={"in_panel": False}, timeout=30) | ||
r.raise_for_status() | ||
r.json() | ||
except Exception as ex: | ||
print(f"Exception:\n{ex} \nfor server {galaxy_url}!") | ||
continue | ||
|
||
to_process[server["title"]] = server["url"] | ||
|
||
s = pd.Series(to_process) | ||
s.index.name = "name" | ||
s.name = "url" | ||
s.to_csv(output, sep="\t") | ||
|
||
|
||
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser(description="Create list of public available galaxy servers") | ||
|
||
parser.add_argument( | ||
"--output", | ||
"-o", | ||
required=True, | ||
help="Path to output TSV file with the servers", | ||
) | ||
|
||
args = parser.parse_args() | ||
get_public_galaxy_servers(args.output) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name url | ||
ANASTASIA http://motherbox.chemeng.ntua.gr/anastasia_dev/ | ||
APOSTL http://apostl.moffitt.org/ | ||
ARGs-OAP http://smile.hku.hk/SARGs | ||
BF2I-MAP http://bf2i-galaxy.insa-lyon.fr:8080/ | ||
BioBix http://galaxy.ugent.be/ | ||
CIRM-CFBP https://iris.angers.inra.fr/galaxypub-cfbp | ||
Center for Phage Technology (CPT) https://cpt.tamu.edu/galaxy-public/ | ||
ChemFlow https://vm-chemflow-francegrille.eu/ | ||
Coloc-stats https://hyperbrowser.uio.no/coloc-stats | ||
CorGAT http://corgat.cloud.ba.infn.it/galaxy | ||
CropGalaxy http://cropgalaxy.excellenceinbreeding.org/ | ||
Dintor http://dintor.eurac.edu/ | ||
FreeBioinfo http://www.freebioinfo.org/ | ||
GASLINI http://igg.cloud.ba.infn.it/galaxy | ||
Galaxy@AuBi https://galaxy.mesocentre.uca.fr | ||
Galaxy@Pasteur https://galaxy.pasteur.fr/ | ||
GalaxyTrakr https://galaxytrakr.org/ | ||
Genomic Hyperbrowser http://hyperbrowser.uio.no/hb/ | ||
GigaGalaxy http://gigagalaxy.net/ | ||
HyPhy HIV NGS Tools https://galaxy.hyphy.org/ | ||
IPK Galaxy Blast Suite https://galaxy-web.ipk-gatersleben.de | ||
ImmPort Galaxy https://www.immportgalaxy.org/ | ||
InteractoMIX http://galaxy.interactomix.com/ | ||
MISSISSIPPI https://mississippi.sorbonne-universite.fr | ||
Mandoiu Lab https://neo.engr.uconn.edu/ | ||
MiModD NacreousMap http://mapping-by-sequencing.vm.uni-freiburg.de:8080/ | ||
Oqtans http://galaxy.inf.ethz.ch | ||
Palfinder https://palfinder.ls.manchester.ac.uk/ | ||
PepSimili http://pepsimili.e-nios.com:8080/ | ||
PhagePromotor https://galaxy.bio.di.uminho.pt/ | ||
Protologger http://protologger.de/ | ||
UseGalaxy.be https://usegalaxy.be/ | ||
UseGalaxy.cz https://usegalaxy.cz/ | ||
UseGalaxy.eu https://usegalaxy.eu | ||
UseGalaxy.fr https://usegalaxy.fr/ | ||
UseGalaxy.no https://usegalaxy.no/ | ||
UseGalaxy.org (Main) https://usegalaxy.org | ||
UseGalaxy.org.au https://usegalaxy.org.au |