File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010filelink = 'https://aacr.figshare.com/ndownloader/files/39996295'
1111##get third tab and drugsa re listeda cross top
1212
13+
14+
15+
16+ def retrieve_figshare_data (url ):
17+ """
18+ Download data from a given Figshare URL.
19+
20+ Parameters
21+ ----------
22+ url : string
23+ The Figshare URL to download data from.
24+
25+ Returns
26+ -------
27+ string
28+ Name of the downloaded file.
29+ """
30+
31+ files_0 = os .listdir ()
32+ wget .download (url )
33+ files_1 = os .listdir ()
34+ new_file = str (next (iter (set (files_1 ) - set (files_0 ))))
35+ return new_file
36+
1337def main ():
1438 parser = argparse .ArgumentParser (description = 'Download and match pancpdocdrugs' )
1539 parser .add_argument ('-d' , '--prevDrugFile' )
1640 parser .add_argument ('-o' , '--output' , default = '/tmp/panpdc_drugs.tsv' )
1741
18-
42+ auc_file = retrieve_figshare_data ( filelink )
1943
44+ tab = pd .read_excel (auc_file ,sheet = '' )
45+
46+
2047if __name__ == '__main__' :
2148 main ()
You can’t perform that action at this time.
0 commit comments