Last active
August 29, 2015 14:02
-
-
Save gpratt/371b68561d545f69c19f to your computer and use it in GitHub Desktop.
makes an rpkm table in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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