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 sys | |
class FILE_FORMATS(object): | |
FOFN = "FOFN" | |
FASTA = "FASTA" | |
BAS = "BAS" | |
BAX = "BAX" | |
PLS = "PLS_H5" | |
PLX = "PLX_H5" |
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
<smrtpipeSettings> | |
<module name="P_Fetch"> | |
</module> | |
<module name="P_Filter"> | |
<param name="minLength"> | |
<value>50</value> | |
</param> | |
<param name="readScore"> | |
<value>0.75</value> | |
</param> |
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 sys | |
import os | |
import json | |
import glob | |
def scrape_from_report(p): | |
with open(p, 'r') as f: | |
s = f.read() |
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 functools | |
import sys | |
def _record_starts_with(a_character, record): | |
"""Returns Bool""" | |
return record.startswith(a_character) | |
def _apply_filter_to_record(my_filter, record): |
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 os | |
import abc | |
import logging | |
import sys | |
import functools | |
import operator | |
import argparse | |
import time | |
import math |
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
"""Filter Stats Report using a Coroutine model""" | |
import os | |
import abc | |
import logging | |
import sys | |
import functools | |
import operator | |
import argparse | |
import time | |
import math |
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 sys | |
import random | |
from pbreports.model.model import Table, Column | |
def get_columns(): | |
cs = [Column('person', header="Person Name"), | |
Column('color', header="Favorite Color"), | |
Column('pid', header='User id')] |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<workflow> | |
<!-- This is similar to the current RS protocol in Portal --> | |
<protocol id="pbsmrtpipe.protocols.rs_resequencing"> | |
<inputs> | |
<input><type>MovieFofn</type></input> | |
<input><type>ReferenceEntry</type></input> | |
</inputs> | |
<options> | |
<option id="pbsmrtpipe.task_modules.filter.my_option"> |
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
# Basic tests | |
def setup_log(alog, level=logging.INFO, file_name=None, log_filter=None, | |
str_formatter='[%(levelname)s] %(asctime)-15s [%(name)s %(funcName)s %(lineno)d] %(message)s'): | |
"""Core Util to setup log handler | |
:param alog: a log instance | |
:param level: (int) Level of logging debug | |
:param file_name: (str, None) if None, stdout is used, str write to file | |
:param log_filter: (LogFilter, None) | |
:param str_formatter: (str) log formatting str |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<report> | |
<title>Motifs</title> | |
<table> | |
<thead> | |
<tr> | |
<th>Mof</th> | |
<th>Modified Position</th> | |
<th>Modification Type</th> | |
<th>% Motifs Detected</th> |