NB: Please follow all the steps before submitting a PR. Make sure to submit also the test results.
- Implement a new tool in
fusion_report/parsers/{tool_name.py}
.
# Replace Test with the name of the new tool
"""Test module"""
from typing import Any, Dict, List, Tuple
from fusion_report.parsers.abstract_fusion import AbstractFusionTool
class Test(AbstractFusionTool):
"""Test tool parser."""
def parse(self, line, delimiter='\t') -> Tuple[str, Dict[str, Any]]:
col: List[str] = line.strip().split(delimiter) # replace delimiter if different
fusion: str = f'{col[0]}'
details: Dict[str, Any] = {
'position': f'{col[2]}#{col[3]}'.replace('chr', ''),
'score': int(col[1]),
}
return fusion, details