Skip to content

Instantly share code, notes, and snippets.

View alexomics's full-sized avatar
🦆
🦆🦆

alex alexomics

🦆
🦆🦆
View GitHub Profile
@alexomics
alexomics / args.py
Last active October 22, 2019 17:35
A quick argparse for scripts that share options
import argparse
DEFAULT_SERVER_HOST = "127.0.0.1"
DEFAULT_SERVER_PORT = 5555
DEFAULT_TIMEOUT = 500
BASE_ARGS = (
(
"Inputs", # GROUP
name: kinetics_tools
channels:
- bioconda
- conda-forge
- defaults
dependencies:
- python>=3.7
- pip
- pip:
- git+http://github.com/PacificBiosciences/pbcore
@alexomics
alexomics / main.py
Created January 8, 2021 17:26
Guppy Version from FAST5 file
from ont_fast5_api.fast5_interface import get_fast5_file
def guppy_from_file(fn):
"""
>>> guppy_from_file("single.fast5")
'3.0.7+427b5a11'
>>> guppy_from_file("multi.fast5")
'3.0.7+427b5a11'
"""