Convert GENEActiv file to json for use in https://github.com/NLeSC/eEcology-Annotation-UI
R libraries:
- GENEAread
- littler
- docopt
Convert GENEActiv file to json for use in https://github.com/NLeSC/eEcology-Annotation-UI
R libraries:
| """Script to swap donor/acceptor in pharmacophore database file | |
| original enum is | |
| Enum({'LIPO': 0, 'POSC': 1, 'HACC': 4, 'NEGC': 2, 'AROM': 5, 'HDON': 3}) | |
| corrected enum is | |
| Enum({'LIPO': 0, 'POSC': 1, 'HACC': 3, 'NEGC': 2, 'AROM': 5, 'HDON': 4}) | |
| """ | |
| import sys |
. ~/miniconda3/bin/activate rsd
# in new shell
git clone [email protected]:research-software-directory/auth-github.git
cd auth-github
# Created Github oauth app with http://localhost:8000 as callback
# Filled .env with random JWT_SECRET and GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET
pip install -r requirements.txt
export $(cat .env | xargs)
python app.py| #!/usr/bin/env python3 | |
| import argparse | |
| import os | |
| import yaml | |
| from ecmwfapi import ECMWFDataServer | |
| parser = argparse.ArgumentParser(description=''' | |
| Script to download era-interim files so it can be cmorized and used by esmvaltool recipes. |
| def simfun1(factor=3.0): | |
| # just some nonsense to demonstrate usage of a parameter | |
| # when comparing 2 spectrums | |
| def implementation(spectrum, reference_spectrum): | |
| print(spectrum) | |
| print(reference_spectrum) | |
| print(factor) | |
| return (max(spectrum) + max(reference_spectrum) ) * factor; |
| [tool.poetry] | |
| name = "evaluate-gc" | |
| version = "0.1.0" | |
| description = "" | |
| authors = ["Stefan Verhoeven <[email protected]>"] | |
| [tool.poetry.dependencies] | |
| python = "^3.6" | |
| celery = {extras = ["redis"], version = "^4.4.5"} |
| { | |
| "$schema": "https://vega.github.io/schema/vega-lite/v4.json", | |
| "width": 800, | |
| "height": 600, | |
| "layer": [ | |
| { | |
| "data": {"sequence": {"start": -20, "stop": 20, "step": 0.1, "as": "x"}}, | |
| "transform": [ | |
| { | |
| "calculate": "datum.x * datum.x * datum.x - datum.x * datum.x + 2", |
| { | |
| "$schema": "https://vega.github.io/schema/vega-lite/v4.json", | |
| "width": 800, | |
| "height": 600, | |
| "title": {"text": "2x^3 - 4x^2 + 6", "fontSize": 20, "fontWeight": "normal"}, | |
| "layer": [ | |
| { | |
| "data": {"sequence": {"start": -4, "stop": 4, "step": 0.1, "as": "x"}}, | |
| "transform": [ | |
| { |