Skip to content

Commit

Permalink
rename variable from allele to cnc or cnx
Browse files Browse the repository at this point in the history
  • Loading branch information
ahwagner committed Jul 17, 2024
1 parent 398d505 commit 289a4c4
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions notebooks/getting_started/5_Exploring_the_CnvTranslator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,16 @@
"data": {
"text/plain": [
"{'id': 'ga4gh:CX.0M5VkV5v504_laQURFMEsqzZGcOF9YEw',\n",
" 'type': 'CopyNumberChange',\n",
" 'type': <VrsType.CN_CHANGE: 'CopyNumberChange'>,\n",
" 'digest': '0M5VkV5v504_laQURFMEsqzZGcOF9YEw',\n",
" 'location': {'id': 'ga4gh:SL.GSJAEJXFDz7Nq6VlJj5NTEku48MmteUU',\n",
" 'type': 'SequenceLocation',\n",
" 'type': <VrsType.SEQ_LOC: 'SequenceLocation'>,\n",
" 'digest': 'GSJAEJXFDz7Nq6VlJj5NTEku48MmteUU',\n",
" 'sequenceReference': {'type': 'SequenceReference',\n",
" 'sequenceReference': {'type': <VrsType.SEQ_REF: 'SequenceReference'>,\n",
" 'refgetAccession': 'SQ.eK4D2MosgK_ivBkgi6FVPg5UXs1bYESm'},\n",
" 'start': 45002866,\n",
" 'end': 45015056},\n",
" 'copyChange': 'efo:0030067'}"
" 'copyChange': <CopyChange.EFO_0030067: 'efo:0030067'>}"
]
},
"execution_count": 4,
Expand All @@ -189,8 +189,8 @@
],
"source": [
"cnv_translator = CnvTranslator(data_proxy=seqrepo_dataproxy)\n",
"allele = cnv_translator.translate_from(\"NC_000014.9:g.45002867_45015056del\", \"hgvs\", copy_change=\"efo:0030067\")\n",
"allele.model_dump(exclude_none=True)"
"cnc = cnv_translator.translate_from(\"NC_000014.9:g.45002867_45015056del\", \"hgvs\", copy_change=\"efo:0030067\")\n",
"cnc.model_dump(exclude_none=True)"
]
},
{
Expand Down Expand Up @@ -225,16 +225,16 @@
"data": {
"text/plain": [
"{'id': 'ga4gh:CX.0BN4vrqPrLPAZYsQEAPnG4IS8AYeBGe1',\n",
" 'type': 'CopyNumberChange',\n",
" 'type': <VrsType.CN_CHANGE: 'CopyNumberChange'>,\n",
" 'digest': '0BN4vrqPrLPAZYsQEAPnG4IS8AYeBGe1',\n",
" 'location': {'id': 'ga4gh:SL.tydo6UFL8Y60L5Me3k8AJfljURO9vYn9',\n",
" 'type': 'SequenceLocation',\n",
" 'type': <VrsType.SEQ_LOC: 'SequenceLocation'>,\n",
" 'digest': 'tydo6UFL8Y60L5Me3k8AJfljURO9vYn9',\n",
" 'sequenceReference': {'type': 'SequenceReference',\n",
" 'sequenceReference': {'type': <VrsType.SEQ_REF: 'SequenceReference'>,\n",
" 'refgetAccession': 'SQ.KEO-4XBcm1cxeo_DIQ8_ofqGUkp4iZhI'},\n",
" 'start': 75502957,\n",
" 'end': 76045032},\n",
" 'copyChange': 'efo:0030070'}"
" 'copyChange': <CopyChange.EFO_0030070: 'efo:0030070'>}"
]
},
"execution_count": 5,
Expand All @@ -243,8 +243,8 @@
}
],
"source": [
"allele = cnv_translator.translate_from(\"NC_000009.12:g.75502958_76045032dup\", \"hgvs\", copy_change=\"efo:0030070\")\n",
"allele.model_dump(exclude_none=True)"
"cnx = cnv_translator.translate_from(\"NC_000009.12:g.75502958_76045032dup\", \"hgvs\", copy_change=\"efo:0030070\")\n",
"cnx.model_dump(exclude_none=True)"
]
},
{
Expand Down Expand Up @@ -292,12 +292,12 @@
"data": {
"text/plain": [
"{'id': 'ga4gh:CN.O_QHImmfErh9jDFkJaypPPvUmnj7EM70',\n",
" 'type': 'CopyNumberCount',\n",
" 'type': <VrsType.CN_COUNT: 'CopyNumberCount'>,\n",
" 'digest': 'O_QHImmfErh9jDFkJaypPPvUmnj7EM70',\n",
" 'location': {'id': 'ga4gh:SL.hBVWalem_rNclxjmUuT9CHbEGCdlqW9L',\n",
" 'type': 'SequenceLocation',\n",
" 'type': <VrsType.SEQ_LOC: 'SequenceLocation'>,\n",
" 'digest': 'hBVWalem_rNclxjmUuT9CHbEGCdlqW9L',\n",
" 'sequenceReference': {'type': 'SequenceReference',\n",
" 'sequenceReference': {'type': <VrsType.SEQ_REF: 'SequenceReference'>,\n",
" 'refgetAccession': 'SQ.HxuclGHh0XCDuF8x6yQrpHUBL7ZntAHc'},\n",
" 'start': 85623,\n",
" 'end': 57073230},\n",
Expand All @@ -310,8 +310,8 @@
}
],
"source": [
"allele = cnv_translator.translate_from(\"NC_000004.12:g.85624_57073230dup\", \"hgvs\", copies=\"3\")\n",
"allele.model_dump(exclude_none=True)"
"cnc = cnv_translator.translate_from(\"NC_000004.12:g.85624_57073230dup\", \"hgvs\", copies=\"3\")\n",
"cnc.model_dump(exclude_none=True)"
]
},
{
Expand Down Expand Up @@ -346,12 +346,12 @@
"data": {
"text/plain": [
"{'id': 'ga4gh:CN.WDzlT9oUq4IcQrVRWGH0dZnARnFBotCS',\n",
" 'type': 'CopyNumberCount',\n",
" 'type': <VrsType.CN_COUNT: 'CopyNumberCount'>,\n",
" 'digest': 'WDzlT9oUq4IcQrVRWGH0dZnARnFBotCS',\n",
" 'location': {'id': 'ga4gh:SL.H1Zh5xdBqamBjwVE9orWdY_uBkpEMH1V',\n",
" 'type': 'SequenceLocation',\n",
" 'type': <VrsType.SEQ_LOC: 'SequenceLocation'>,\n",
" 'digest': 'H1Zh5xdBqamBjwVE9orWdY_uBkpEMH1V',\n",
" 'sequenceReference': {'type': 'SequenceReference',\n",
" 'sequenceReference': {'type': <VrsType.SEQ_REF: 'SequenceReference'>,\n",
" 'refgetAccession': 'SQ.5ZUqxCmDDgN4xTRbaSjN8LwgZironmB8'},\n",
" 'start': 46111352,\n",
" 'end': 46119948},\n",
Expand All @@ -364,8 +364,8 @@
}
],
"source": [
"allele = cnv_translator.translate_from(\"NC_000021.9:g.46111353_46119948del\", \"hgvs\", copies=\"1\")\n",
"allele.model_dump(exclude_none=True)"
"cnc = cnv_translator.translate_from(\"NC_000021.9:g.46111353_46119948del\", \"hgvs\", copies=\"1\")\n",
"cnc.model_dump(exclude_none=True)"
]
}
],
Expand Down

0 comments on commit 289a4c4

Please sign in to comment.