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 nextflow | |
// Demonstration of hierarchical scatter/gather in Nextflow | |
// Tasks have two pieces of meta a chr (chromosome) and a reg (sub- | |
// chromosomal region). The workflow includes a step which gathers | |
// of all regions for a chromosome. | |
// | |
// The process phase_region is fast when chr in {"chr1", "chr2"} and slow | |
// when chr == "chr3". The gather process for distinct chromosomes |
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 bash | |
set -eo pipefail | |
THREADS=8 | |
usage=" | |
DeepVariant genotyping of medaka variants. | |
First run: |
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
/* The MIT License | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: |
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
FROM ubuntu:18.04 | |
RUN groupadd -g 1001 -r flappie && useradd -r -u 999 -g flappie flappie | |
# Install flappie | |
RUN apt-get update \ | |
&& apt-get install -y libcunit1 libhdf5-100 libopenblas-base cmake libcunit1-dev libhdf5-dev libopenblas-dev git git-lfs \ | |
&& git lfs install \ | |
&& git clone https://github.com/nanoporetech/flappie \ | |
&& cd flappie \ | |
&& git lfs install \ |
Loading
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
# Requirements: pip install numpy, pysam, scrappie | |
# | |
# usage: simulate_calls.py [-h] [--mu MU] [--sigma SIGMA] [--noise NOISE] | |
# [--threads THREADS] | |
# fasta ncalls | |
# | |
# Simulate basecalls with scrappy. | |
# | |
# positional arguments: | |
# fasta Source sequence file. |
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
""" | |
Reimplementation of nanonet using keras. | |
Follow the instructions at | |
https://www.tensorflow.org/install/install_linux | |
to setup an NVIDIA GPU with CUDA8.0 and cuDNN v5.1. | |
virtualenv venv --python=python3 | |
. venv/bin/activate | |
pip install numpy |
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 numpy as np | |
import pickle | |
class MyArray(np.ndarray): | |
"""An np.ndarray subclass with attrs that behave nicely.""" | |
def __new__(cls, a, meta=None): | |
obj = np.asarray(a).view(cls) | |
obj.meta = meta | |
return obj |