Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bigWig_visu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LBMC
ReGArDS
Projects_Analyzes
bigWig_visu
Commits
b2bc05e3
Commit
b2bc05e3
authored
3 years ago
by
nfontrod
Browse files
Options
Downloads
Patches
Plain Diff
src/bed_handler/filter_bed.py: change in filter_bed types
parent
583ad69e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/bed_handler/filter_bed.py
+3
-2
3 additions, 2 deletions
src/bed_handler/filter_bed.py
with
3 additions
and
2 deletions
src/bed_handler/filter_bed.py
+
3
−
2
View file @
b2bc05e3
...
...
@@ -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
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment