Skip to content

Instantly share code, notes, and snippets.

View ewels's full-sized avatar

Phil Ewels ewels

View GitHub Profile
@ewels
ewels / trace2json.py
Created September 14, 2017 15:17
Convert Nextflow Trace text file to JSON format
#!/usr/bin/env python
# Convert Nextflow text file to JSON format
import json
headers = []
data = {'trace': []}
with open ('NGI-RNAseq_trace.txt') as fh:
for l in fh:
s = l.split("\t")
@ewels
ewels / cytobands.pl
Created September 17, 2014 07:31
Cytoband Coordinate Converter
#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser); # pipe errors to the browser instead of the terminal for debugging
use warnings;
use strict;
use Data::Dumper;
#print Dumper(\%args);
print "Content-type: text/plain\n\n";
#############################################################
# Name: Cytobands - Coordinates: Online Version #
@ewels
ewels / NF_logo.png
Created June 14, 2017 15:16
NextFlow Multipart HTML Emails
Save NextFlow logo as this file.
@ewels
ewels / command.sh
Last active March 19, 2023 16:15
Analyse @nf-core AWS s3 storage
aws s3 ls s3://nf-core-awsmegatests --recursive > files.txt
@ewels
ewels / streamyard_hotkeys.js
Created March 1, 2024 09:22
StreamYard UserScript to add missing hotkeys
// ==UserScript==
// @name StreamYard overlay/music hotkeys
// @namespace https://phil.ewels.co.uk/
// @version 2024-02-29
// @description Add missing hotkeys for StreamYard
// @author Phil Ewels
// @match https://streamyard.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=streamyard.com
// @grant none
// ==/UserScript==