|
1 | 1 | Ext4.define('GenotypeAssays.panel.HaplotypePanel', { |
2 | 2 | extend: 'Ext.panel.Panel', |
3 | 3 | alias: 'widget.genotypeassays-haplotypepanel', |
4 | | - analysisIds: null, |
| 4 | + analysisId: null, |
5 | 5 | showCheckBoxes: false, |
6 | 6 |
|
7 | 7 | initComponent: function(){ |
@@ -266,10 +266,11 @@ Ext4.define('GenotypeAssays.panel.HaplotypePanel', { |
266 | 266 | } |
267 | 267 | }, this); |
268 | 268 |
|
269 | | - Ext4.Msg.confirm('Publish Selected?', 'You have chosen to published the following haplotypes:<br><br>' + (haplotypeNames.length > 8 ? 'Too many to display' : haplotypeNames.join('<br>')) + '<br><br>Continue?', function (val) { |
| 269 | + Ext4.Msg.confirm('Publish Selected?', 'You have chosen to publish the following haplotypes:<br><br>' + (haplotypeNames.length > 8 ? 'Too many to display' : haplotypeNames.join('<br>')) + '<br><br>Continue?', function (val) { |
270 | 270 | if (val == 'yes') { |
271 | 271 | Ext4.create('GenotypeAssays.window.PublishResultsWindow', { |
272 | 272 | actionName: 'cacheHaplotypes', |
| 273 | + analysisId: this.analysisId, |
273 | 274 | json: json |
274 | 275 | }).show(); |
275 | 276 | } |
@@ -460,10 +461,12 @@ Ext4.define('GenotypeAssays.panel.HaplotypePanel', { |
460 | 461 | schemaName: 'sequenceanalysis', |
461 | 462 | queryName: 'alignment_summary_by_lineage', |
462 | 463 | columns: 'analysis_id,analysis_id/readset,analysis_id/readset/subjectId,lineages,loci,total,total_reads,percent,total_reads_from_locus,percent_from_locus', |
| 464 | + parameters: { |
| 465 | + AnalysisId: this.analysisId |
| 466 | + }, |
463 | 467 | apiVersion: 13.2, |
464 | 468 | scope: this, |
465 | 469 | filterArray: [ |
466 | | - LABKEY.Filter.create('analysis_id', this.analysisIds.join(';'), LABKEY.Filter.Types.IN), |
467 | 470 | LABKEY.Filter.create('percent_from_locus', minPct || 0, LABKEY.Filter.Types.GTE) |
468 | 471 | ], |
469 | 472 | failure: LDK.Utils.getErrorCallback(), |
@@ -502,9 +505,9 @@ Ext4.define('GenotypeAssays.panel.HaplotypePanel', { |
502 | 505 | sort: 'analysis_id', |
503 | 506 | apiVersion: 13.2, |
504 | 507 | scope: this, |
505 | | - filterArray: [ |
506 | | - LABKEY.Filter.create('analysis_id', this.analysisIds.join(';'), LABKEY.Filter.Types.IN) |
507 | | - ], |
| 508 | + parameters: { |
| 509 | + AnalysisId: this.analysisId |
| 510 | + }, |
508 | 511 | failure: LDK.Utils.getErrorCallback(), |
509 | 512 | success: function(results){ |
510 | 513 | this.lineageToAlleleMap = {}; |
|
0 commit comments