Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ChIA-PET_network
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
Model registry
Operate
Environments
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
ChIA-PET_network
Commits
df60bf2a
Commit
df60bf2a
authored
4 years ago
by
nfontrod
Browse files
Options
Downloads
Patches
Plain Diff
src/nt_composition/__main__.py: add inflation parameter
parent
d832cda5
Branches
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/nt_composition/__main__.py
+7
-4
7 additions, 4 deletions
src/nt_composition/__main__.py
with
7 additions
and
4 deletions
src/nt_composition/__main__.py
+
7
−
4
View file @
df60bf2a
...
...
@@ -21,7 +21,8 @@ import lazyparser as lp
def
launcher
(
weight
:
int
=
1
,
global_weight
:
int
=
0
,
ft_type
:
str
=
'
nt
'
,
same_gene
:
bool
=
False
,
compute_mean
:
bool
=
True
,
iteration
:
int
=
10000
,
kind
:
str
=
'
density
'
,
community_size
:
int
=
-
1
,
inter_chr
:
bool
=
False
,
community_size
:
int
=
-
1
,
inflation
:
float
=
1.5
,
inter_chr
:
bool
=
False
,
level
:
str
=
"
exon
"
,
logging_level
:
str
=
"
DISABLE
"
):
"""
...
...
@@ -47,6 +48,8 @@ def launcher(weight: int = 1, global_weight: int = 0, ft_type: str = 'nt',
randomly expected. (default :
'
density
'
).*
:param community_size: consider only exons within communities bigger
\
than community size. if community_size = -1. This option is deactivated.
:param inflation: The inflation parameter. This parameter is used only
\
if community size is not -1. (default 1.5).
:param inter_chr: True to only get inter-chromosomal interactions
\
False else (default: False)
:param level: The kind of feature to analyse (exon or gene)
...
...
@@ -57,9 +60,9 @@ def launcher(weight: int = 1, global_weight: int = 0, ft_type: str = 'nt',
community_size
=
None
if
kind
==
"
density
"
:
create_all_frequency_figures
(
ConfigNt
.
cpu
,
weight
,
global_weight
,
ft_type
,
same_gene
,
compute_mea
n
,
community_size
,
inter_chr
,
level
,
logging_level
)
ft_type
,
same_gene
,
inflatio
n
,
compute_mean
,
community_size
,
inter_chr
,
level
,
logging_level
)
else
:
create_all_distance_figures
(
ConfigNt
.
cpu
,
weight
,
global_weight
,
ft_type
,
same_gene
,
iteration
,
inter_chr
,
...
...
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