Skip to content

Instantly share code, notes, and snippets.

View Godrigos's full-sized avatar
🐶
Learning...

Rodrigo Aluizio Godrigos

🐶
Learning...
View GitHub Profile
@Godrigos
Godrigos / join_table.py
Last active December 14, 2022 13:45
A small module to join gene data tables from GenBank
# Version: 2022/12/07 - 10:51
import pandas as pd
import os
import sys
# Return all files in the given directory as a list
dir = "./tables"
files: list[str] = []
for file in os.listdir(dir):

Keybase proof

I hereby claim:

  • I am godrigos on github.
  • I am godrigos (https://keybase.io/godrigos) on keybase.
  • I have a public key ASDbq4RrRRn2GmWptk70DqKfOQsvWKpNCUetLx3Gph7WkAo

To claim this, I am signing this object:

@Godrigos
Godrigos / check_R_packages.R
Created January 21, 2022 14:22
Check if required R packages are installed, and load them.
## If a package is installed, it will be loaded. If any
## are not, the missing package(s) will be installed
## from CRAN and then loaded.
## First specify the packages of interest
packages = c("tidyverse", "geomorph",
"phytools", "viridis")
## Now load or install & load all
package.check <- lapply(
@Godrigos
Godrigos / primeNumbers.cpp
Created December 27, 2021 12:50
List prime numbers between an interval
#include <iostream>
#include <math.h>
using namespace std;
int main(int argc, char const *argv[]) {
// We expect 3 arguments: the program name, the initial value and final value
if (argc != 3) {
cerr << "Usage: " << argv[0] << " INITIAL FINAL (positive integer values)."
<< endl;
@Godrigos
Godrigos / renameTVDB.py
Last active July 2, 2019 22:47
Python 3 script to rename series files in absolute number episode format using TVDB API.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
In order to use this module, mediainfo library needs to be
installed on your system. Visit https://mediaarea.net/en/MediaInfo
for more information, download and installation details.
"""
from tvdb_api import Tvdb, tvdb_shownotfound