Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

October 2024 release #339

Merged
merged 19 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2232,6 +2232,7 @@
"@types/react-is" "^16.7.1 || ^17.0.0"
prop-types "^15.8.1"
react-is "^18.2.0"

"@nicolo-ribaudo/[email protected]":
version "5.1.1-v1"
resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz#dbf733a965ca47b1973177dc0bb6c889edcfb129"
Expand Down Expand Up @@ -11025,9 +11026,9 @@ webidl-conversions@^6.1.0:
integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==

webpack-dev-middleware@^5.3.1:
version "5.3.3"
resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz#efae67c2793908e7311f1d9b06f2a08dcc97e51f"
integrity sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==
version "5.3.4"
resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-5.3.4.tgz#eb7b39281cbce10e104eb2b8bf2b63fce49a3517"
integrity sha512-BVdTqhhs+0IfoeAf7EoH5WE+exCmqGerHfDM0IL096Px60Tq2Mn9MAbnaGUe6HiMa41KMCYF19gyzZmBcq/o4Q==
dependencies:
colorette "^2.0.10"
memfs "^3.4.3"
Expand Down
28 changes: 9 additions & 19 deletions server/tests/integration/test_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,41 +148,31 @@ async def test_build_tx_segment_ec(

# test handle invalid transcript
await check_response(
"/api/construct/structural_element/tx_segment_ect?transcript=NM_0012529.3&exon_start=3",
"/api/construct/structural_element/tx_segment_ec?transcript=NM_0012529.3&exon_start=3",
{"warnings": ["No exons found given NM_0012529.3"]},
check_tx_element_response,
)


@pytest.mark.asyncio()
async def test_build_segment_gct(
check_response, check_tx_element_response, tpm3_tx_t_element
async def test_build_segment_gc(
check_response, check_tx_element_response, tpm3_tx_g_element, tpm3_tx_t_element
):
"""Test correct functioning of transcript segment element construction using
genomic coordinates and transcript.
genomic coordinates and gene name.
"""
await check_response(
"/api/construct/structural_element/tx_segment_gct?transcript=NM_152263.4&chromosome=NC_000001.11&start=154171416&end=154171417",
{"element": tpm3_tx_t_element},
check_tx_element_response,
)
await check_response(
"/api/construct/structural_element/tx_segment_gct?transcript=refseq%3ANM_152263.4&chromosome=NC_000001.11&start=154171416&end=154171417",
{"element": tpm3_tx_t_element},
"/api/construct/structural_element/tx_segment_gc?gene=TPM3&chromosome=NC_000001.11&start=154171416&end=154171417",
{"element": tpm3_tx_g_element},
check_tx_element_response,
)


@pytest.mark.asyncio()
async def test_build_segment_gc(
check_response, check_tx_element_response, tpm3_tx_g_element
):
"""Test correct functioning of transcript segment element construction using
genomic coordinates and gene name.
genomic coordinates and transcript.
"""
await check_response(
"/api/construct/structural_element/tx_segment_gc?gene=TPM3&chromosome=NC_000001.11&start=154171416&end=154171417",
{"element": tpm3_tx_g_element},
"/api/construct/structural_element/tx_segment_gc?transcript=NM_152263.4&chromosome=NC_000001.11&start=154171416&end=154171417",
{"element": tpm3_tx_t_element},
check_tx_element_response,
)

Expand Down