Skip to content

Instantly share code, notes, and snippets.

View robsyme's full-sized avatar

Robert Syme robsyme

View GitHub Profile
@robsyme
robsyme / main.nf
Created March 28, 2024 22:47
Publishing oddities
#!/usr/bin/env nextflow
params.outdir = 'results'
params.all = false
workflow {
First()
First.out.value | Second
Second.out.value | Third
@robsyme
robsyme / main.nf
Created March 28, 2024 22:11
Publication behaviour example
#!/usr/bin/env nextflow
params.outdir = 'results'
params.all = false
workflow {
First()
First.out.value | Second
Second.out.value | Third
process A {
input: val(name)
output: tuple val(name), path("*")
script: "echo hello $name > greeting.${name}.txt"
}
process B {
input: val(name)
output: tuple val(name), path("*")
script: "echo goodbye $name > farewell.${name}.txt"
#!/usr/bin/env nextflow
nextflow.enable.dsl=2
nextflow.preview.recursion=true
params.input = 'data/*.dat'
process ScannerLightly {
input:
path datfile_accumulator
val meta_accumulator
@robsyme
robsyme / bar
Created September 9, 2022 21:22
#!/usr/bin/env ruby
require 'json'
require 'optparse'
options = {}
OptionParser.new do |opt|
opt.on('--report FILENAME') { |report| options[:report] = report }
end.parse!
@robsyme
robsyme / main.nf
Last active August 23, 2022 19:57
process A {
input:
val(i)
output:
path("output.${i}.txt")
"echo hello $i > output.${i}.txt"
}
class Dog {
final String name
Dog(String name) {
this.name = name
}
@Override
public int hashCode() {
return name.hashCode()
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="pandoc" />
##gff-version 3
##sequence-region tig00000000_pilon 14405 1977269
tig00000000_pilon CodingQuarry_v2.0 gene 14405 16426 . - . ID=gene1
tig00000000_pilon CodingQuarry_v2.0 mRNA 14405 16426 . - . ID=mRNA1;Parent=gene1
tig00000000_pilon CodingQuarry_v2.0 CDS 14405 16426 . - 0 Parent=mRNA1
tig00000000_pilon CodingQuarry_v2.0 exon 14405 16426 . - 0 ID=exon1;Parent=mRNA1
###
tig00000000_pilon CodingQuarry_v2.0 gene 17153 17833 . - . ID=gene2
tig00000000_pilon CodingQuarry_v2.0 mRNA 17153 17833 . - . ID=mRNA2;Parent=gene2
tig00000000_pilon CodingQuarry_v2.0 CDS 17153 17460 . - 2 ID=CDS1;Parent=mRNA2

Keybase proof

I hereby claim:

  • I am robsyme on github.
  • I am robsyme (https://keybase.io/robsyme) on keybase.
  • I have a public key whose fingerprint is C9C5 F0B0 0EC8 640C 9C14 F801 E93F 3A5D D673 2355

To claim this, I am signing this object: