Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
BICF
Astrocyte
chipseq_analysis
Commits
43c744a2
Commit
43c744a2
authored
Mar 01, 2020
by
Venkat Malladi
Browse files
Merge branch 'master' into '67-python_version'
# Conflicts: # CHANGELOG.md
parents
c045ad59
ad77c7b5
Pipeline
#6195
passed with stages
in 823 minutes and 10 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
43c744a2
...
...
@@ -108,5 +108,4 @@ report*.html*
timeline*.html*
/workflow/output/*
/work/*
/test_data/*
/.nextflow/*
CHANGELOG.md
View file @
43c744a2
...
...
@@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file.
-
Fix xcor to increase file size for --random-source
-
Fix skip diff test for paired-end data
-
Fix python version for MultiQC report
-
Fix xcor to get lowest non zero value above 50
-
Fix references to display in Multiqc report
...
...
test_data/test_cross.qc
0 → 100644
View file @
43c744a2
Test.20.tagAlign.gz 18588987 0,20,33 0.211525291335199,0.211232019956852,0.211139666755398 35 0.2123067 1500 0.209429 1.01001 0.7284536 0
workflow/scripts/call_peaks_macs.py
View file @
43c744a2
...
...
@@ -138,8 +138,20 @@ def call_peaks_macs(experiment, xcor, control, prefix, genome_size, chrom_sizes)
with
open
(
xcor
,
'r'
)
as
xcor_fh
:
firstline
=
xcor_fh
.
readline
()
frag_lengths
=
firstline
.
split
()[
2
]
# third column
fragment_length
=
frag_lengths
.
split
(
','
)[
0
]
# grab first value
logger
.
info
(
"Fraglen %s"
,
fragment_length
)
frag_lengths_array
=
frag_lengths
.
split
(
','
)
fragment_length
=
0
fragment
=
False
# Loop through all values of fragment length
for
f
in
frag_lengths
.
split
(
','
):
fragment_length
=
f
logger
.
info
(
"Fraglen %s"
,
fragment_length
)
if
int
(
fragment_length
)
>
50
:
fragment
=
True
break
if
fragment
==
False
:
logger
.
info
(
'Error in cross-correlation analysis: %s'
,
frag_lengths_array
)
raise
Exception
(
"Error in cross-correlation analysis: %s"
%
frag_lengths_array
)
# Generate narrow peaks and preliminary signal tracks
...
...
workflow/tests/test_call_peaks_macs.py
View file @
43c744a2
...
...
@@ -3,10 +3,29 @@
import
pytest
import
os
import
utils
from
io
import
StringIO
import
call_peaks_macs
test_output_path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
\
'/../output/callPeaksMACS/'
test_data_path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
\
'/../../test_data/'
@
pytest
.
mark
.
unit
def
test_fragment_length
():
experiment
=
"experiment.tagAlign.gz"
control
=
"control.tagAlign.gz"
prefix
=
'test'
genome_size
=
'hs'
chrom_sizes
=
'genomefile.txt'
cross_qc
=
os
.
path
.
join
(
test_data_path
,
'test_cross.qc'
)
with
pytest
.
raises
(
Exception
)
as
excinfo
:
call_peaks_macs
.
call_peaks_macs
(
experiment
,
cross_qc
,
control
,
prefix
,
genome_size
,
chrom_sizes
)
assert
str
(
excinfo
.
value
)
==
"Error in cross-correlation analysis: ['0', '20', '33']"
@
pytest
.
mark
.
singleend
def
test_fc_signal_singleend
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment