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
d84a3b62
There was an error fetching the commit references. Please try again later.
Commit
d84a3b62
authored
6 years ago
by
Venkat Malladi
Browse files
Options
Downloads
Patches
Plain Diff
Check differential peaks.
parent
eea9ab16
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
workflow/tests/test_diff_peaks.py
+48
-0
48 additions, 0 deletions
workflow/tests/test_diff_peaks.py
with
50 additions
and
2 deletions
.gitlab-ci.yml
+
2
−
2
View file @
d84a3b62
...
@@ -35,7 +35,7 @@ single_end_diff:
...
@@ -35,7 +35,7 @@ single_end_diff:
stage
:
integration
stage
:
integration
script
:
script
:
-
nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_SE.txt" --genome 'GRCm38' -resume
-
nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_SE.txt" --genome 'GRCm38' -resume
-
pytest -m
pairedend
-
pytest -m
singlediff
-
pytest --cov=./workflow/scripts
-
pytest --cov=./workflow/scripts
artifacts
:
artifacts
:
expire_in
:
2 days
expire_in
:
2 days
...
@@ -44,7 +44,7 @@ paired_end_diff:
...
@@ -44,7 +44,7 @@ paired_end_diff:
stage
:
integration
stage
:
integration
script
:
script
:
-
nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_PE.txt" --genome 'GRCh38' --pairedEnd
true
-resume
-
nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_PE.txt" --genome 'GRCh38' --pairedEnd
true
-resume
-
pytest -m paired
end
-
pytest -m paired
diff
-
pytest --cov=./workflow/scripts
-
pytest --cov=./workflow/scripts
artifacts
:
artifacts
:
expire_in
:
2 days
expire_in
:
2 days
This diff is collapsed.
Click to expand it.
workflow/tests/test_diff_peaks.py
0 → 100644
+
48
−
0
View file @
d84a3b62
#!/usr/bin/env python3
import
pytest
import
pandas
as
pd
from
io
import
StringIO
import
os
import
utils
test_output_path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
\
'
/../output/diffPeaks/
'
@pytest.mark.singleend
def
test_diff_peaks_singleend_single_rep
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
no_diffbind.bed
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
no_diffbind.csv
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
no_heatmap.pdf
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
no_pca.pdf
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
normcount_peaksets.pdf
'
))
@pytest.mark.pairedend
def
test_annotate_peaks_pairedend_single_rep
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
no_diffbind.bed
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
no_diffbind.csv
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
no_heatmap.pdf
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
no_pca.pdf
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
normcount_peaksets.pdf
'
))
@pytest.mark.singlediff
def
test_diff_peaks_singleend_multiple_rep
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
heatmap.pdf
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
pca.pdf
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
normcount_peaksets.txt
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
ENCSR272GNQ_vs_ENCSR238SGC_diffbind.bed
'
))
diffbind_file
=
test_output_path
+
'
ENCSR272GNQ_vs_ENCSR238SGC_diffbind.csv
'
assert
os
.
path
.
exists
(
diffbind_file
)
assert
utils
.
count_lines
(
diffbind_file
)
==
201039
@pytest.mark.paireddiff
def
test_annotate_peaks_pairedend_single_rep
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
heatmap.pdf
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
pca.pdf
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
normcount_peaksets.txt
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
ENCSR729LGA_vs_ENCSR757EMK_diffbind.bed
'
))
diffbind_file
=
test_output_path
+
'
ENCSR729LGA_vs_ENCSR757EMK_diffbind.csv
'
assert
os
.
path
.
exists
(
diffbind_file
)
assert
utils
.
count_lines
(
diffbind_file
)
==
112652
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