This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import os | |
| import sys | |
| import yaml | |
| import argparse | |
| from jinja2 import Template | |
| from pprint import pprint | |
| def render_template(template, values): |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import os | |
| import sys | |
| import json | |
| import requests | |
| KB = 1024 | |
| MB = KB * KB | |
| GB = MB * KB |
This file contains hidden or 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
| job_id | tool_id | tool_version | state | memory.max_usage_in_bytes | cpuacct.usage | process_count | galaxy_slots | runtime_seconds | ref_data_size | input_data_size | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| ce4eadcc6a9dc62d | toolshed.g2.bx.psu.edu/repos/iuc/hisat2/hisat2/2.1.0+galaxy7 | 2.1.0+galaxy7 | ok | 10230325248.0000000 | 1524636164586.0000000 | 32.0000000 | 1.0000000 | 1467.0000000 | 0 | 1407644464 | |
| b944eb0f5f220e64 | toolshed.g2.bx.psu.edu/repos/iuc/minimap2/minimap2/2.24+galaxy0 | 2.24+galaxy0 | ok | 23552430080.0000000 | 1284559376976.0000000 | 32.0000000 | 1.0000000 | 1242.0000000 | 0 | 1407644464 | |
| 8510271abb9e802c | toolshed.g2.bx.psu.edu/repos/devteam/bowtie2/bowtie2/2.4.2+galaxy0 | 2.4.2+galaxy0 | ok | 8763760640.0000000 | 5420490778352.0000000 | 32.0000000 | 1.0000000 | 5462.0000000 | 0 | 1407644464 | |
| 7c2d1b475743f5b6 | toolshed.g2.bx.psu.edu/repos/devteam/bwa/bwa_mem/0.7.17.1 | 0.7.17.1 | ok | 12500324352.0000000 | 9858370786969.0000000 | 32.0000000 | 1.0000000 | 9451.0000000 | 0 | 1407644464 |
This file contains hidden or 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
| # ANSI color codes for the console. | |
| reset="\033[0m" | |
| bold="\033[1m" | |
| ital="\033[3m" # does not work on OS X | |
| # Function used to highlight text. | |
| function hi() { | |
| echo -e "$bold$@$reset" | |
| } |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Use this script to update the GalaxyKubeman Helm chart versions in Leo | |
| # | |
| # Put this script on your path and run from the root Leonardo source directory. | |
| # > cd /home/user/leonardo | |
| # | |
| # USAGE | |
| # > bumpleo <new version> | |
| # |
This file contains hidden or 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 script is loosely based on https://github.com/galaxyproject/bioblend/blob/main/docs/examples/run_imported_workflow.py | |
| TO-DO | |
| 1. Allow the user to specify an output history. | |
| 2. Maybe allow the user to specify a URL to data that should be uploaded to | |
| the server to be used as input to the workflow. | |
| 3. Don't assume the name of the input parameter is 'input' | |
| usage: workflows.py [-h] [-s SERVER] [-a API_KEY] -w WORKFLOW -d DATASET |
This file contains hidden or 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
| #!/bin/bash | |
| # gxadmin: Galaxy administration swiss army knife | |
| # license: GPLv3 | |
| # | |
| # This is the result of admins across the universe working together :) | |
| # | |
| # Thanks to everyone for their contributions | |
| # https://github.com/galaxyproject/gxadmin/graphs/contributors | |
| version() { | |
| echo 19 |
This file contains hidden or 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
| tools: | |
| - name: sra_tools | |
| owner: iuc | |
| revisions: | |
| - f5ea3ce9b9b0 | |
| - e08a7ad4378b | |
| tool_panel_section_label: Get Data | |
| tool_shed_url: toolshed.g2.bx.psu.edu | |
| - name: ncbi_acc_download | |
| owner: iuc |
This file contains hidden or 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
| { | |
| "embeddings": [ | |
| { | |
| "tensorName": "Covid-19 Dataset", | |
| "tensorShape": [ | |
| 1000, | |
| 50 | |
| ], | |
| "tensorPath": "https://www.lappsgrid.org/tensors/model300_5_5_50_cbow_abs_intro.tsv", | |
| "metadataPath": "https://www.lappsgrid.org/tensors/metadata.txt" |
This file contains hidden or 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
| secret=`cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c${1:-16};echo;` | |
| echo $secret | |
| # If tr complains about illegal byte sequences it is because tr can not handle UTF-8 characters. | |
| # The solution is to specify the C locale for tr | |
| secret=`cat /dev/urandom | LC_ALL=C tr -dc _A-Z-a-z-0-9 | head -c${1:-16};echo;` | |
| echo $secret |