-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from bmeg/more-docs
[WIP] Updates to the Docs
- Loading branch information
Showing
10 changed files
with
223 additions
and
416 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | ||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | ||
<channel> | ||
<title>Categories on Sifter</title> | ||
<link>https://bmeg.github.io/sifter/categories/</link> | ||
<description>Recent content in Categories on Sifter</description> | ||
<title>Categories on </title> | ||
<link>/categories/</link> | ||
<description>Recent content in Categories on </description> | ||
<generator>Hugo -- gohugo.io</generator> | ||
<language>en-us</language><atom:link href="https://bmeg.github.io/sifter/categories/index.xml" rel="self" type="application/rss+xml" /> | ||
<language>en</language> | ||
<atom:link href="/categories/index.xml" rel="self" type="application/rss+xml" /> | ||
</channel> | ||
</rss> |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | ||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | ||
<channel> | ||
<title>Tags on Sifter</title> | ||
<link>https://bmeg.github.io/sifter/tags/</link> | ||
<description>Recent content in Tags on Sifter</description> | ||
<title>Tags on </title> | ||
<link>/tags/</link> | ||
<description>Recent content in Tags on </description> | ||
<generator>Hugo -- gohugo.io</generator> | ||
<language>en-us</language><atom:link href="https://bmeg.github.io/sifter/tags/index.xml" rel="self" type="application/rss+xml" /> | ||
<language>en</language> | ||
<atom:link href="/tags/index.xml" rel="self" type="application/rss+xml" /> | ||
</channel> | ||
</rss> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
--- | ||
title: plugin | ||
menu: | ||
main: | ||
parent: inputs | ||
weight: 100 | ||
--- | ||
|
||
# plugin | ||
Run user program for customized data extraction. | ||
|
||
## Example | ||
|
||
```yaml | ||
inputs: | ||
oboData: | ||
plugin: | ||
commandLine: ../../util/obo_reader.py {{config.oboFile}} | ||
``` | ||
The plugin program is expected to output JSON messages, one per line, to STDOUT that will then | ||
be passed to the transform pipelines. | ||
## Example Plugin | ||
The `obo_reader.py` plugin, it reads a OBO file, such as the kind the describe the GeneOntology, and emits the | ||
records as single line JSON messages. | ||
```python | ||
#!/usr/bin/env python | ||
import re | ||
import sys | ||
import json | ||
re_section = re.compile(r'^\[(.*)\]') | ||
re_field = re.compile(r'^(\w+): (.*)$') | ||
def obo_parse(handle): | ||
rec = None | ||
for line in handle: | ||
res = re_section.search(line) | ||
if res: | ||
if rec is not None: | ||
yield rec | ||
rec = None | ||
if res.group(1) == "Term": | ||
rec = {"type": res.group(1)} | ||
else: | ||
if rec is not None: | ||
res = re_field.search(line) | ||
if res: | ||
key = res.group(1) | ||
val = res.group(2) | ||
val = re.split(" ! | \(|\)", val) | ||
val = ":".join(val[0:3]) | ||
if key in rec: | ||
rec[key].append(val) | ||
else: | ||
rec[key] = [val] | ||
if rec is not None: | ||
yield rec | ||
def unquote(s): | ||
res = re.search(r'"(.*)"', s) | ||
if res: | ||
return res.group(1) | ||
return s | ||
with open(sys.argv[1]) as handle: | ||
for rec in obo_parse(handle): | ||
print(json.dumps(rec)) | ||
``` |
4 changes: 2 additions & 2 deletions
4
website/content/docs/inputs/gripperLoad.md → website/content/docs/transforms/flatmap.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: gripperLoad | ||
title: flatMap | ||
menu: | ||
main: | ||
parent: inputs | ||
parent: transforms | ||
weight: 100 | ||
--- |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: plugin | ||
menu: | ||
main: | ||
parent: transforms | ||
weight: 100 | ||
--- |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: tableWrite | ||
menu: | ||
main: | ||
parent: transforms | ||
weight: 100 | ||
--- |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: uuid | ||
menu: | ||
main: | ||
parent: transforms | ||
weight: 100 | ||
--- |