@@ -83,6 +83,7 @@ public List<DownloadFile> download() throws IOException, InterruptedException {
8383 downloadFiles .add (downloadMane (geneFolder ));
8484 downloadFiles .add (downloadLrg (geneFolder ));
8585 downloadFiles .add (downloadHgnc (geneFolder ));
86+ downloadFiles .add (downloadCancerHotspot (geneFolder ));
8687 downloadFiles .add (downloadDrugData (geneFolder ));
8788 downloadFiles .addAll (downloadGeneUniprotXref (geneFolder ));
8889 downloadFiles .add (downloadGeneExpressionAtlas (geneFolder ));
@@ -211,7 +212,7 @@ private DownloadFile downloadLrg(Path geneFolder) throws IOException, Interrupte
211212
212213 private DownloadFile downloadHgnc (Path geneFolder ) throws IOException , InterruptedException {
213214 if (speciesConfiguration .getScientificName ().equals ("Homo sapiens" )) {
214- logger .info ("Downloading LRG ..." );
215+ logger .info ("Downloading HGNC ..." );
215216 String url = configuration .getDownload ().getHgnc ().getHost ();
216217 saveVersionData (EtlCommons .GENE_DATA , "HGNC_GENE" , configuration .getDownload ().getHgnc ().getVersion (),
217218 getTimeStamp (), Collections .singletonList (url ), geneFolder .resolve ("hgncVersion.json" ));
@@ -221,6 +222,18 @@ private DownloadFile downloadHgnc(Path geneFolder) throws IOException, Interrupt
221222 return null ;
222223 }
223224
225+ private DownloadFile downloadCancerHotspot (Path geneFolder ) throws IOException , InterruptedException {
226+ if (speciesConfiguration .getScientificName ().equals ("Homo sapiens" )) {
227+ logger .info ("Downloading Cancer Hotspot ..." );
228+ String url = configuration .getDownload ().getCancerHotspot ().getHost ();
229+ saveVersionData (EtlCommons .GENE_DATA , "CANCER_HOTSPOT" , configuration .getDownload ().getHgnc ().getVersion (),
230+ getTimeStamp (), Collections .singletonList (url ), geneFolder .resolve ("cancerHotspotVersion.json" ));
231+ String [] array = url .split ("/" );
232+ return downloadFile (url , geneFolder .resolve (array [array .length - 1 ]).toString ());
233+ }
234+ return null ;
235+ }
236+
224237 private DownloadFile downloadGO (Path geneFolder ) throws IOException , InterruptedException {
225238 if (speciesConfiguration .getScientificName ().equals ("Homo sapiens" )) {
226239 logger .info ("Downloading go annotation..." );
0 commit comments