Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
atacseq_analysis
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
atacseq_analysis
Commits
5ac6df6f
Commit
5ac6df6f
authored
4 years ago
by
Venkat Malladi
Browse files
Options
Downloads
Patches
Plain Diff
Fix astrocyte bedtools version. Also consolidated blacklist code.
parent
5a38ef2b
1 merge request
!27
Resolve "Tests for astrocyte"
Pipeline
#7219
failed with stages
in 6 hours, 44 minutes, and 52 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflow/main.nf
+2
-2
2 additions, 2 deletions
workflow/main.nf
workflow/scripts/overlap_peaks.py
+8
-9
8 additions, 9 deletions
workflow/scripts/overlap_peaks.py
with
10 additions
and
11 deletions
workflow/main.nf
+
2
−
2
View file @
5ac6df6f
...
@@ -547,14 +547,14 @@ process consensusPeaks {
...
@@ -547,14 +547,14 @@ process consensusPeaks {
if (blacklist) {
if (blacklist) {
"""
"""
module load python/3.6.1-2-anaconda
module load python/3.6.1-2-anaconda
module load bedtools/2.2
6
.0
module load bedtools/2.2
5
.0
python3 ${baseDir}/scripts/overlap_peaks.py -d ${peaksDesign} -f ${preDiffDesign} -b ${blacklistFile}
python3 ${baseDir}/scripts/overlap_peaks.py -d ${peaksDesign} -f ${preDiffDesign} -b ${blacklistFile}
"""
"""
}
}
else {
else {
"""
"""
module load python/3.6.1-2-anaconda
module load python/3.6.1-2-anaconda
module load bedtools/2.2
6
.0
module load bedtools/2.2
5
.0
python3 ${baseDir}/scripts/overlap_peaks.py -d ${peaksDesign} -f ${preDiffDesign}
python3 ${baseDir}/scripts/overlap_peaks.py -d ${peaksDesign} -f ${preDiffDesign}
"""
"""
}
}
...
...
This diff is collapsed.
Click to expand it.
workflow/scripts/overlap_peaks.py
+
8
−
9
View file @
5ac6df6f
...
@@ -40,8 +40,7 @@ def get_args():
...
@@ -40,8 +40,7 @@ def get_args():
parser
.
add_argument
(
'
-b
'
,
'
--blacklist
'
,
parser
.
add_argument
(
'
-b
'
,
'
--blacklist
'
,
help
=
"
Bed file of blacklisted regions to remove
"
,
help
=
"
Bed file of blacklisted regions to remove
"
,
required
=
False
,
required
=
False
)
default
=
"
None
"
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
return
args
return
args
...
@@ -240,17 +239,17 @@ def main():
...
@@ -240,17 +239,17 @@ def main():
design_anno
=
pd
.
DataFrame
(
columns
=
anno_cols
)
design_anno
=
pd
.
DataFrame
(
columns
=
anno_cols
)
# Find consenus overlap peaks for each experiment
# Find consenus overlap peaks for each experiment
for
experiment
,
df_experiment
in
design_peaks_df
.
groupby
(
'
experiment_id
'
):
replicated_peak
,
chr_peak
=
overlap
(
experiment
,
df_experiment
)
design_diff
.
loc
[
design_diff
.
experiment_id
==
experiment
,
"
peak
"
]
=
replicated_peak
design_anno
.
loc
[
experiment
]
=
[
experiment
,
chr_peak
]
# Remove blacklist regions; if blacklist = True
for
experiment
,
df_experiment
in
design_peaks_df
.
groupby
(
'
experiment_id
'
):
if
os
.
path
.
exists
(
blacklist
):
# Remove blacklist regions; if
blacklist
= True
for
experiment
,
df_experiment
in
design_peaks_df
.
groupby
(
'
experiment_id
'
):
if
blacklist
and
os
.
path
.
exists
(
blacklist
):
bl_peaks
,
bl_chr_peak
=
blacklist_peaks
(
experiment
,
blacklist
)
bl_peaks
,
bl_chr_peak
=
blacklist_peaks
(
experiment
,
blacklist
)
design_diff
.
loc
[
design_diff
.
experiment_id
==
experiment
,
"
peak
"
]
=
bl_peaks
design_diff
.
loc
[
design_diff
.
experiment_id
==
experiment
,
"
peak
"
]
=
bl_peaks
design_anno
.
loc
[
design_anno
.
Condition
==
experiment
,
"
Peaks
"
]
=
bl_chr_peak
design_anno
.
loc
[
design_anno
.
Condition
==
experiment
,
"
Peaks
"
]
=
bl_chr_peak
else
:
replicated_peak
,
chr_peak
=
overlap
(
experiment
,
df_experiment
)
design_diff
.
loc
[
design_diff
.
experiment_id
==
experiment
,
"
peak
"
]
=
replicated_peak
design_anno
.
loc
[
experiment
]
=
[
experiment
,
chr_peak
]
# Write out file
# Write out file
design_diff
.
columns
=
[
'
SampleID
'
,
design_diff
.
columns
=
[
'
SampleID
'
,
...
...
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