Skip to content

Instantly share code, notes, and snippets.

View avilella's full-sized avatar

Albert Vilella avilella

View GitHub Profile
@bearloga
bearloga / tabletools.R
Created January 9, 2014 00:40
This shows how to add a DataTables plug-in (in this case TableTools) to your Shiny app.
library(shiny)
library(ggplot2)
# Download DataTables JS file and TableTools full package from http://datatables.net/download/
# Change the paths appropriately:
addResourcePath('datatables','/Users/yourusername/Downloads/DataTables-1.9.4/media')
addResourcePath('tabletools','/Users/yourusername/Downloads/TableTools-2.1.5/media')
runApp(list(
ui = basicPage(
@jurgjn
jurgjn / BaseSpaceRunDownloader_v2a.py
Last active July 26, 2023 19:53
BaseSpaceRunDownloader
#!/usr/bin/python
# Force to use (system) python2
#!/usr/bin/env python
description = """\
Usage: BaseSpaceRunDownloader_v2.py -r <ProjectName> -a <AccessToken>
This is a modified version of the BaseSpace Python Run Downloader from Illumina. It takes
the project name (instead of the run id) and downloads base calls as fastq files (instead of
the image/intensity data).
@jkbonfield
jkbonfield / add_meth2.pl
Created May 31, 2019 16:36
Adds methylation to sequences in SAM.
#!/usr/bin/perl -w
# Uses figures from https://www.biorxiv.org/content/early/2016/03/15/043794
# to add random C methylation to a SAM file, storing in a variety of ways.
use strict;
srand(0);
my $method = shift(@ARGV);