- Run (often created/edited from SMRT Link RunDesign, stored as XML)
- CollectionMetadata a Run has a list of Collection (Primary Analysis will convert a CollectionMetadata to a SubreadSet)
- PacBio DataSets SubreadSet, ReferenceSet, etc... These are thin-ish XML files that have general metadata as well as pointers to 'external resources' (e.g., BAM, Fasta files) and their companion index files.
- SMRT Link Job A general (async) unit of work to perform operations on PacBio DataSets
- ** DataStoreFile** a container for output files from a
SMRT Link Job
and contains metadata, such as file type, size, path. A list ofDataStore Files
is called aDataStore
. This is the core output ofSMRT Link Job
. - ** Report** a Report is general model to capture
Report
metrics (also referred to as 'Attributes'),Report Tables
andReport Plot Groups
. AReport
is a specific type ofDataStoreFile
and are used to communicate details of
This file contains hidden or 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
@ import akka.http.scaladsl.model.Uri | |
import akka.http.scaladsl.model.Uri | |
@ val u = Uri("http://smrtlink-bihourly:8081") | |
u: Uri = Uri("http", Authority(NamedHost("smrtlink-bihourly"), 8081, ""), , None, None) | |
@ val p1 = Uri.Path("root") / "alpha" / "beta" | |
p1: Uri.Path = Segment("root", Slash(Segment("alpha", Slash(Segment("beta", ))))) | |
@ val p2 = p1 / "gamma" |
This file contains hidden or 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 python | |
import logging | |
import sys | |
from pbcommand.services import ServiceAccessLayer as S | |
from pbcore.io.dataset import SubreadSet | |
log = logging.getLogger(__name__) | |
This file contains hidden or 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 python | |
import json | |
import sys | |
import argparse | |
import os | |
import operator | |
def extract_table_values(dt, column_id): | |
for column_d in dt['columns']: |
This file contains hidden or 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 python | |
"""Tool for Scrapping Jobs and DataSets from a SMRT Link instance""" | |
import argparse | |
import base64 | |
import datetime | |
import sys | |
import json | |
import os | |
import time | |
import functools |
This file contains hidden or 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
09:33 $ python /Users/mkocher/repos/pbcommand/extras/validation_argparse_option_example.py log | |
(pbsmrtpipe_test) ✔ ~/scratch_pad/verify-bugs/SL-1512 | |
09:33 $ python /Users/mkocher/repos/pbcommand/extras/validation_argparse_option_example.py dir-that-does-not-exist | |
ls: cannot access 'dir-that-does-not-exist': No such file or directory | |
Traceback (most recent call last): | |
File "/Users/mkocher/repos/pbcommand/extras/validation_argparse_option_example.py", line 19, in <module> | |
sys.exit(main(argv=sys.argv[1:])) | |
File "/Users/mkocher/repos/pbcommand/extras/validation_argparse_option_example.py", line 14, in main | |
p.parse_args(argv) | |
File "/Users/mkocher/miniconda2/envs/pbsmrtpipe_test/lib/python2.7/argparse.py", line 1701, in parse_args |
This file contains hidden or 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
#!/bin/bash | |
declare -a packages=("devtools" "knitr" "ggplot2" "mplot" "googleVis" "data.table" "caret" "pRoc" "sqldf" "glmnet") | |
declare -a ghpackages=("ramnathv/rCharts") | |
for i in "${packages[$@]}"; do | |
echo "Attempting to install '${i}'" | |
R -e "install.packages('${i}', repos = 'http://cran.us.r-project.org')" | |
done |
This file contains hidden or 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
import hashlib | |
import hmac | |
import math | |
import datetime | |
import base64 | |
def to_h(secret, method, segment, t=None): | |
""" | |
Example: |