Skip to content

Instantly share code, notes, and snippets.

View lmtani's full-sized avatar

Lucas Taniguti lmtani

View GitHub Profile
@lmtani
lmtani / compleasmWorkflow.wdl
Last active December 23, 2023 23:51
[blog] WDL workflow with compleasm
version development
workflow MinibuscoWorkflow {
input {
Array[String] accessions
String busco_lineage
}
call MinibuscoDownload {
from typing import Dict
import factory
import flask
import flask_sqlalchemy
import pydantic
import pytest
# Conforme: https://flask-sqlalchemy.palletsprojects.com/en/2.x/api/?highlight=init_app#flask_sqlalchemy.SQLAlchemy.init_app
db = flask_sqlalchemy.SQLAlchemy()
@lmtani
lmtani / cds.py
Last active February 7, 2023 22:51
Create BED with ENSEMBL genes
"""
Script para gerar todas as CDSs de determinada assembly do genoma humano.
Essas coordenadas são usadas para o calculo de cobertura das regiões alvo
do exoma.
"""
from pyensembl import EnsemblRelease
CHROMOSOMES = list(map(str, list(range(1, 24)))) + ["X", "Y", "MT"]
@lmtani
lmtani / legendas.py
Created February 16, 2020 19:52
API client para legendas
import requests
import os
import hashlib
# url = "http://sandbox.thesubdb.com"
url = "http://api.thesubdb.com"
user_agent = "SubDB/1.0 (Pyrrot/0.1; http://github.com/jrhames/pyrrot-cli)"
def hash_thesubdb(video_path):
@lmtani
lmtani / Dockerfile
Last active December 30, 2020 20:25
FunGAP docker image
FROM continuumio/miniconda:4.6.14
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y build-essential postgresql postgresql-contrib
RUN conda config --add channels bioconda/label/cf201901 \
&& conda config --add channels conda-forge/label/cf201901 \
&& conda install augustus rmblast maker hisat2 braker busco=3.0.2 blast pfam_scan \
&& pip install biopython bcbio-gff networkx markdown2 matplotlib \

Keybase proof

I hereby claim:

  • I am lmtani on github.
  • I am taniguti (https://keybase.io/taniguti) on keybase.
  • I have a public key ASCll6gURTY8PtotQhknqBVuFMwZPzt3MJJztYC3rseT4wo

To claim this, I am signing this object: