Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chipseq_analysis
Manage
Activity
Members
Labels
Plan
Issues
19
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
BICF
Astrocyte
chipseq_analysis
Commits
c0e0b003
There was a problem fetching the pipeline stages.
Commit
c0e0b003
authored
7 years ago
by
Venkat Malladi
Browse files
Options
Downloads
Patches
Plain Diff
Fix string and comparing of values.
parent
6839e190
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!12
Resolve "Pool and Pseudoreplication"
Pipeline
#1143
failed with stage
in 2 hours, 32 minutes, and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workflow/scripts/pool_and_psuedoreplicate.py
+6
-6
6 additions, 6 deletions
workflow/scripts/pool_and_psuedoreplicate.py
with
6 additions
and
6 deletions
workflow/scripts/pool_and_psuedoreplicate.py
+
6
−
6
View file @
c0e0b003
...
...
@@ -162,16 +162,16 @@ def main():
replicated
=
False
else
:
logger
.
info
(
"
Multiple replicates specified
"
logger
.
info
(
"
Multiple replicates specified
"
"
so processing as a replicated experiment.
"
)
replicated
=
True
if
no_unique_controls
==
1
and
replicated
:
logger
.
info
(
"
Only a single control was specified
"
logger
.
info
(
"
Only a single control was specified
"
"
so using same control for replicates, pool and psuedoreplicates.
"
)
single_control
=
True
else
:
logger
.
info
(
"
Will merge only unique controls for pooled
"
)
logger
.
info
(
"
Will merge only unique controls for pooled
.
"
)
single_control
=
False
# Pool the controls for checking
...
...
@@ -235,7 +235,7 @@ def main():
# Check controls against cutoff_ratio
# if so replace with pool_control
path_to_pool_control
=
cwd
+
'
/
'
+
pool_control
if
control_df
[
control_df
>
cutoff_ratio
].
values
.
any
()
:
if
if
control_df
.
values
.
max
()
>
1.2
:
logger
.
info
(
"
Number of reads in controls differ by
"
+
"
> factor of %f. Using pooled controls.
"
%
(
cutoff_ratio
))
design_new_df
[
'
control_tag_align
'
]
=
path_to_pool_control
...
...
@@ -254,8 +254,8 @@ def main():
tmp_metadata
=
design_new_df
.
loc
[
0
].
copy
()
tmp_metadata
[
'
control_tag_align
'
]
=
path_to_pool_control
for
rep
,
pseudorep_file
in
pool_pseudoreplicates_dict
.
items
():
tmp_metadata
[
'
sample_id
'
]
=
experiment_id
+
'
_pr
'
+
rep
tmp_metadata
[
'
replicate
'
]
=
rep
+
'
_pr
'
tmp_metadata
[
'
sample_id
'
]
=
experiment_id
+
'
_pr
'
+
str
(
rep
)
tmp_metadata
[
'
replicate
'
]
=
str
(
rep
)
+
'
_pr
'
tmp_metadata
[
'
xcor
'
]
=
'
Calculate
'
path_to_file
=
cwd
+
'
/
'
+
pseudorep_file
tmp_metadata
[
'
tag_align
'
]
=
path_to_file
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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