fusor.harvester¶
Harvester methods for output from different fusion callers
- class fusor.harvester.ArribaHarvester(translator, assembly)[source]¶
Class for harvesting Arriba data
- class fusor.harvester.CIVICHarvester(translator, update_cache=False, update_from_remote=True, local_cache_path=civic.LOCAL_CACHE_PATH)[source]¶
Class for harvesting CIViC Fusion objects
- __init__(translator, update_cache=False, update_from_remote=True, local_cache_path=civic.LOCAL_CACHE_PATH)[source]¶
Initialize CivicHarvester class.
- Parameters:
translator (
Translator) – A Translator class instanceupdate_cache (
bool) –Trueif civicpy cache should be updated. Note this will take several minutes.Falseif to use local cache.update_from_remote (
bool) – If set toTrue, civicpy.update_cache will first download the remote cache designated by REMOTE_CACHE_URL, store it to LOCAL_CACHE_PATH, and then load the downloaded cache into memory. This parameter defaults toTrue.local_cache_path (
str) – A filepath destination for the retrieved remote cache. This parameter defaults to LOCAL_CACHE_PATH from civicpy.
- class fusor.harvester.CiceroHarvester(translator, assembly)[source]¶
Class for harvesting Cicero data
-
column_rename:
ClassVar[dict[str,str]] = {'chrA': 'chr_5prime', 'chrB': 'chr_3prime', 'coverageA': 'coverage_5prime', 'coverageB': 'coverage_3prime', 'geneA': 'gene_5prime', 'geneB': 'gene_3prime', 'posA': 'pos_5prime', 'posB': 'pos_3prime', 'readsA': 'reads_5prime', 'readsB': 'reads_3prime', 'type': 'event_type'}[source]¶
-
column_rename:
- class fusor.harvester.EnFusionHarvester(translator, assembly)[source]¶
Class for harvesting EnFusion data
- class fusor.harvester.FusionCallerHarvester(translator, assembly)[source]¶
ABC for fusion caller harvesters
- __init__(translator, assembly)[source]¶
Initialize FusionCallerHarvester
- Parameters:
translator (
Translator) – A Translator objectassembly (
Assembly) – The assembly that the coordinates are described on
-
fusion_caller:
FusionCaller[source]¶
- async load_records(fusion_path)[source]¶
Convert rows of fusion caller output to Pydantic classes
- Parameters:
fusion_path (
Path) – The path to the fusions file- Raises:
ValueError – if the file does not exist at the specified path
- Return type:
list[FusionCaller]- Returns:
A list of translated fusions, represented as Pydantic objects
-
translator:
Translator[source]¶
- class fusor.harvester.FusionCatcherHarvester(translator, assembly)[source]¶
Class for harvesting FusionCatcher data
-
column_rename:
ClassVar[dict[str,str]] = {'Fusion_point_for_gene_1(5end_fusion_partner)': 'five_prime_fusion_point', 'Fusion_point_for_gene_2(3end_fusion_partner)': 'three_prime_fusion_point', 'Fusion_sequence': 'fusion_sequence', 'Gene_1_symbol(5end_fusion_partner)': 'five_prime_partner', 'Gene_2_symbol(3end_fusion_partner)': 'three_prime_partner', 'Predicted_effect': 'predicted_effect', 'Spanning_pairs': 'spanning_reads', 'Spanning_unique_reads': 'spanning_unique_reads'}[source]¶
- fusion_caller[source]¶
alias of
FusionCatcher
- async translator_method(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
-
column_rename:
- class fusor.harvester.GenieHarvester(translator, assembly)[source]¶
Class for harvesting Genie data
-
column_rename:
ClassVar[dict[str,str]] = {'Annotation': 'annot', 'Site1_Chromosome': 'site1_chrom', 'Site1_Hugo_Symbol': 'site1_hugo', 'Site1_Position': 'site1_pos', 'Site2_Chromosome': 'site2_chrom', 'Site2_Effect_On_Frame': 'reading_frame', 'Site2_Hugo_Symbol': 'site2_hugo', 'Site2_Position': 'site2_pos'}[source]¶
-
column_rename:
- class fusor.harvester.JAFFAHarvester(translator, assembly)[source]¶
Class for harvesting JAFFA data
- class fusor.harvester.StarFusionHarvester(translator, assembly)[source]¶
Class for harvesting STAR-Fusion data
-
column_rename:
ClassVar[dict[str,str]] = {'JunctionReadCount': 'junction_read_count', 'LeftBreakpoint': 'left_breakpoint', 'LeftGene': 'left_gene', 'RightBreakpoint': 'right_breakpoint', 'RightGene': 'right_gene', 'SpanningFragCount': 'spanning_frag_count'}[source]¶
- fusion_caller[source]¶
alias of
STARFusion
-
column_rename: