Skip to content

Instantly share code, notes, and snippets.

View tbrittoborges's full-sized avatar
🎯

Thiago Britto Borges tbrittoborges

🎯
View GitHub Profile
@tbrittoborges
tbrittoborges / parse_abb.py
Last active November 13, 2018 09:41
parse medical abbreviations from wikipedia
import pandas as pd
x = pd.read_html('https://de.wikipedia.org/wiki/Medizinische_Abk%C3%BCrzungen')
x=pd.concat(x)
x.tail()
x.set_index(0)[1]
@tbrittoborges
tbrittoborges / chr_sizes.sh
Last active January 24, 2019 12:46
How to get the chromossomes sizes for an assembly
# from https://www.biostars.org/p/272373/#272461
cut -f1,2 genome.fa.fai > genome.size
#!/usr/bin/env python
# __author__ = 'tbrittoborges'
import subprocess
import tempfile
import sys
import utils
seqs = utils.fasta_parser('.fasta')
@tbrittoborges
tbrittoborges / .sh
Created January 31, 2019 10:00
install R package from the command line
# from https://stackoverflow.com/users/2490497/jangorecki
Rscript -e 'install.packages("eulerr", repos="https://cran.rstudio.com")'
@tbrittoborges
tbrittoborges / visit.md
Last active February 6, 2019 13:41
Places to visit in Heidelberg

Places to visit

The castle

A nice walk that you can start from the Old bridge or Bergstraße (Neuenheim). Also check the Neckarwiese, Alte brücke (old bridge) and Hauptstraße (main street)
Although it's winter, the botanical garden has a small greenhouse. The garden is also within the main University Campus, and so offers a good opportunity to check it out.
SIRV LexogenSIRVData exon 2001 2484 . - 0 gene_id "SIRV1"; transcript_id "SIRV101"; exon_assignment "SIRV101_0";
SIRV LexogenSIRVData exon 2001 2484 . - 0 gene_id "SIRV1"; transcript_id "SIRV103"; exon_assignment "SIRV103_0";
SIRV LexogenSIRVData exon 2001 2484 . - 0 gene_id "SIRV1"; transcript_id "SIRV104"; exon_assignment "SIRV104_0";
SIRV LexogenSIRVData exon 2001 2484 . - 0 gene_id "SIRV1"; transcript_id "SIRV106"; exon_assignment "SIRV106_0";
SIRV LexogenSIRVData transcript 2001 11763 . - 0 gene_id "SIRV1"; transcript_id "SIRV104";
SIRV LexogenSIRVData transcript 2001 11786 . - 0 gene_id "SIRV1"; transcript_id "SIRV101";
SIRV LexogenSIRVData transcript 2001 11786 . - 0 gene_id "SIRV1"; transcript_id "SIRV106";
SIRV LexogenSIRVData transcript 2001 11791 . - 0 gene_id "SIRV1"; transcript_id "SIRV103";
SIRV LexogenSIRVData gene 2001 12643 . - 0 gene_id "SIRV1";
SIRV LexogenSIRVData exon 2007 2484 . - 0 gene_id "SIRV1"; transcript_id "SIRV102"; exon_assignment "SIRV102_0";
library(tidyverse)
library(lubridate) # for the days() function
library(fuzzyjoin) # for the fuzzy_left_join() function
climate <- read_tsv('./timetable.csv')
# date temperature
#1 2018-11-21 100
#2 2018-11-22 80
@tbrittoborges
tbrittoborges / majiq_error.sh
Created April 1, 2019 13:14
majiq error 1st april
(majiq) tbrittoborges@atlas:/prj/CellRNANetworks/Baltica$ majiq build -h
Traceback (most recent call last):
File "/home/tbrittoborges/miniconda3/envs/majiq/bin/majiq", line 7, in <module>
from majiq.run_majiq import main
File "/home/tbrittoborges/miniconda3/envs/majiq/lib/python3.5/site-packages/majiq/run_majiq.py", line 2, in <module>
from majiq.src.build import build
File "majiq/src/build.pyx", line 24, in init majiq.src.build
File "/home/tbrittoborges/miniconda3/envs/majiq/lib/python3.5/site-packages/voila/api/__init__.py", line 1, in <module>
from voila.api.matrix_hdf5 import Psi, DeltaPsi, Heterogen
File "/home/tbrittoborges/miniconda3/envs/majiq/lib/python3.5/site-packages/voila/api/matrix_hdf5.py", line 8, in <module>
@tbrittoborges
tbrittoborges / delete_intermediate_RNASeq.py
Created February 5, 2020 10:54
deletes files in the rrna_free_reads and trimmed_reads to save space
#!/usr/bin/env python
# coding: utf-8
from pathlib import Path
import os
from itertools import chain
from datetime import datetime
__author__: tbrittoborges
__date__: 05/02/2020
@tbrittoborges
tbrittoborges / delete_intermediate_RNASeq.py
Created February 5, 2020 10:54
deletes files in the rrna_free_reads and trimmed_reads to save space
#!/usr/bin/env python
# coding: utf-8
from pathlib import Path
import os
from itertools import chain
from datetime import datetime
__author__: tbrittoborges
__date__: 05/02/2020