Commit debea658 authored by nfontrod's avatar nfontrod
Browse files

src/visu/figure_maker.py: small change in load_bed

parent 56acd6e8
Pipeline #179 passed with stages
in 1 minute and 11 seconds
......@@ -36,8 +36,9 @@ def load_bed(bed: Path, bed_name: str) -> List[List[Union[int, str]]]:
for line in inbed:
if not line.startswith("#"):
cline = line.replace("\n", "").split("\t")
my_id = int(cline[3]) if cline[3].isdigit() else cline[3]
list_regions.append([cline[0], int(cline[1]), int(cline[2]),
int(cline[3]), cline[4], cline[5],
my_id, cline[4], cline[5],
bed_name])
return list_regions
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment