Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chipseq_analysis
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
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
Astrocyte
Workflows
BICF
chipseq_analysis
Commits
266c57a7
Commit
266c57a7
authored
5 years ago
by
Jeremy Mathews
Browse files
Options
Downloads
Patches
Plain Diff
redo dict call
parent
cecc9ac6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workflow/scripts/pool_and_psuedoreplicate.py
+7
-5
7 additions, 5 deletions
workflow/scripts/pool_and_psuedoreplicate.py
with
7 additions
and
5 deletions
workflow/scripts/pool_and_psuedoreplicate.py
+
7
−
5
View file @
266c57a7
...
...
@@ -230,17 +230,19 @@ def generate_design(paired, cutoff_ratio, design_df, cwd, no_reps, no_unique_con
design_new_df
.
at
[
3
,
'
tag_align
'
]
=
design_new_df
.
at
[
0
,
'
tag_align
'
]
# Make 2 self psuedoreplicates
pool
_pseudoreplicates_dict
=
{}
for
rep
,
tag_file
in
zip
(
design_df
[
'
replicate
'
],
design_df
[
'
tag_align
'
]):
self
_pseudoreplicates_dict
=
{}
for
rep
,
tag_file
in
zip
(
design_df
[
'
replicate
'
],
design_df
[
'
tag_align
'
]):
replicate_prefix
=
experiment_id
+
'
_
'
+
str
(
rep
)
pool
_pseudoreplicates_dict
[
rep
]
=
\
self_psuedoreplication
(
tag_file
,
replicate_prefix
,
paired
)
self
_pseudoreplicates_dict
=
self_psuedoreplication
(
tag_file
,
replicate_prefix
,
paired
)
# Update design to include new self pseudo replicates
for
rep
,
pseudorep_file
in
pool_pseudoreplicates_dict
.
items
():
pool_pseudoreplicates_dict
=
{}
for
rep
,
pseudorep_file
in
self_pseudoreplicates_dict
.
items
():
path_to_file
=
cwd
+
'
/
'
+
pseudorep_file
replicate
=
rep
+
1
design_new_df
.
loc
[
replicate
,
'
tag_align
'
]
=
path_to_file
pool_pseudoreplicates_dict
[
replicate
]
=
path_to_file
# Drop index column
design_new_df
.
drop
(
labels
=
'
index
'
,
axis
=
1
,
inplace
=
True
)
...
...
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