1. Introduction to SeqWare
  2. Installation
  3. Getting Started
  4. SeqWare Pipeline
  5. SeqWare MetaDB
  6. SeqWare Portal
  7. SeqWare Web Service
  8. SeqWare Query Engine
  9. Glossary
  10. Frequently Asked Questions
  11. APIs
  12. Source Code
  13. Plugins
  14. Modules
  15. Advanced Topics

Attribute Annotator

The Attribute Annotator is a SeqWare plugin that allow you to annotate Lanes, IUSes and Sequencer Runs with Key-Value pairs or ‘skip’ fields. The ‘skip’ field is a boolean that indicates to a decider that the results from that lane, IUS or sequencer run should be skipped in downstream annotation. When the ‘skip’ field is enabled through this plugin, a key-value pair can also be added that describes the reason for skipping the lane, ius or sequencer run. Alternatively, this plugin also allows an object to be annotated with any key-value pair.

Requirements

In order to run the WorkflowRunReporter plugin, you must have the following available to you:

  • SeqWare Pipeline JAR (0.11.4 or higher)
  • SeqWare settings file set up to contact the SeqWare Web service (contact your local SeqWare admin to get the path)

Command line parameters

You can annotate the following attributes:

Command-line option Description
–sequencer-run-accession, -sr The SWID of the sequencer run to annotate.
–lane-accession, -l The SWID of the lane to annotate.
–ius-accession, -i The SWID of the ius to annotate.
–experiment-accession, -e The SWID of the experiment to annotate.
–processing-accession, -p The SWID of the processing to annotate.
–sample-accession, -s The SWID of the sample to annotate.
–study-accession, -st The SWID of the study to annotate.
–workflow-accession, -w The SWID of the workflow to annotate.
–workflow-run-accession, -wr The SWID of the workflow run to annotate.
–skip Sets the ‘skip’ flag to either true or false
–key The key that defines this attribute. The default value is ‘skip’.
–value The description of this key. If not specified, no attribute will be created.
–file A CSV file that with multiple TYPE, SWID, KEY, VALUE

There are four ways to use this plugin

  • Annotate an attribute with ‘skip’
  • Annotate an attribute with ‘skip’ and a description
  • Annotate an attribute with a key-value pair
  • Bulk annotate attributes with a CSV file

Examples

Set the ‘skip’ value of lane with SWID 1234 to ‘true’. No key-value annotations are added.

java -jar seqware-distribution/target/seqware-distribution-1.1.0-full.jar --plugin net.sourceforge.seqware.pipeline.plugins.AttributeAnnotator -- --lane-accession 1234 --skip true

Set the ‘skip’ value of sequencer run with SWID 3456 to ‘true’ and enter a key-value pair with the key “skip” and value “Improperly entered into the LIMS”. Notice that the key is not specified but defaults to ‘skip’.

java -jar seqware-distribution/target/seqware-distribution-1.1.0-full.jar --plugin net.sourceforge.seqware.pipeline.plugins.AttributeAnnotator -- --sequencer-run-accession 3456 --skip true --value "Improperly entered into the LIMS"

Annotate the IUS with SWID 2345 with a key-value pair of key “dual-barcodes” and value “barcode 1”. The ‘skip’ field is not affected.

java -jar seqware-distribution/target/seqware-distribution-1.1.0-full.jar --plugin net.sourceforge.seqware.pipeline.plugins.AttributeAnnotator -- --ius-accession 2345 --key "dual-barcodes" --value "barcode 1"

Bulk insert attribute annotation with file

java -jar seqware-distribution/target/seqware-distribution-1.1.0-full.jar --plugin net.sourceforge.seqware.pipeline.plugins.AttributeAnnotator -- --file file.csv

The file is in CSV format

e,106288,t11,v11
e,106288,t21,v21
e,106288,t31,v11
e,1234,key1,value1
s,1000,key1,value1
st,321,key1,value1

View the annotated attributes

To check the attribute annotation, you can use the similar URI. See http://seqware.github.com/seqware/ for more detail.

http://host:port/seqware-webservice/lanes/{swid}?show=attributes