diff --git a/easyliftover/lifters/abstract.py b/easyliftover/lifters/abstract.py index 29fe500..5b240c5 100644 --- a/easyliftover/lifters/abstract.py +++ b/easyliftover/lifters/abstract.py @@ -60,8 +60,9 @@ def lift_url(self, url: str) -> str: """Lifts a URL.""" raise NotImplementedError + @staticmethod @abstractmethod - def supported_formats(self) -> list: + def supported_formats() -> list: """Returns the supported formats.""" raise NotImplementedError diff --git a/easyliftover/lifters/bed.py b/easyliftover/lifters/bed.py index 761c64b..8e4aad7 100644 --- a/easyliftover/lifters/bed.py +++ b/easyliftover/lifters/bed.py @@ -25,6 +25,7 @@ def __lift_row__(self, row: str) -> "str | None": else: return None - def supported_formats(self) -> list: + @staticmethod + def supported_formats() -> list: """Returns the supported formats.""" return ["bed"] diff --git a/easyliftover/lifters/bedgraph.py b/easyliftover/lifters/bedgraph.py index 15cdb72..fa4baf1 100644 --- a/easyliftover/lifters/bedgraph.py +++ b/easyliftover/lifters/bedgraph.py @@ -25,6 +25,7 @@ def __lift_row__(self, row: str) -> "str | None": else: return None - def supported_formats(self) -> list: + @staticmethod + def supported_formats() -> list: """Returns the supported formats.""" return ["bedgraph", "bg"] diff --git a/easyliftover/lifters/bigwig.py b/easyliftover/lifters/bigwig.py index f04de67..632977d 100644 --- a/easyliftover/lifters/bigwig.py +++ b/easyliftover/lifters/bigwig.py @@ -47,6 +47,7 @@ def lift_bw(self, bw) -> str: return wig - def supported_formats(self) -> list: + @staticmethod + def supported_formats() -> list: """Returns the supported formats.""" return ["bigwig", "bw"] diff --git a/easyliftover/lifters/gff.py b/easyliftover/lifters/gff.py index dd16c3f..58469f2 100644 --- a/easyliftover/lifters/gff.py +++ b/easyliftover/lifters/gff.py @@ -25,6 +25,7 @@ def __lift_row__(self, row: str) -> "str | None": else: return None - def supported_formats(self) -> list: + @staticmethod + def supported_formats() -> list: """Returns the supported formats.""" return ["gff", "gff3", "gtf"] diff --git a/easyliftover/lifters/vcf.py b/easyliftover/lifters/vcf.py index 976b1d1..786007a 100644 --- a/easyliftover/lifters/vcf.py +++ b/easyliftover/lifters/vcf.py @@ -24,6 +24,7 @@ def __lift_row__(self, row: str) -> "str | None": else: return None - def supported_formats(self) -> list: + @staticmethod + def supported_formats() -> list: """Returns the supported formats.""" return ["vcf"] diff --git a/easyliftover/lifters/wig.py b/easyliftover/lifters/wig.py index b478fd4..dab06b4 100644 --- a/easyliftover/lifters/wig.py +++ b/easyliftover/lifters/wig.py @@ -61,6 +61,7 @@ def lift_content(self, content: str) -> str: return "\n".join(result) - def supported_formats(self) -> list: + @staticmethod + def supported_formats() -> list: """Returns the supported formats.""" return ["wig"]