- 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
"""Filters sequences based on the pls.h5 file, removing apparently | |
doubly loaded wells and unloaded wells. | |
Note: The 'chunking' (i.e., chunkFunc) in the task decorator must be | |
consistent for each instance of SMRTFile. In other words, inputPlsFofn must be | |
scattered using the same function in *every* P_module. Therefore, the | |
chunkFunc must be set to context.numMovies. | |
""" |
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
#!/usr/bin/env python | |
"""Get a List of Runs from SMRT Link""" | |
# From:http://bitbucket.nanofluidics.com:7990/projects/SL/repos/pbcommand/browse/pbcommand/cli/examples/template_simple.py | |
import os | |
import sys | |
import logging | |
from pbcommand.validators import validate_file | |
from pbcommand.utils import setup_log |
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
import datetime | |
import json | |
import copy | |
import time | |
import functools | |
import itertools | |
import pickle | |
import requests | |
import iso8601 |
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
// Run with ammonite use amm ExampleCatsMonoid.sc | |
// import $ivy.`org.typelevel::cats-core:1.0.1` | |
import cats.implicits._ | |
import cats.instances.all._ | |
import cats.Monoid | |
// For demonstration purposes, load a file (csv, json) and | |
// each item can be converted to a record of type R | |
case class R(name: String, age: Int, favoriteColor: String) |
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
@ 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 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 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']: |