Showing 156 of 1,095 total issues
File tableViewTemplate.js
has 334 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Created by Karthik Kalletla on 6/20/16.
*/
'use strict';
(function(Vue, dc, iViz, $, QueryByGeneTextArea, _) {
Function init
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function(_rawDataJSON, configs,_selectableIds) {
vm_ = iViz.vue.manage.getInstance();
var selectableIdsSet = {}
_.each(_selectableIds, function(id){
selectableIdsSet[id] = true;
File curve.js
has 325 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
(function(iViz, dc, _, d3, LogRankTest) {
iViz.view.component.SurvivalCurve = function(_divId, _data, _opts) {
var _self = this;
Function utils
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
vcSession.utils = (function() {
var virtualCohort_ = {
name: '',
description: '',
filters: '',
Function SurvivalCurve
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
iViz.view.component.SurvivalCurve = function(_divId, _data, _opts) {
var _self = this;
_self.elem_ = '';
_self.divId_ = _divId;
Function pieChartCanvasDownload
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function pieChartCanvasDownload(data, downloadOpts) {
var _svgElement = '';
var _width = getPieWidthInfo(data);
var _pieLabelString = '';
Function update-all-filters
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
'update-all-filters': function(updateType_) {
var _selectedCasesByFilters = [];
var _counterSelectedCasesByFilters = [];
var self_ = this;
var _hasFilters = false;
Function getSamplesCall
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getSamplesCall = function() {
var def = new $.Deferred();
var data = [];
_.each(self.getCancerStudyIds(), function(studyId) {
data = data.concat(_.map(self.studyCasesMap[studyId].samples, function(sample) {
Function processBarchartData
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
processBarchartData: function(_data) {
var _self = this;
var _dataIssue = false;
var smallerOutlier = {};
var greaterOutlier = {};
Function getGenePanelMap
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getGenePanelMap: function(hugoSymbols, map) {
var _def = new $.Deferred();
var panelSamplesMap = {};
var geneSampleMap = {};
var isProfiledPanelId = 'profiled';
Function update
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
content.update = function(_sampleIds) {
var _selectedData = [];
var _unselectedData = [];
var _tmpSelectedSampleIdMap = {};
File chartOperationsHeader.js
has 286 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Created by Karthik Kalletla on 4/14/16.
*/
'use strict';
(function(Vue, iViz, dc, $, _) {
Function priorityManager
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
iViz.priorityManager = (function() {
var content = {};
var clinicalAttrsPriority = {};
var defaultPriority = 1;
Function mutatedGenesData
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mutatedGenesData(_selectedGenesMap, _selectedSampleUids) {
genePanelMap = window.iviz.datamanager.updateGenePanelMap(genePanelMap, _selectedSampleUids);
selectedGeneData.length = 0;
var numOfCases_ = content.getCases().length;
Function Survival
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
iViz.view.component.Survival = function() {
var content_ = this;
var opts_ = {
downloadIsEnabled: true
};
Function init
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
content.init = function(_data, opts) {
opts_ = $.extend(true, {}, opts);
chartId_ = opts_.chartId;
data_ = _.filter(_data, function(datum) {
return !isNaN(datum.FRACTION_GENOME_ALTERED) && !isNaN(datum.MUTATION_COUNT);
Function extractCnaData
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
extractCnaData: function(_cnaData, _allSamples) {
var _cnaMeta = {};
var _allCNAGenes = {};
var _cnaMetaIndex = 0;
var self = this;
Function updateDataObject
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateDataObject: function(type, attrIds) {
var def = new $.Deferred();
var self_ = this;
var isPatientAttributes = (type === 'patient');
var _data = isPatientAttributes ? data_.groups.patient.data : data_.groups.sample.data;
Function barChartCanvasDownload
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function barChartCanvasDownload(data, downloadOpts) {
var _svgElement = '';
var _svg = $('#' + data.chartId + '>svg').clone();
var _svgWidth = Number(_svg.attr('width'));
var _svgHeight = Number(_svg.attr('height')) + 20;
Function update
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
content.update = function(_selectedSampleUIDs, _selectedRows) {
var selectedMap_ = {};
var includeMutationCount = false;
if (_selectedRows !== undefined) {
selectedRows = _selectedRows;