fusor.translator¶
Module for translating output from fusion detection methods to FUSOR AssayedFusion objects
- class fusor.translator.GeneFusionPartners(**data)[source]¶
Class for defining gene fusion partners
-
gene_3prime_element:
GeneElement|UnknownGeneElement|MultiplePossibleGenesElement[source]¶
-
gene_5prime_element:
GeneElement|UnknownGeneElement|MultiplePossibleGenesElement[source]¶
-
gene_3prime_element:
- class fusor.translator.Translator(fusor)[source]¶
Class for translating outputs from different fusion detection algorithms to FUSOR AssayedFusion objects
- async from_arriba(arriba, coordinate_type, rb)[source]¶
Parse Arriba output to create AssayedFusion object
- Parameters:
arriba (
Arriba) – Output from Arriba callercoordinate_type (
CoordinateType) – If the coordinate is inter-residue or residuerb (
Assembly) – The reference build used to call the fusion
- Return type:
- Returns:
An AssayedFusion object, if construction is successful
- async from_cicero(cicero, coordinate_type, rb)[source]¶
Parse CICERO output to create AssayedFusion object
- Parameters:
cicero (
Cicero) – Output from CICERO callercoordinate_type (
CoordinateType) – If the coordinate is inter-residue or residuerb (
Assembly) – The reference build used to call the fusion
- Return type:
AssayedFusion|str- Returns:
An AssayedFusion object, if construction is successful
- async from_civic(civic)[source]¶
Convert CIViC record to Categorical Fusion
:param civic A CIVIC object :return A CategoricalFusion object, if construction is successful
- Return type:
- async from_enfusion(enfusion, coordinate_type, rb)[source]¶
Parse EnFusion output to create AssayedFusion object
- Parameters:
enfusion (
EnFusion) – Output from EnFusion callercoordinate_type (
CoordinateType) – If the coordinate is inter-residue or residuerb (
Assembly) – The reference build used to call the fusion
- Return type:
- Returns:
An AssayedFusion object, if construction is successful
- async from_fusion_catcher(fusion_catcher, coordinate_type, rb)[source]¶
Parse FusionCatcher output to create AssayedFusion object
- Parameters:
fusion_catcher (
FusionCatcher) – Output from FusionCatcher callercoordinate_type (
CoordinateType) – If the coordinate is inter-residue or residuerb (
Assembly) – The reference build used to call the fusion
- Return type:
- Returns:
An AssayedFusion object, if construction is successful
- async from_fusion_map(fmap_row, coordinate_type, rb)[source]¶
Parse FusionMap output to create FUSOR AssayedFusion object
- Parameters:
fmap_row (
DataFrame) – A row of FusionMap outputrb (
Assembly) – The reference build used to call the fusioncoordinate_type (
CoordinateType) – If the coordinate is inter-residue or residue
- Return type:
- Returns:
An AssayedFusion object, if construction is successful
- async from_genie(genie, coordinate_type, rb)[source]¶
Parse GENIE output to create AssayedFusion object
- Parameters:
genie (
Genie) – Output from GENIE datasetcoordinate_type (
CoordinateType) – If the coordinate is inter-residue or residuerb (
Assembly) – The reference build used to call the fusion
- Return type:
- Returns:
An AssayedFusion object, if construction is successful
- async from_jaffa(jaffa, coordinate_type, rb)[source]¶
Parse JAFFA fusion output to create AssayedFusion object
- Parameters:
JAFFA – Output from JAFFA caller
coordinate_type (
CoordinateType) – If the coordinate is inter-residue or residuerb (
Assembly) – The reference build used to call the fusion
- Return type:
Optional[AssayedFusion]- Returns:
An AssayedFusion object, if construction is successful
- async from_mapsplice(mapsplice_row, coordinate_type, rb)[source]¶
Parse MapSplice output to create AssayedFusion object
- Parameters:
mapsplice_row (
DataFrame) – A row of MapSplice outputrb (
Assembly) – The reference build used to call the fusioncoordinate_type (
CoordinateType) – If the coordinate is inter-residue or residue
- Retun:
An AssayedFusion object, if construction is successful
- Return type:
- async from_star_fusion(star_fusion, coordinate_type, rb)[source]¶
Parse STAR-Fusion output to create AssayedFusion object
- Parameters:
star_fusion (
STARFusion) – Output from STAR-Fusion callercoordinate_type (
CoordinateType) – If the coordinate is inter-residue or residuerb (
Assembly) – The reference build used to call the fusion
- Return type:
- Returns:
An AssayedFusion object, if construction is successful