1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
col = ['run_accession','library_name','study_title','organism_name','library_strategy','library_source', 'source_name','tissue','circadian time','genotype','treatment','sex','cell type','age]
df_index = df_meta.loc[:,col]
## modify # df_index = df_index.rename(columns={'time point': 'time'}) # df_index['time'] = df_index['time'].apply(lambda x: 'CT' + str(x)) # df_index['time'] = df_index['time'].apply(lambda x: str(x).replace(" ","")) # df_index['time'] = df_index['experiment_title'].apply(lambda x: str(x).split(';')[0].split('_')[-2]) # df_index['time'] = df_index['time'].apply(lambda x: 'ZT' + str(x)) # df_index = df_index.drop('experiment_title', axis=1)
df_index.insert(0,'gse_accession',[gse]*len(df_index)) df_index
|