Showing 156 of 1,095 total issues
Function stat
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
stat: function() {
var _result = {};
_result.origin = window.cohortIdsList;
_result.filters = {};
var self = this;
File barChartTemplate.js
has 276 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Created by Karthik Kalletla on 4/6/16.
*/
'use strict';
(function(Vue, d3, dc, iViz, _, $, cbio) {
Function getPatientClinicalData
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getPatientClinicalData = function(self, attr_ids) {
var def = new $.Deferred();
var fetch_promises = [];
var clinical_data = {};
if (_.isArray(attr_ids)) {
Function getLayoutMatrix
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getLayoutMatrix: function(layoutMatrix, chart) {
var self_ = this;
var neighborIndex;
var foundSpace = false;
var layout = chart.layout;
Function addChart
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addChart: function(attrId) {
var self_ = this;
var attrData = self_.charts[attrId];
var _attrAdded = false;
var _group = {};
Function getSampleClinicalData
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getSampleClinicalData = function(self, attr_ids) {
var def = new $.Deferred();
var fetch_promises = [];
var clinical_data = {};
if (_.isArray(attr_ids)) {
Function ready
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ready: function() {
var _self = this;
var callbacks = {};
var attrId = this.attributes.attr_id;
Function getTickFormat
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
content.getTickFormat = function(v, logScale, data_, opts_) {
var _returnValue = v;
var index = 0;
var e = d3.format('.1e');// convert small data to scientific notation format
var formattedValue = '';
Function initDCPieChart
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initDCPieChart() {
if (v.opts.hasOwnProperty('chartId') &&
v.data.hasOwnProperty('ndx') &&
v.data.hasOwnProperty('attr_id')) {
var width = v.opts.width || 130;
Function setSelectedCases
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setSelectedCases: function(selectionType, selectedCases) {
var radioVal = selectionType;
var selectedCaseUIDs = [];
var unmappedCaseIDs = [];
Function SurvivalChartProxy
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
iViz.data.SurvivalChartProxy = function(_data, _attrId) {
var datumArr_ = [];
// convert raw data
var _totalNum = 0;
Function getConfigs
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function(self, fetch_promise) {
if (_.isObject(configs_)) {
fetch_promise.resolve(configs_);
} else {
$.getJSON(window.cbioResourceURL + 'configs.json?' + window.appVersion)
Function getColors
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
content.getColors = function() {
return [
'#2986e2', '#dc3912', '#f88508', '#109618',
'#990099', '#0099c6', '#dd4477', '#66aa00',
'#b82e2e', '#316395', '#994499', '#22aa99',
Function downloadCaseData
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
downloadCaseData: function() {
var _def = new $.Deferred();
var sampleUIds_ = vm_.selectedsampleUIDs;
var attr = {};
var self = this;
Function mergeGrps
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mergeGrps(inputGrp1, inputGrp2) {
var _ptr_1 = 0; // index indicator/pointer for group1
var _ptr_2 = 0; // index indicator/pointer for group2
// Stop when either pointer reach the end of the array
Function getMutData
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getMutData: function(progressFunction) {
var fetch_promise = new $.Deferred();
var fetch_promises = [];
var _mutDataStudyIdArr = [];
var _mutationProfiles = this.mutationProfileIdsMap;
Function extractMutationData
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
extractMutationData: function(_mutationData, _allSamples) {
var _mutGeneMeta = {};
var _allMutGenes = _.pluck(_mutationData, 'gene_symbol');
var _mutGeneMetaIndex = 0;
var self = this;
Function initReactTable
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initReactTable(_reloadData, _selectedSampleUids, _selectedMap) {
if (_reloadData) {
reactTableData = initReactData(_selectedMap, _selectedSampleUids);
}
var _opts = {
Function getCnaData
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getCnaData: function(progressFunction) {
var _ajaxCnaData = {};
var fetch_promises = [];
var self = this;
var _cnaProfiles = self.cnaProfileIdsMap;
Function updateLayoutMatrix
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateLayoutMatrix: function() {
var self_ = this;
var _charts = _.values(this.$root.charts);
_charts.sort(function(a, b) {
return iViz.priorityManager.comparePriorities(a.priority, b.priority, false);