View f.c
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
#include <stdio.h> | |
int main() { | |
int optind = 99, optreset = 98; | |
#if defined __GLIBC__ | |
/* glibc needs to have optind set to 0 instead of the "traditional | |
value" of 1 */ | |
optind = 0; | |
#else | |
/* 1 is the value that optind should be initialized to according to |
View sophia_test.go
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
package main | |
import ( | |
"fmt" | |
"log" | |
"unsafe" | |
sophia "github.com/pzhin/go-sophia" | |
) |
View rand-rule.lua
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
#!/usr/bin/env lua | |
math.randomseed(os.time()) | |
function string.random(length) | |
local t = {} | |
for i = 1,length do | |
table.insert(t, math.random(97,122)) | |
end | |
return string.char(unpack(t)) |
View test.nf
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
process test { | |
output: | |
file '*.out' into outfiles | |
""" | |
touch "test'file.out" | |
touch testfile2.out | |
""" | |
} |
View nextflow.log
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
Oct-10 09:48:10.629 [main] DEBUG nextflow.cli.Launcher - Setting http proxy: [wwwcache.sanger.ac.uk, 3128] | |
Oct-10 09:48:10.759 [main] DEBUG nextflow.cli.Launcher - Setting https proxy: [wwwcache.sanger.ac.uk, 3128] | |
Oct-10 09:48:10.760 [main] DEBUG nextflow.cli.Launcher - $> /nfs/users/nfs_s/ss34//nextflow -c /nfs/users/nfs_s/ss34/annot-nf/loc_we | |
b.config -c /www/ss34/annot-web/public/jobs/cb1584075907314fa80d0419/config run /nfs/users/nfs_s/ss34/annot-nf/annot.nf -resume --di | |
st_dir /www/ss34/annot-web/public/jobs/cb1584075907314fa80d0419 | |
Oct-10 09:48:10.760 [main] INFO nextflow.cli.CmdRun - N E X T F L O W ~ version 0.15.3 | |
Oct-10 09:48:10.760 [main] INFO nextflow.cli.CmdRun - Launching /nfs/users/nfs_s/ss34/annot-nf/annot.nf | |
Oct-10 09:48:10.780 [main] DEBUG nextflow.config.ConfigBuilder - Found config base: /nfs/users/nfs_s/ss34/annot-nf/nextflow.config | |
Oct-10 09:48:10.783 [main] DEBUG nextflow.config.ConfigBuilder - User config file: /nfs/users/nfs_s/ss34/annot-nf/loc_web.config | |
Oct-10 09:48:10.783 [mai |
View Vagrantfile
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "debian/jessie64" | |
config.vm.box_check_update = false | |
config.vbguest.auto_update = false | |
# Create a public network, which generally matched to bridged network. |
View bequeath.lua
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
#!/usr/bin/env gt | |
function usage() | |
io.stderr:write("Adds a given parent attribute to all child features.\n") | |
io.stderr:write(string.format("Usage: %s <attribute> < <GFF>\n" , arg[0])) | |
os.exit(1) | |
end | |
if #arg < 1 then | |
usage() |
View add_mrna.lua
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
#!/usr/bin/env gt | |
function usage() | |
io.stderr:write(string.format("Usage: %s <GFF annotation>\n" , arg[0])) | |
os.exit(1) | |
end | |
if #arg < 1 then | |
usage() | |
end |
View gist:51f1427d54cc42ec969a
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
#!/usr/bin/env ruby | |
if ARGV.length != 2 then | |
STDERR.puts "Usage: #{$0} <pfamfile> <directory>" | |
exit 1 | |
end | |
file = File.open(ARGV[0]).read | |
seen_accs = {} |
View gff3_to_json.lua
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
#!/usr/bin/env gt | |
function usage() | |
io.stderr:write(string.format("Usage: %s <GFF file>\n" , arg[0])) | |
os.exit(1) | |
end | |
if #arg < 1 then | |
usage() | |
os.exit(1) |
NewerOlder