You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Download omics data from Synapse at synapseID syn66401303. Requires a synapse token, which requires you to make a Synapse account
12
+
and create a Personal Access Token. More information here: https://help.synapse.org/docs/Managing-Your-Account.2055405596.html#ManagingYourAccount-PersonalAccessTokens
13
+
14
+
Parameters
15
+
----------
16
+
synID : string
17
+
SynapseID of dataset to download. Default is synapseID of the omics dataset.
18
+
19
+
save_path : string
20
+
atal path where the downloaded file will be saved.
21
+
22
+
synToken : string
23
+
Synapse Personal Access Token of user. Requires a Synapse account. More information at: https://help.synapse.org/docs/Managing-Your-Account.2055405596.html#ManagingYourAccount-PersonalAccessTokens
one_sample_df=dictionary[experiment_key] # get 1 df from the df dictionary
58
+
one_sample_df=one_sample_df.fillna(value={0:"concentration"}) # for many of the pages, they didn't write "concentration" but just left it blank. fill these na's with "concentration"
59
+
list_of_dfs= [] # initiate empty list of df's for each conc type
60
+
conc_indexes=one_sample_df[one_sample_df[0] =="concentration"].index.to_list() # get indexes of rows with concentrations in them (these will be column names)
0 commit comments