Skip to content
Snippets Groups Projects
Commit e1f7f61b authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Add summits and remove extra names in files.

parent fbec8738
Branches
Tags
1 merge request!20Resolve "Use SampleIds/ Experiment Id as file names throughtout pipeline"
......@@ -342,6 +342,7 @@ process callPeaksMACS {
output:
set sampleId, file('*.narrowPeak'), file('*.fc_signal.bw'), file('*.pvalue_signal.bw'), experimentId, biosample, factor, treatment, replicate, controlId into experimentPeaks
file '*.xls' into summit
script:
......
......@@ -125,7 +125,7 @@ def call_peaks_macs(experiment, xcor, control, prefix, genome_size, chrom_sizes)
# MACS2 sometimes calls features off the end of chromosomes.
# Remove coordinates outside chromosome sizes
narrowpeak_fn = '%s_peaks.narrowPeak' % (prefix)
narrowpeak_fn = '%s.narrowPeak' % (prefix)
clipped_narrowpeak_fn = 'clipped-%s' % (narrowpeak_fn)
......
......@@ -12,7 +12,8 @@ test_output_path = os.path.dirname(os.path.abspath(__file__)) + \
def test_call_peaks_macs_singleend():
assert os.path.exists(os.path.join(test_output_path, 'ENCLB144FDT.fc_signal.bw'))
assert os.path.exists(os.path.join(test_output_path, 'ENCLB144FDT.pvalue_signal.bw'))
peak_file = test_output_path + 'ENCLB144FDT_peaks.narrowPeak'
assert os.path.exists(os.path.join(test_output_path, 'ENCLB144FDT.xls'))
peak_file = test_output_path + 'ENCLB144FDT.narrowPeak'
assert utils.count_lines(peak_file) == 227389
......@@ -20,5 +21,6 @@ def test_call_peaks_macs_singleend():
def test_call_peaks_macs_pairedend():
assert os.path.exists(os.path.join(test_output_path, 'ENCLB568IYX.fc_signal.bw'))
assert os.path.exists(os.path.join(test_output_path, 'ENCLB568IYX.pvalue_signal.bw'))
peak_file = test_output_path + 'ENCLB568IYX_peaks.narrowPeak'
assert os.path.exists(os.path.join(test_output_path, 'ENCLB568IYX.xls'))
peak_file = test_output_path + 'ENCLB568IYX.narrowPeak'
assert utils.count_lines(peak_file) == 112652
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment