Skip to content

Instantly share code, notes, and snippets.

View mr-c's full-sized avatar

Michael R. Crusoe mr-c

View GitHub Profile
@mr-c
mr-c / raw-reads-wf--v.5-cond_inputs_schema.py
Last active October 7, 2022 08:55
cwltool --print-input-schema examples for MGnify workflows & tools
#
# This file was autogenerated using schema-salad-tool --codegen=python
# The code itself is released under the Apache 2.0 license and the help text is
# subject to the license of the original schema.
import copy
import logging
import os
import pathlib
import re
import tempfile
{
"$graph": [
{
"class": "Workflow",
"requirements": [
{
"class": "MultipleInputFeatureRequirement"
}
],
"inputs": [
Sending build context to Docker daemon 4.036MB
Step 1/7 : FROM docker.io/ubuntu:focal-20220426
---> 53df61775e88
Step 2/7 : RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gcc python3-dev python3-pip nodejs curl libgl1 libegl1
---> Using cache
---> ee5fc7d4cfa6
Step 3/7 : RUN pip3 install cwltool[deps]
---> Using cache
@mr-c
mr-c / cwl-runner
Last active February 4, 2023 09:21
Guide to install and use `toil-cwl-runner` on Snellius
#!/bin/bash
# Convenience for executing Common Workflow Language workflows on the Snellius supercomputer
# using toil-cwl-runner from http://toil.ucsc-cgl.org/
# This script accepts all toil-cwl-runner options:
# https://toil.readthedocs.io/en/latest/running/cwl.html#detailed-usage-instructions
# Example usage:
# cwl-runner my_workflow.cwl my_inputs.yaml
# will read the CWL workflow description "my_workflow.cwl" using the inputs specified
@mr-c
mr-c / gitter-backup.sh
Last active July 28, 2021 10:18 — forked from dale3h/gitter-backup.sh
Perform local backups of Gitter.im chat rooms.
#!/bin/bash
#
# Perform local backups of Gitter.im chat rooms.
GITTER_ARCHIVE_URL="https://gitter.im/%s/archives/%s"
usage() {
echo "usage: $(basename $0) -f -r <chat-room> [-o <output-dir>] [-s <YYYY/MM/DD>] [-e <YYYY/MM/DD>]" 1>&2
exit 1
}
This file has been truncated, but you can view the full file.
I: Running in no-targz mode
I: pbuilder: network access will be disabled during build
I: Current time: Wed Nov 25 12:48:20 CET 2020
I: pbuilder-time-stamp: 1606304900
I: copying local configuration
W: --override-config is not set; not updating apt.conf Read the manpage for details.
I: mounting /proc filesystem
I: mounting /sys filesystem
I: creating /{dev,run}/shm
@mr-c
mr-c / picard-tools_2.23.8+dfsg-1_arm64.build
Last active November 17, 2020 17:52
Picard without GKL build failure
I: Running in no-targz mode
I: pbuilder: network access will be disabled during build
I: Current time: Tue Nov 17 18:41:58 CET 2020
I: pbuilder-time-stamp: 1605634918
I: copying local configuration
W: --override-config is not set; not updating apt.conf Read the manpage for details.
I: mounting /proc filesystem
I: mounting /sys filesystem
I: creating /{dev,run}/shm
I: mounting /dev/pts filesystem
@mr-c
mr-c / gkl_0.8.6+dfsg-2_arm64.build
Last active November 17, 2020 17:53
GKL on arm64 build failure
I: Running in no-targz mode
I: pbuilder: network access will be disabled during build
I: Current time: Tue Nov 17 18:32:33 CET 2020
I: pbuilder-time-stamp: 1605634353
I: copying local configuration
W: --override-config is not set; not updating apt.conf Read the manpage for details.
I: mounting /proc filesystem
I: mounting /sys filesystem
I: creating /{dev,run}/shm
I: mounting /dev/pts filesystem
@mr-c
mr-c / build.log
Last active July 27, 2020 12:21
seqan 3.0.1 + gcc 10.2.0
This file has been truncated, but you can view the full file.
I: Running in no-targz mode
I: pbuilder: network access will be disabled during build
I: Current time: Mon Jul 27 13:19:25 CEST 2020
I: pbuilder-time-stamp: 1595848765
I: copying local configuration
W: --override-config is not set; not updating apt.conf Read the manpage for details.
I: mounting /proc filesystem
I: mounting /sys filesystem
I: creating /{dev,run}/shm
dpkg-buildpackage: info: source package simde
dpkg-buildpackage: info: source version 0.0.0.git.20200526-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Michael R. Crusoe <michael.crusoe@gmail.com>
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture ppc64el
debian/rules clean
dh clean --sourcedirectory=test --builddirectory=gcc_test
debian/rules override_dh_auto_clean
make[1]: Entering directory '/home/crusoe/simde-0.0.0.git.20200526'