Skip to content

Commit

Permalink
Automated release-1.19.0 to rc merge
Browse files Browse the repository at this point in the history
  • Loading branch information
inodb authored Nov 27, 2018
2 parents 99a3afc + 15bcbd6 commit 9e294f5
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
SELECT sample_list_list.SAMPLE_ID FROM sample_list_list
INNER JOIN sample_list ON sample_list_list.LIST_ID = sample_list.LIST_ID
WHERE sample_list.STABLE_ID = #{sampleListId}
AND sample_list_list.SAMPLE_ID = sample.INTERNAL_ID
)
</where>
</sql>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
SELECT sample_list_list.SAMPLE_ID FROM sample_list_list
INNER JOIN sample_list ON sample_list_list.LIST_ID = sample_list.LIST_ID
WHERE sample_list.STABLE_ID = #{sampleListId}
AND sample_list_list.SAMPLE_ID = copy_number_seg.SAMPLE_ID
)
</select>
</mapper>
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
SELECT sample_list_list.SAMPLE_ID FROM sample_list_list
INNER JOIN sample_list ON sample_list_list.LIST_ID = sample_list.LIST_ID
WHERE sample_list.STABLE_ID = #{sampleListId}
AND sample_list_list.SAMPLE_ID = sample_cna_event.SAMPLE_ID
)
<if test="entrezGeneIds != null and !entrezGeneIds.isEmpty()">
AND cna_event.ENTREZ_GENE_ID IN
Expand Down Expand Up @@ -213,7 +214,9 @@
<foreach item="item" collection="molecularProfileIds" open="(" separator="," close=")">
#{item}
</foreach>
</if>)
</if>
AND sample.INTERNAL_ID = sample_cna_event.SAMPLE_ID
AND genetic_profile.GENETIC_PROFILE_ID = sample_cna_event.GENETIC_PROFILE_ID)
</if>
<if test="entrezGeneIds != null">
AND (cna_event.ENTREZ_GENE_ID, cna_event.ALTERATION) IN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
SELECT sample_list_list.SAMPLE_ID FROM sample_list_list
INNER JOIN sample_list ON sample_list_list.LIST_ID = sample_list.LIST_ID
WHERE sample_list.STABLE_ID = #{sampleListId}
AND sample_list_list.SAMPLE_ID = sample_profile.SAMPLE_ID
)
</select>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
SELECT sample_list_list.SAMPLE_ID FROM sample_list_list
INNER JOIN sample_list ON sample_list_list.LIST_ID = sample_list.LIST_ID
WHERE sample_list.STABLE_ID = #{sampleListId}
AND sample_list_list.SAMPLE_ID = mutation.SAMPLE_ID
)
<if test="entrezGeneIds != null and !entrezGeneIds.isEmpty()">
AND mutation.ENTREZ_GENE_ID IN
Expand Down Expand Up @@ -126,7 +127,9 @@
<foreach item="item" collection="molecularProfileIds" open="(" separator="," close=")">
#{item}
</foreach>
</if>)
</if>
AND sample.INTERNAL_ID = mutation.SAMPLE_ID
AND genetic_profile.GENETIC_PROFILE_ID = mutation.GENETIC_PROFILE_ID)
</if>
<if test="sampleIds == null">
genetic_profile.STABLE_ID IN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
<foreach item="item" collection="list" open="(" separator="," close=")">
#{item}
</foreach>
AND sample_list_list.SAMPLE_ID = sample.INTERNAL_ID
)
</select>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@RunWith(SpringJUnit4ClassRunner.class)
Expand Down Expand Up @@ -224,14 +223,14 @@ public void getMutationsInMultipleMolecularProfiles() throws Exception {

Assert.assertEquals(3, result.size());
Mutation mutation1 = result.get(0);
Assert.assertEquals("acc_tcga_mutations", mutation1.getMolecularProfileId());
Assert.assertEquals("TCGA-A1-B0SO-01", mutation1.getSampleId());
Assert.assertEquals("study_tcga_pub_mutations", mutation1.getMolecularProfileId());
Assert.assertEquals("TCGA-A1-A0SH-01", mutation1.getSampleId());
Mutation mutation2 = result.get(1);
Assert.assertEquals("study_tcga_pub_mutations", mutation2.getMolecularProfileId());
Assert.assertEquals("TCGA-A1-A0SH-01", mutation2.getSampleId());
Mutation mutation3 = result.get(2);
Assert.assertEquals("study_tcga_pub_mutations", mutation3.getMolecularProfileId());
Assert.assertEquals("TCGA-A1-A0SH-01", mutation3.getSampleId());
Assert.assertEquals("acc_tcga_mutations", mutation3.getMolecularProfileId());
Assert.assertEquals("TCGA-A1-B0SO-01", mutation3.getSampleId());
}

@Test
Expand Down

0 comments on commit 9e294f5

Please sign in to comment.