Skip to content
Snippets Groups Projects
Commit b2bc05e3 authored by nfontrod's avatar nfontrod
Browse files

src/bed_handler/filter_bed.py: change in filter_bed types

parent 583ad69e
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ a file, that can be find in a specific column in the bed file
"""
from pathlib import Path
from typing import List
from typing import List, Union
from .config import TestConfig, OutputBed
import pandas as pd
import lazyparser as lp
......@@ -30,7 +30,8 @@ def select_ft_of_interest(gene_file: Path) -> List[int]:
gene_id for gene_id in gene_list]
def filter_bed(bed_file: Path, gene_list: List[int], col_name: str, keep: bool
def filter_bed(bed_file: Path, gene_list: List[Union[int, float]],
col_name: str, keep: bool
) -> pd.DataFrame:
"""
load a bed containing FasterDB gene and only recover the gene of \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment