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

fix merge.

parents 726b0d01 9b00fd0b
1 merge request!20Resolve "Use SampleIds/ Experiment Id as file names throughtout pipeline"
...@@ -6,7 +6,8 @@ before_script: ...@@ -6,7 +6,8 @@ before_script:
stages: stages:
- unit - unit
- integration - single
- multiple
user_configuration: user_configuration:
stage: unit stage: unit
...@@ -15,7 +16,7 @@ user_configuration: ...@@ -15,7 +16,7 @@ user_configuration:
-pytest -m unit --cov=./workflow/scripts -pytest -m unit --cov=./workflow/scripts
single_end_mouse: single_end_mouse:
stage: integration stage: single
script: script:
- nextflow run workflow/main.nf -resume - nextflow run workflow/main.nf -resume
- pytest -m singleend - pytest -m singleend
...@@ -23,7 +24,7 @@ single_end_mouse: ...@@ -23,7 +24,7 @@ single_end_mouse:
expire_in: 2 days expire_in: 2 days
paired_end_human: paired_end_human:
stage: integration stage: single
script: script:
- nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_ENCSR729LGA_PE.txt" --genome 'GRCh38' --pairedEnd true -resume - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_ENCSR729LGA_PE.txt" --genome 'GRCh38' --pairedEnd true -resume
- pytest -m pairedend - pytest -m pairedend
...@@ -31,7 +32,7 @@ paired_end_human: ...@@ -31,7 +32,7 @@ paired_end_human:
expire_in: 2 days expire_in: 2 days
single_end_diff: single_end_diff:
stage: integration stage: multiple
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 singlediff - pytest -m singlediff
...@@ -39,7 +40,7 @@ single_end_diff: ...@@ -39,7 +40,7 @@ single_end_diff:
expire_in: 2 days expire_in: 2 days
paired_end_diff: paired_end_diff:
stage: integration stage: multiple
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 paireddiff - pytest -m paireddiff
......
...@@ -21,8 +21,8 @@ def test_annotate_peaks_singleend(): ...@@ -21,8 +21,8 @@ def test_annotate_peaks_singleend():
@pytest.mark.pairedend @pytest.mark.pairedend
def test_annotate_peaks_pairedend(): def test_annotate_peaks_pairedend():
assert os.path.exists(os.path.join(test_output_path, 'ENCSR217LRF.chipseeker_pie.pdf')) assert os.path.exists(os.path.join(test_output_path, 'ENCSR217LGA.chipseeker_pie.pdf'))
assert os.path.exists(os.path.join(test_output_path, 'ENCSR217LRF.chipseeker_upsetplot.pdf')) assert os.path.exists(os.path.join(test_output_path, 'ENCSR217LGA.chipseeker_upsetplot.pdf'))
annotation_file = test_output_path + 'ENCSR217LRF.chipseeker_annotation.csv' annotation_file = test_output_path + 'ENCSR217LGA.chipseeker_annotation.csv'
assert os.path.exists(annotation_file) assert os.path.exists(annotation_file)
assert utils.count_lines(annotation_file) == 25390 assert utils.count_lines(annotation_file) == 25391
...@@ -23,4 +23,4 @@ def test_call_peaks_macs_pairedend(): ...@@ -23,4 +23,4 @@ def test_call_peaks_macs_pairedend():
assert os.path.exists(os.path.join(test_output_path, 'ENCLB568IYX.pvalue_signal.bw')) assert os.path.exists(os.path.join(test_output_path, 'ENCLB568IYX.pvalue_signal.bw'))
assert os.path.exists(os.path.join(test_output_path, 'ENCLB568IYX.xls')) assert os.path.exists(os.path.join(test_output_path, 'ENCLB568IYX.xls'))
peak_file = test_output_path + 'ENCLB568IYX.narrowPeak' peak_file = test_output_path + 'ENCLB568IYX.narrowPeak'
assert utils.count_lines(peak_file) == 112652 assert utils.count_lines(peak_file) == 138827
...@@ -33,7 +33,7 @@ def test_annotate_peaks_pairedend_single_rep(): ...@@ -33,7 +33,7 @@ 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, 'heatmap.pdf'))
assert os.path.exists(os.path.join(test_output_path, 'pca.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, 'normcount_peaksets.txt'))
assert os.path.exists(os.path.join(test_output_path, 'ENCSR729LGA_vs_ENCSR757EMK_diffbind.bed')) assert os.path.exists(os.path.join(test_output_path, 'ENCSR757EMK_vs_ENCSR729LGA_diffbind.bed'))
diffbind_file = test_output_path + 'ENCSR729LGA_vs_ENCSR757EMK_diffbind.csv' diffbind_file = test_output_path + 'ENCSR757EMK_vs_ENCSR729LGA_diffbind.csv'
assert os.path.exists(diffbind_file) assert os.path.exists(diffbind_file)
assert utils.count_lines(diffbind_file) == 112652 assert utils.count_lines(diffbind_file) == 66201
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