Skip to content

Instantly share code, notes, and snippets.

View jvwong's full-sized avatar
💭
Generally confused.

Jeffrey jvwong

💭
Generally confused.
View GitHub Profile
@jvwong
jvwong / background.sh
Created November 17, 2016 21:01
Run a bash script in the background
nohup command &>/dev/null &
@jvwong
jvwong / README.md
Last active November 11, 2016 00:55
Pathway Commons Guide: Workflow -- Visualize
@jvwong
jvwong / README.md
Last active November 3, 2016 18:54
Pathway Commons Guide: Workflow -- Get Data
@jvwong
jvwong / README.md
Last active November 11, 2016 01:06
Pathway Commons Guide: Workflow -- Process data
@jvwong
jvwong / get_subtypes.py
Last active September 1, 2016 20:51
Obtain subtypes
import os
import fnmatch
import json
import pandas as pd
def writeout(output_path, df):
"""
Write dataframe (df) to output path (output_path)
"""
directory = os.path.dirname(output_path)
@jvwong
jvwong / get_counts.py
Last active September 1, 2016 20:51
Merge TCGA data in separate files sourced from Genomic Data Commons
import os
import fnmatch
import json
import pandas as pd
def writeout(output_path, df):
"""
Write dataframe (df) to output path (output_path)
"""
directory = os.path.dirname(output_path)
@jvwong
jvwong / README.md
Created August 9, 2016 19:19
Data munging for the TCGAOv data set

GDC Data Munging Scripts

This is for use in the Pathway Commons Guide TCGA Ovarian Cancer data set description.

Setup

  1. Install conda

  2. Create a conda environment named tcgaov. You can use the supplied environments.yml to quickly get started.

@jvwong
jvwong / README.md
Last active August 8, 2016 18:46
OSX virtualenv

virtualenv on OSX El-capitan

$ usr/bin/python2.7 /Users/jeffreywong/anaconda/lib/python3.5/site-packages/virtualenv.py venv
$ source ./venv/bin/activate
@jvwong
jvwong / README.md
Last active August 7, 2016 18:30
Pathway Commons Web Service Test Suite

Pathway Commons Web Service Test Suite

This is a sample test suite for the Pathway Commons web service written in python.

Description

Each example query on the web service description page is called programmatically and a sanity test is performed on each response. A .csv report summarizing these responses is dumped to the parent directory:

@jvwong
jvwong / README.md
Last active April 6, 2016 15:14
Tracking a gist in repo

You can add the github repository as a remote to your checked out gist repository.

$ git clone git://gist.github.com/1234.git
$ git remote add github [email protected]:ChrisJamesC/myNewProject.git

Push it to initialize the git on github

$ git push -u github master

This will also change the upstream of the branch, so github will be default.