Skip to content

Commit 78f07d2

Browse files
committed
Merge discvr-23.3 to discvr-23.7
2 parents 0b2f6e7 + 0bfcf58 commit 78f07d2

File tree

110 files changed

+20633
-13457
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+20633
-13457
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/jbrowse/node_modules
44
/intellijBuild
55
/travisSettings.sh
6+
index/
67

78
# Created by npm install
89
jbrowse/jb_run.js

SequenceAnalysis/resources/queries/sequenceanalysis/alignment_summary_by_lineage.query.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
</conditionalFormat>
3939
</conditionalFormats>
4040
</column>
41+
<column columnName="rowids">
42+
<columnTitle>RowIds</columnTitle>
43+
<isHidden>true</isHidden>
44+
</column>
4145
</columns>
4246
</table>
4347
</tables>

SequenceAnalysis/resources/queries/sequenceanalysis/alignment_summary_by_lineage.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ select
3434
SELECT distinct asj.alignment_id from sequenceanalysis.alignment_summary_junction asj WHERE asj.ref_nt_id.locus = a.loci and asj.status = true
3535
)
3636
) as float)), 2) as percent_from_locus,
37+
group_concat(distinct a.rowid, ',') as rowids
3738

3839
FROM (
3940

SequenceAnalysis/resources/queries/sequenceanalysis/alignment_summary_grouped.query.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@
5050
</conditionalFormat>
5151
</conditionalFormats>
5252
</column>
53+
<column columnName="rowids">
54+
<columnTitle>RowIds</columnTitle>
55+
<isHidden>true</isHidden>
56+
</column>
57+
<column columnName="nAlignments">
58+
<columnTitle># Alignments</columnTitle>
59+
<isHidden>true</isHidden>
60+
</column>
61+
<column columnName="nLoci">
62+
<columnTitle># Loci</columnTitle>
63+
<isHidden>true</isHidden>
64+
</column>
5365
</columns>
5466
</table>
5567
</tables>

SequenceAnalysis/resources/queries/sequenceanalysis/alignment_summary_grouped.sql

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ select
3333
-- else 'Minor'
3434
-- end as category,
3535

36-
group_concat(a.rowid) as rowids,
36+
group_concat(a.rowid, ',') as rowids,
3737
group_concat(distinct a.haplotypesWithAllele) as haplotypesWithAllele,
3838

3939
CAST((select sum(s.total) as total FROM sequenceanalysis.alignment_summary s WHERE s.analysis_id = a.analysis_id AND s.rowid IN (
@@ -45,7 +45,9 @@ select
4545
SELECT distinct asj.alignment_id from sequenceanalysis.alignment_summary_junction asj WHERE asj.ref_nt_id.locus = a.loci and asj.status = true
4646
)
4747
) as float) END), 2) as percent_from_locus,
48-
max(lastModified) as lastModified
48+
max(lastModified) as lastModified,
49+
count(distinct a.rowid) as nAlignments,
50+
max(a.nloci) as nLoci
4951

5052
FROM (
5153

@@ -58,6 +60,7 @@ FROM (
5860
group_concat(distinct j.ref_nt_id.lineage, chr(10)) as lineages,
5961
count(distinct j.ref_nt_id.lineage) as totalLineages,
6062
group_concat(distinct j.ref_nt_id.locus, chr(10)) as loci,
63+
count(distinct j.ref_nt_id.locus) as nloci,
6164
group_concat(distinct hs.haplotype, chr(10)) as haplotypesWithAllele,
6265

6366
total,

SequenceAnalysis/resources/queries/sequenceanalysis/sequence_readsets/.qview.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<column name="comments" />
1212
<column name="barcode5" />
1313
<column name="barcode3" />
14+
<column name="concentration" />
1415
<column name="sampleid" />
1516

1617
<column name="instrument_run_id" />

SequenceAnalysis/resources/web/SequenceAnalysis/panel/VariantFilterPanel.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ Ext4.define('SequenceAnalysis.panel.VariantFilterPanel', {
6565
handler: function(gridBtn){
6666
this.addFilter('Depth100', 'vc.hasAttribute(\'DP\') && DP > 100.0');
6767
}
68+
},{
69+
text: 'High IMPACT',
70+
scope: this,
71+
handler: function(gridBtn){
72+
this.addFilter('High-IMPACT', 'IMPACT == \'HIGH\'');
73+
}
74+
},{
75+
text: 'CADD PH',
76+
scope: this,
77+
handler: function(gridBtn){
78+
this.addFilter('CADD_PH', 'CADD_PH > 25');
79+
}
6880
},{
6981
text: 'No Genotypes Called',
7082
scope: this,
@@ -100,7 +112,7 @@ Ext4.define('SequenceAnalysis.panel.VariantFilterPanel', {
100112
editor: {
101113
xtype: 'textfield',
102114
allowBlank: false,
103-
stripCharsRe: /(^['"]+)|(['"]+$)/g
115+
stripCharsRe: /(^["]+)|(["]+$)/g
104116
}
105117
//}, {
106118
// dataIndex: 'invert',

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/ProcessVariantsHandler.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ private static String countUsingBcfTools(File vcf, Logger log) throws PipelineJo
501501
{
502502
BcftoolsRunner wrapper = new BcftoolsRunner(log);
503503

504-
return wrapper.executeWithOutput(Arrays.asList(wrapper.getBcfToolsPath().getPath(), "index", "-n", vcf.getPath()));
504+
return StringUtils.trimToNull(wrapper.executeWithOutput(Arrays.asList(wrapper.getBcfToolsPath().getPath(), "index", "-n", vcf.getPath())));
505505
}
506506

507507
public static String getVCFLineCount(File vcf, Logger log, boolean passOnly, boolean useBcfTools) throws PipelineJobException
@@ -528,7 +528,7 @@ public static String getVCFLineCount(File vcf, Logger log, boolean passOnly, boo
528528
String cat = vcf.getName().endsWith(".gz") ? "zcat" : "cat";
529529
SimpleScriptWrapper wrapper = new SimpleScriptWrapper(null);
530530

531-
String ret = wrapper.executeWithOutput(Arrays.asList("/bin/bash", "-c", cat + " \"" + vcf.getPath() + "\" | grep -v \"#\" | " + (passOnly ? "awk ' $7 == \"PASS\" || $7 == \"\\.\" ' | " : "") + "wc -l | awk \" { print $1 } \""));
531+
String ret = StringUtils.trimToNull(wrapper.executeWithOutput(Arrays.asList("/bin/bash", "-c", cat + " \"" + vcf.getPath() + "\" | grep -v \"#\" | " + (passOnly ? "awk ' $7 == \"PASS\" || $7 == \"\\.\" ' | " : "") + "wc -l | awk \" { print $1 } \"")));
532532

533533
//NOTE: unsure how to get awk to omit this warning, so discard it:
534534
//the warning is: escape '\.' treated as plain '.'
@@ -877,10 +877,9 @@ public void performAdditionalMergeTasks(JobContext ctx, PipelineJob job, TaskFil
877877
List<PipelineStepCtx<VariantProcessingStep>> providers = SequencePipelineService.get().getSteps(job, VariantProcessingStep.class);
878878
for (PipelineStepCtx<VariantProcessingStep> stepCtx : providers)
879879
{
880-
VariantProcessingStep step = stepCtx.getProvider().create(ctx);
881-
if (step instanceof VariantProcessingStep.SupportsScatterGather)
880+
if (stepCtx.getProvider() instanceof VariantProcessingStep.SupportsScatterGather ssg)
882881
{
883-
((VariantProcessingStep.SupportsScatterGather)step).performAdditionalMergeTasks(ctx, job, manager, genome, orderedScatterOutputs);
882+
ssg.performAdditionalMergeTasks(ctx, job, manager, genome, orderedScatterOutputs);
884883
}
885884
}
886885
}

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/SequenceOutputHandlerJob.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public File getSerializedOutputFilesFile()
160160
}
161161

162162
@Override
163-
public TaskPipeline getTaskPipeline()
163+
public TaskPipeline<?> getTaskPipeline()
164164
{
165165
return PipelineJobService.get().getTaskPipeline(new TaskId(SequenceOutputHandlerJob.class));
166166
}

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/VariantProcessingRemoteMergeTask.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ private File runDefaultVariantMerge(JobContextImpl ctx, TaskFileManagerImpl mana
237237

238238
if (handler instanceof VariantProcessingStep.SupportsScatterGather)
239239
{
240+
ctx.getLogger().debug("Running additional merge tasks");
240241
((VariantProcessingStep.SupportsScatterGather) handler).performAdditionalMergeTasks(ctx, getPipelineJob(), manager, genome, toConcat);
241242
}
242243

0 commit comments

Comments
 (0)