Showing 156 of 1,095 total issues
Function attachPlotlySelectedEvent
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
attachPlotlySelectedEvent: function() {
var _self = this;
var data = iViz.getGroupNdx(_self.attributes.group_id);
document.getElementById(this.chartId).on('plotly_selected',
Function getNavCaseIdsStr
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getNavCaseIdsStr(selectedCasesMap, selectedCaseIds, underURLLimit) {
var result = {
str: '',
limit: -1
};
Function initReactTable
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initReactTable(targetId, inputData, opts) {
var selectedRows = v.chart.filters();
var opts_ = $.extend({
input: inputData,
Function getCombinationPriority
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getCombinationPriority(id) {
var priority = _.clone(defaultPriority);
if (id) {
switch (id) {
case 'DFS_SURVIVAL':
Function GeneralChart
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
iViz.view.component.GeneralChart = function(chartType) {
'use strict';
this.chartType = chartType || 'generalChart';
this.dataForDownload = {};
this.getCurrentCategories = function() {
Function updateQtipContent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateQtipContent: function() {
if (this.mainDivQtip) {
var self_ = this;
var qtipContent = ['<div>'];
var groups = this.chartInst.getGroups();
Function processTableData
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
processTableData: function(_data) {
var data = iViz.getGroupNdx(this.attributes.group_id);
var opts = {
width: window.iViz.styles.vars.specialTables.width,
height: window.iViz.styles.vars.specialTables.height,
Function getFilteredOriginStudies
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getFilteredOriginStudies: function() {
var selectedStudiesDisplayName = window.iviz.datamanager.getCancerStudyDisplayName(this.stats.origin);
var filteredOriginStudies = {
studies: [],
count: 0
Function init
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function(_attributes, _opts, _selectedSamples, _selectedGenes,
_data, _callbacks, _geneData, _dimension, _genePanelMap) {
Function getSampleListsData
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getSampleListsData: function(sampleLists) {
var def = new $.Deferred();
var self = this;
var data = [];
if (_.isArray(sampleLists)) {
Function getGeneticProfiles
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function(self, fetch_promise) {
$.get(window.cbioURL + 'api/molecular-profiles?projection=SUMMARY&pageSize=100000&pageNumber=0&sortBy=molecularProfileId&direction=ASC')
.done(function(data) {
var profiles = {};
_.each(data, function(profile) {
Function initReactData
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initReactData(_selectedMap, _selectedSampleUids) {
attr_ = iViz.util.tableView.getAttributes(type_);
var result = {
data: [],
attributes: attr_
Function update
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
content_.update = function(groups, _chartId, _attrId) {
// remove previous curves
var _chartInst_ = this.chartInst_;
var _newGroups = [];
_chartInst_.removeCurves();
Function getCurrentCategories
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
content.getCurrentCategories = function(sortBy) {
var groups = dcDimension.group().top(Infinity);
var groupTypeId =
data_.groupType === 'patient' ? 'patient_uid' : 'sample_uid';
var selectedCases = _.pluck(dcDimension.top(Infinity), groupTypeId).sort();
Function data
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data: function() {
return {
chartDivId:
iViz.util.getDefaultDomId('chartDivId', this.attributes.attr_id),
resetBtnId:
Function survivalChartCanvasDownload
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function survivalChartCanvasDownload(data, downloadOpts) {
var _svgElement;
var _svgTitle;
var _labelTextMaxLength = 0;
var _numOfLabels = 0;
Function initLine
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initLine: function() {
var _self = this;
var opts = _.extend({
strokeWidth: 4,
easing: 'easeInOut',
Function data
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data: function() {
return {
chartDivId:
iViz.util.getDefaultDomId('chartDivId', this.attributes.attr_id),
resetBtnId:
Function success
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
success: function(panels) {
_.each(panels, function(panel) {
_.each(panel.genes, function(gene) {
if (!geneSampleMap[gene.hugoGeneSymbol]) {
geneSampleMap[gene.hugoGeneSymbol] = {
Function data
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data: function() {
return {
chartDivId: iViz.util.getDefaultDomId('chartDivId', this.attributes.attr_id),
resetBtnId: iViz.util.getDefaultDomId('resetBtnId', this.attributes.attr_id),
chartId: iViz.util.getDefaultDomId('chartId', this.attributes.attr_id),