Skip to content

Instantly share code, notes, and snippets.

View jfy133's full-sized avatar

James A. Fellows Yates jfy133

View GitHub Profile
@jfy133
jfy133 / generate_samplesheet.nf
Last active October 10, 2024 11:17
meta-omics pipeline samplesheet demonstration
/*
Completely ripped off from Mahesh Binzer-Panchal, all cookies too him!
Important: remove views before copy pasting!
*/
// These should be params
def outdir = '/home/james/Downloads/results/'
def format = 'tsv'
@jfy133
jfy133 / wikipedia-style-timeline-for-git-repo.R
Last active February 20, 2024 17:52
Throw-away example R/tidyverse script to generate a wikipedia 'band-member timeline' style figure for a git repo
#!/usr/bin/env R
library(tidyverse)
min_commit_count <- 5
## Get raw data: ` git --no-pager log --pretty=format:"%h%x09%an%x09%ad%x09%s" --date=iso | cut -f 2-3 > pipeline_contribs.tsv
data_raw <- read_tsv("pipeline_contribs.tsv", col_names = c("Committer", "Date"))
@jfy133
jfy133 / resume.json
Last active July 25, 2022 11:40
resume.json for jfy133
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Dr. rer. nat. James A. Fellows Yates",
"label": "Bioinformatician and Biomolecular Archaeologist",
"image": "",
"email": "jfy133@gmail.com",
"url": "http://www.jafy.eu/",
"summary": "James is a biomolecular archaeologist turned bioinformatician. His research is currently the metagenomic analysis of next generation sequencing data of ancient microbiomes. He leads the development of a range of open-source tools including the nextflow best-practices pipeline nf-core/eager, as well as packages in R and R and shiny. He is a core member of the nf-core bioinformatics pipeline initiative and the founder of the SPAAM community of ancient metagenomics researchers.",
"location": {
library(jsonlite)
myjson <- read_json("https://github.com/nf-core/eager/raw/dev/nextflow_schema.json")
fileConn <- '~/Downloads/usage.md'
write(paste("# Usage"), file = fileConn, append=T)
for ( cat in names(myjson$definitions) ) {