Skip to content

Instantly share code, notes, and snippets.

@gpratt
Last active August 29, 2015 14:02
Show Gist options
  • Save gpratt/371b68561d545f69c19f to your computer and use it in GitHub Desktop.
Save gpratt/371b68561d545f69c19f to your computer and use it in GitHub Desktop.
makes an rpkm table in python
import glob
import pandas as pd
datasets = glob.glob("/nas/nas0/gpratt/projects/upf1/analysis/v3/*.RPKM")
datasets = {os.path.basename(dataset).split(".")[0] : pd.read_csv(dataset, index_col=0, sep="\t").RPKM for dataset in datasets}
clipseq_rpkm_df = pd.concat(datasets, join="outer")
clip_count_df.unstack()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment