StructuralVariant
Bases: Variant
This encapsulates variant about a structural variant For instance, we may see things like this chr7.hg19:g.(35674000_37280000)_(46_111_000_46_598_000)del (fuzzy boundaries) chr7.hg19:g(38521704_45810267)del (precise boundaries) rsa7p14.1(kit P179)x1 46,XY.ish del(7)(p14.1)(RP11-816F16-) 46,XX.ish del(7)(p14.1p14.1)(GLI3-) 46,XY.ish del(7)(p14.1)(GLI3-)[56]/7p14.1(GLI3x2)[44] (various ICSN or bespoke) Our strategy is not to model these variants precisely. Instead, for genotype-phenotype analysis, it may be enough to know that these are structural variants and thus likely to be complete loss of function. So we record something about the variant and add it by hand to the Individual object We want to be able to create a GA4GH VariationDescriptor object with the following fields - id - required, autogenerate if user provides no id - variant (VRS) -- leave this field empty - label -- the original contents of the cell, e.g., 46,XY.ish del(7)(p14.1)(RP11-816F16-) - gene context -- the gene that is disrupted by the structural variant - expressions, empty - vcf_record, empty - structural type: Ontology Class - allelic state: het/hom/emi etc.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cell_contents
|
str
|
the string from the original table that we want to map as a structural variant |
required |
gene_symbol
|
str
|
the gene affected by the structural variant, e.g., GLI3 |
required |
gene_id
|
str
|
the identifier (using HGNC) of the gene, e.g., GLI3 is HGNC:4319 |
required |
sequence_ontology_id
|
str
|
An identifier from the Sequence Ontology |
required |
sequence_ontology_label
|
str
|
the SO label corresponding to the ID |
required |
variant_id
|
None
|
an identifier for the variant, optional |
required |
Source code in pyphetools/creation/structural_variant.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
|
chromosomal_deletion(cell_contents, gene_symbol, gene_id, variant_id=None)
staticmethod
create a StructuralVariant object for a chromosomal deletion
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cell_contents
|
str
|
the string from the original table that we want to map as a structural variant |
required |
gene_symbol
|
str
|
the gene affected by the structural variant, e.g., GLI3 |
required |
gene_id
|
str
|
the identifier (using HGNC) of the gene, e.g., GLI3 is HGNC:4319 |
required |
variant_id
|
str, optional
|
an identifier for the variant |
None
|
Source code in pyphetools/creation/structural_variant.py
chromosomal_duplication(cell_contents, gene_symbol, gene_id, variant_id=None)
staticmethod
create a StructuralVariant object for a chromosomal duplication
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cell_contents
|
str
|
the string from the original table that we want to map as a structural variant |
required |
gene_symbol
|
str
|
the gene affected by the structural variant, e.g., GLI3 |
required |
gene_id
|
str
|
the identifier (using HGNC) of the gene, e.g., GLI3 is HGNC:4319 |
required |
variant_id
|
str, optional
|
an identifier for the variant |
None
|
Source code in pyphetools/creation/structural_variant.py
chromosomal_inversion(cell_contents, gene_symbol, gene_id, variant_id=None)
staticmethod
create a StructuralVariant object for a chromosomal inversion
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cell_contents
|
str
|
the string from the original table that we want to map as a structural variant |
required |
gene_symbol
|
str
|
the gene affected by the structural variant, e.g., GLI3 |
required |
gene_id
|
str
|
the identifier (using HGNC) of the gene, e.g., GLI3 is HGNC:4319 |
required |
variant_id
|
str, optional
|
an identifier for the variant |
None
|
Source code in pyphetools/creation/structural_variant.py
chromosomal_translocation(cell_contents, gene_symbol, gene_id, variant_id=None)
staticmethod
create a StructuralVariant object for a chromosomal translocation
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cell_contents
|
str
|
the string from the original table that we want to map as a structural variant |
required |
gene_symbol
|
str
|
the gene affected by the structural variant, e.g., GLI3 |
required |
gene_id
|
str
|
the identifier (using HGNC) of the gene, e.g., GLI3 is HGNC:4319 |
required |
variant_id
|
str, optional
|
an identifier for the variant |
None
|
Source code in pyphetools/creation/structural_variant.py
to_ga4gh_variant_interpretation(acmg=None)
Transform this Variant object into a "variantInterpretation" message of the GA4GH Phenopacket schema
Source code in pyphetools/creation/structural_variant.py
to_variant_interpretation_202(acmg=None)
Transform this Variant object into a "variantInterpretation" message of the GA4GH Phenopacket schema