Skip to content

Instantly share code, notes, and snippets.

View andersgs's full-sized avatar
👋
Unavailable and no longer maintaining any of these projects

Anders Goncalves da Silva andersgs

👋
Unavailable and no longer maintaining any of these projects
View GitHub Profile
@andersgs
andersgs / dummy_data.csv
Last active September 11, 2018 23:29
Find cgMLST alleles unique to a group/cluster
GROUP LOCUS1 LOCUS2 LOCUS3
A 1 1 2
A 2 1 2
B 1 3 2
B 2 4 2
B 2 4 1
[tool.poetry]
name = "bigsdbcli"
version = "0.1.0"
description = "A commandline interface to BIGSDB API"
license = "GPL-3.0"
readme = 'README.rst'
[tool.poetry.dependencies]
python = "3.7"
@andersgs
andersgs / # r - 2018-07-21_20-36-57.txt
Created July 22, 2018 03:41
r on macOS 10.14 - Homebrew build logs
Homebrew build logs for r on macOS 10.14
Build date: 2018-07-21 20:36:57
@andersgs
andersgs / jobarray_process_radtags.sh
Last active April 4, 2018 06:09
Stacks: process_radtags on SLURM
#!/bin/bash
#SBATCH --time=06:00:00
#SBATCH --mem=16G
#SBATCH --mail-user=andersgs@gmail.com
#SBATCH --mail-type=BEGIN
#SBATCH --mail-type=END
#SBATCH --mail-type=FAIL
#SBATCH --mail-type=REQUEUE
#SBATCH --mail-type=ALL
@andersgs
andersgs / job_array_demo.sh
Created February 27, 2018 21:53
Slurm job arrays
#!/bin/bash
# Illustrating the use of job arrays in SLURM
# use the command: sbatch --array=1-100 job_array_demo.sh
# Partition for the job:
#SBATCH -p main
# Multithreaded (SMP) job: must run on one node
#SBATCH --nodes=1
@andersgs
andersgs / interative_tree.R
Created February 20, 2018 03:54
Quick interactive phylogenetic tree in R
# LOAD LIBS ---------------------------------------------------------------
library(ape)
library(ggtree)
library(plotly)
# CREATE A TREE -------------------------------------------------------------
n_samples <- 20
n_grp <- 4
tree <- ape::rtree(n = n_samples)