Skip to content

Instantly share code, notes, and snippets.

View stevekm's full-sized avatar

Stephen Kelly stevekm

View GitHub Profile
@stevekm
stevekm / docker_galaxy_commands.md
Last active October 6, 2016 13:21
commands I used to install Galaxy Docker on a fresh computer, pulled straight from my bash history

I think this is where I was trying to get Docker installed

[2016-10-06 09:14:50]
steve@quark2:~$ grep -i 'docker' ~/.bash_history 
cat /etc/apt/sources.list.d/docker.list
touch /etc/apt/sources.list.d/docker.list
sudo touch /etc/apt/sources.list.d/docker.list
nano /etc/apt/sources.list.d/docker.list
sudo nano /etc/apt/sources.list.d/docker.list
@stevekm
stevekm / rubby.md
Last active November 3, 2016 17:09
OS X El Capitan installation of Ruby gems for Jekyll setup
@stevekm
stevekm / Volcano_Plotly.md
Last active June 6, 2020 03:31
How to make a volcano plot of differentially bound genes using R and Plot.ly

Plot.ly Volcano Plot Example

Stephen Kelly
9/24/2016

In this example, I will demonstrate how to use gene differential binding data to create a volcano plot using R and Plot.ly. This dataset was generated by DiffBind during the analysis of a ChIP-Seq experiment. Each entry represents a bound peak that was differentially expressed between groups of samples.

First, install any libraries you might not have, load the Plot.ly library, and load the file containing your differential binding data.

@stevekm
stevekm / find_file.py
Last active September 26, 2016 19:35
finding files in Python
#!/usr/bin/env python
# python 2.7
# various ways to try to find and return the files in a given directory
# some of these are ok, some are bad, some are real real bad
import os
import re
import glob
@stevekm
stevekm / DiffBind_Volcano_Plotly.md
Created September 24, 2016 21:45
How to use R and Plot.ly to create a Volcano Plot from DiffBind data

Plot.ly Volcano Plot Example

Stephen Kelly
9/24/2016

# install.packages("plotly")
# install.packages("ggplot2")
@stevekm
stevekm / git_basic_usage.md
Last active September 21, 2016 18:25
A quick guide on how to commit changes to a git repository

Set up a new git repository (if it doesn't already exist, otherwise skip this step)

$ cd git_test/

$ ll
total 36K
drwxr-s--- 2 kellys04 kellys04   0 Sep 21 13:43 .
drwxr-s--- 4 kellys04 kellys04 350 Sep 21 13:43 ..
@stevekm
stevekm / new_PC.md
Last active December 31, 2017 04:23
Stuff to install on new computer (Ubuntu 16.04)
@stevekm
stevekm / gist:45a76ed129e4da7e39f2f1c1c85e61fa
Created September 4, 2016 15:58
md5 checksum of all your files
sudo find /media/steve/Orchard/home/steve/ -type f -exec md5sum {} \; > /home/steve/Orchard_files.txt
@stevekm
stevekm / gist:3d5db084bb868c9bdfb4fcb4d27f7aa7
Last active September 29, 2016 23:22
python bin paths on OS X
Anaconda python:
/Users/$USER/anaconda/bin/python
system python
/usr/local/bin/python
/Library/Python/2.7/site-packages/
@stevekm
stevekm / virtualenv_madness
Created August 16, 2016 18:19
trying to get virtualenv installed on my MacBook Pro, running OS X El Capitan..
Its already installed:
$ pip install virtualenv
Requirement already satisfied (use --upgrade to upgrade): virtualenv in ./Library/Python/2.7/lib/python/site-packages
But it doesn't work
$ virtualenv
-bash: virtualenv: command not found