-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2641 from jjgao/merge-hotfix-to-master
release 1.6.3
- Loading branch information
Showing
30 changed files
with
544 additions
and
390 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,6 +136,7 @@ [email protected]. | |
* FileSaver.min | ||
* Font Awesome (CSS) | ||
* Font Awesome (Fonts) | ||
* clusterfck.min.js | ||
|
||
|
||
ant-1.7.0 | ||
|
@@ -19686,3 +19687,30 @@ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL | |
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM | ||
OTHER DEALINGS IN THE FONT SOFTWARE. | ||
|
||
clusterfck.min.js | ||
----------------- | ||
From: https://github.com/tayden/clusterfck | ||
|
||
Available under license: | ||
|
||
Copyright (c) 2011 Heather Arthur <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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
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
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
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
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
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
84 changes: 84 additions & 0 deletions
84
core/src/main/java/org/mskcc/cbio/portal/dao/DaoGenePanel.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/* | ||
* Copyright (c) 2017 Memorial Sloan-Kettering Cancer Center. | ||
* | ||
* This library is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS | ||
* FOR A PARTICULAR PURPOSE. The software and documentation provided hereunder | ||
* is on an "as is" basis, and Memorial Sloan-Kettering Cancer Center has no | ||
* obligations to provide maintenance, support, updates, enhancements or | ||
* modifications. In no event shall Memorial Sloan-Kettering Cancer Center be | ||
* liable to any party for direct, indirect, special, incidental or | ||
* consequential damages, including lost profits, arising out of the use of this | ||
* software and its documentation, even if Memorial Sloan-Kettering Cancer | ||
* Center has been advised of the possibility of such damage. | ||
*/ | ||
|
||
/* | ||
* This file is part of cBioPortal. | ||
* | ||
* cBioPortal is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package org.mskcc.cbio.portal.dao; | ||
|
||
import java.sql.Connection; | ||
import java.sql.PreparedStatement; | ||
import java.sql.ResultSet; | ||
import java.sql.SQLException; | ||
import java.util.*; | ||
import org.mskcc.cbio.portal.model.CancerStudy; | ||
import org.mskcc.cbio.portal.model.GenePanel; | ||
|
||
/** | ||
* | ||
* @author heinsz | ||
*/ | ||
public class DaoGenePanel { | ||
private static Map<String, GenePanel> genePanelMap = initMap(); | ||
|
||
public static GenePanel getGenePanelByStableId(String stableId) { | ||
return genePanelMap.get(stableId); | ||
} | ||
|
||
private static Map<String, GenePanel> initMap() { | ||
Map<String, GenePanel> genePanelMap = null; | ||
Connection con = null; | ||
PreparedStatement pstmt = null; | ||
ResultSet rs = null; | ||
try { | ||
con = JdbcUtil.getDbConnection(DaoCancerStudy.class); | ||
pstmt = con.prepareStatement("SELECT * FROM gene_panel"); | ||
rs = pstmt.executeQuery(); | ||
genePanelMap = extractGenePanelMap(rs); | ||
} catch (SQLException e) { | ||
e.printStackTrace(); | ||
} finally { | ||
JdbcUtil.closeAll(DaoCancerStudy.class, con, pstmt, rs); | ||
} | ||
return genePanelMap; | ||
} | ||
|
||
private static Map<String, GenePanel> extractGenePanelMap(ResultSet rs) throws SQLException { | ||
Map<String, GenePanel> genePanelMap = new HashMap<>(); | ||
while(rs.next()) { | ||
GenePanel gp = new GenePanel(); | ||
gp.setInternalId(rs.getInt("INTERNAL_ID")); | ||
gp.setStableId(rs.getString("STABLE_ID")); | ||
gp.setDescription(rs.getString("DESCRIPTION")); | ||
genePanelMap.put(gp.getStableId(), gp); | ||
} | ||
return genePanelMap; | ||
} | ||
|
||
} |
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
Oops, something went wrong.