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
7f77571e
Commit
7f77571e
authored
4 years ago
by
nfontrod
Browse files
Options
Downloads
Patches
Plain Diff
src/visu/__main__.py: add parameter ylim
parent
0458f11d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/visu/__main__.py
+7
-3
7 additions, 3 deletions
src/visu/__main__.py
with
7 additions
and
3 deletions
src/visu/__main__.py
+
7
−
3
View file @
7f77571e
...
@@ -10,7 +10,7 @@ gene regions from ChIP-seq experiment.
...
@@ -10,7 +10,7 @@ gene regions from ChIP-seq experiment.
from
.figure_maker
import
create_figure
from
.figure_maker
import
create_figure
import
lazyparser
as
lp
import
lazyparser
as
lp
from
pathlib
import
Path
from
pathlib
import
Path
from
typing
import
List
from
typing
import
List
,
Optional
@lp.parse
(
design
=
'
file
'
,
region_beds
=
'
file
'
,
@lp.parse
(
design
=
'
file
'
,
region_beds
=
'
file
'
,
...
@@ -21,7 +21,7 @@ def launcher(design: str, bw_folder: str, region_beds: List[str],
...
@@ -21,7 +21,7 @@ def launcher(design: str, bw_folder: str, region_beds: List[str],
figure_type
:
str
=
'
metagene
'
,
norm
:
str
=
'
None
'
,
figure_type
:
str
=
'
metagene
'
,
norm
:
str
=
'
None
'
,
show_replicate
:
str
=
'
y
'
,
environment
:
List
[
int
]
=
(
0
,
0
),
show_replicate
:
str
=
'
y
'
,
environment
:
List
[
int
]
=
(
0
,
0
),
border_names
:
List
[
str
]
=
(
''
,
''
),
border_names
:
List
[
str
]
=
(
''
,
''
),
output
:
str
=
'
.
'
)
->
None
:
output
:
str
=
'
.
'
,
ylim
:
List
[
float
]
=
(
None
,
None
)
)
->
None
:
"""
"""
Create A metagene or a barplot figure from bigwig file on regions defined
\
Create A metagene or a barplot figure from bigwig file on regions defined
\
in the bed file provided with
'
region_bed
'
parameter.
in the bed file provided with
'
region_bed
'
parameter.
...
@@ -47,7 +47,11 @@ def launcher(design: str, bw_folder: str, region_beds: List[str],
...
@@ -47,7 +47,11 @@ def launcher(design: str, bw_folder: str, region_beds: List[str],
the number of bin used to represent those surrounding regions.
the number of bin used to represent those surrounding regions.
:param border_names: The name of the borders
:param border_names: The name of the borders
:param output: Folder where the results will be created
:param output: Folder where the results will be created
:param ylim: The y-axis range (default None)
"""
"""
if
ylim
[
0
]
is
not
None
and
(
len
(
ylim
)
!=
2
or
ylim
[
0
]
>=
ylim
[
1
]):
raise
ValueError
(
"
The ylim must have two values and the first value
"
"
must be lower to the second value
"
)
if
environment
[
0
]
<
0
or
environment
[
1
]
<
0
or
\
if
environment
[
0
]
<
0
or
environment
[
1
]
<
0
or
\
environment
[
0
]
<
environment
[
1
]:
environment
[
0
]
<
environment
[
1
]:
raise
ValueError
(
f
"
The two values given with --environment must
"
raise
ValueError
(
f
"
The two values given with --environment must
"
...
@@ -62,7 +66,7 @@ def launcher(design: str, bw_folder: str, region_beds: List[str],
...
@@ -62,7 +66,7 @@ def launcher(design: str, bw_folder: str, region_beds: List[str],
reg_beds
=
[
Path
(
p
)
for
p
in
region_beds
]
reg_beds
=
[
Path
(
p
)
for
p
in
region_beds
]
create_figure
(
Path
(
design
),
Path
(
bw_folder
),
reg_beds
,
create_figure
(
Path
(
design
),
Path
(
bw_folder
),
reg_beds
,
region_names
,
nb_bin
,
figure_type
,
norm
,
show_rep
,
region_names
,
nb_bin
,
figure_type
,
norm
,
show_rep
,
environment
,
border_names
,
Path
(
output
))
environment
,
border_names
,
Path
(
output
)
,
ylim
)
launcher
()
launcher
()
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