Skip to content

Instantly share code, notes, and snippets.

@siebrenf
siebrenf / retraction_watch.py
Last active October 7, 2025 14:29
Search any plain text reference file for DOIs of retracted articles using the Retraction Watch database.
#!/usr/bin/env python
"""
Search any plain text reference file for DOIs of retracted articles
using the Retraction Watch database.
Runs with:
python retraction_watch.py /path/to/references
"""
import re
import sys
@siebrenf
siebrenf / extract_tsv.R
Created October 26, 2022 11:46
Extract TSV files from RData files
#!/usr/bin/env Rscript
#' Extract all objects from an .RData/.rda file and (try to) save each as TSV
#'
#' Usage: Rscript extract_tsv.R file.RData
args = commandArgs(trailingOnly=TRUE)
# test if there is at least one argument: if not, return an error
if (length(args)!=1) {