Current format:
adapter:
baseCmd: []
...
Proposal:
COUPLING_TYPES = '1JHC', '1JHN', '2JHC', '2JHH', '2JHN', '3JHC', '3JHH', '3JHN | |
def get_preds(g): | |
labeled = g.edata['coupling_type'] != -1 | |
preds = g.edata['emb'][labeled].view(-1) | |
truth = g.edata['coupling'][labeled] | |
types = g.edata['coupling_type'][labeled] | |
return preds, truth, types | |
from functools import partial |
cwlVersion: v1.0 | |
class: CommandLineTool | |
baseCommand: echo | |
inputs: | |
in: | |
type: string[] | |
inputBinding: {} | |
outputs: | |
out: | |
type: stdout |
Current format:
adapter:
baseCmd: []
...
Proposal:
Current format:
inputs:
type: object
required: [reference, reads]
properties:
reference:
type: file
adapter:
# CLOSURES IN RUBY Paul Cantrell http://innig.net | |
# Email: username "cantrell", domain name "pobox.com" | |
# I recommend executing this file, then reading it alongside its output. | |
# | |
# Alteratively, you can give yourself a sort of Ruby test by deleting all the comments, | |
# then trying to guess the output of the code! | |
# A closure is a block of code which meets three criteria: | |
# |