Skip to content

Conversation

@fwip
Copy link
Contributor

@fwip fwip commented Mar 16, 2018

Most of the work on this is just wrangling the hidden script dependencies and hard-coded paths, parameterization, etc. You can see that the Dockerfile itself is not that complex.

This depends on the hotspot2 dockerfile: Altius/hotspot2#25.

This will run all steps sequentially.

Example usage, assuming your data is in a folder ./test_data/:

docker run \
    --mount type=bind,source="$(pwd)"/test_data,target=/data \
    masterlist \
    ./run_from_scratch.sh \
    /data/fileOf3BAMfiles.txt \
    /data/docker_out \
    /data/chr21.chrom.bed \
    /data/GRCh38_36merMappableOnly_minusBlacklist_chrs1-22XY.starch \
    20

Which will create output like:

test_data/docker_out/allPeaks.starch
test_data/docker_out/centersites.starch
test_data/docker_out/chr21.LN10051.GRCh38_no_alts.uniques.sorted.allcalls.starch
test_data/docker_out/chr21.LN10051.GRCh38_no_alts.uniques.sorted.cleavage.total
test_data/docker_out/chr21.LN10051.GRCh38_no_alts.uniques.sorted.cutcounts.starch
test_data/docker_out/chr21.LN10051.GRCh38_no_alts.uniques.sorted.density.bw
test_data/docker_out/chr21.LN10051.GRCh38_no_alts.uniques.sorted.density.starch
test_data/docker_out/chr21.LN10051.GRCh38_no_alts.uniques.sorted.fragments.sorted.starch
test_data/docker_out/chr21.LN10051.GRCh38_no_alts.uniques.sorted.hotspots.fdr0.0010.starch
test_data/docker_out/chr21.LN10051.GRCh38_no_alts.uniques.sorted.peaks.narrowpeaks.starch
test_data/docker_out/chr21.LN10051.GRCh38_no_alts.uniques.sorted.peaks.starch
test_data/docker_out/chr21.LN10051.GRCh38_no_alts.uniques.sorted.SPOT.txt
test_data/docker_out/chr21.LN10085.GRCh38_no_alts.uniques.sorted.allcalls.starch
test_data/docker_out/chr21.LN10085.GRCh38_no_alts.uniques.sorted.cleavage.total
test_data/docker_out/chr21.LN10085.GRCh38_no_alts.uniques.sorted.cutcounts.starch
test_data/docker_out/chr21.LN10085.GRCh38_no_alts.uniques.sorted.density.bw
test_data/docker_out/chr21.LN10085.GRCh38_no_alts.uniques.sorted.density.starch
test_data/docker_out/chr21.LN10085.GRCh38_no_alts.uniques.sorted.fragments.sorted.starch
test_data/docker_out/chr21.LN10085.GRCh38_no_alts.uniques.sorted.hotspots.fdr0.0010.starch
test_data/docker_out/chr21.LN10085.GRCh38_no_alts.uniques.sorted.peaks.narrowpeaks.starch
test_data/docker_out/chr21.LN10085.GRCh38_no_alts.uniques.sorted.peaks.starch
test_data/docker_out/chr21.LN10085.GRCh38_no_alts.uniques.sorted.SPOT.txt
test_data/docker_out/chr21.LN20451.GRCh38_no_alts.uniques.sorted.allcalls.starch
test_data/docker_out/chr21.LN20451.GRCh38_no_alts.uniques.sorted.cleavage.total
test_data/docker_out/chr21.LN20451.GRCh38_no_alts.uniques.sorted.cutcounts.starch
test_data/docker_out/chr21.LN20451.GRCh38_no_alts.uniques.sorted.density.bw
test_data/docker_out/chr21.LN20451.GRCh38_no_alts.uniques.sorted.density.starch
test_data/docker_out/chr21.LN20451.GRCh38_no_alts.uniques.sorted.fragments.sorted.starch
test_data/docker_out/chr21.LN20451.GRCh38_no_alts.uniques.sorted.hotspots.fdr0.0010.starch
test_data/docker_out/chr21.LN20451.GRCh38_no_alts.uniques.sorted.peaks.narrowpeaks.starch
test_data/docker_out/chr21.LN20451.GRCh38_no_alts.uniques.sorted.peaks.starch
test_data/docker_out/chr21.LN20451.GRCh38_no_alts.uniques.sorted.SPOT.txt
test_data/docker_out/subdir/chunk0001.bed
test_data/docker_out/subdir/chunk0002.bed
test_data/docker_out/subdir/chunk0003.bed
test_data/docker_out/subdir/chunk0004.bed
test_data/docker_out/subdir/chunk0005.bed
test_data/docker_out/subdir/chunk0006.bed
test_data/docker_out/subdir/DHSs_all/chunk0001.bed
test_data/docker_out/subdir/DHSs_all/chunk0002.bed
test_data/docker_out/subdir/DHSs_all/chunk0003.bed
test_data/docker_out/subdir/DHSs_all/chunk0004.bed
test_data/docker_out/subdir/DHSs_all/chunk0005.bed
test_data/docker_out/subdir/DHSs_all/chunk0006.bed
test_data/docker_out/subdir/DHSs_nonovl_any/chunk0001.bed
test_data/docker_out/subdir/DHSs_nonovl_any/chunk0002.bed
test_data/docker_out/subdir/DHSs_nonovl_any/chunk0003.bed
test_data/docker_out/subdir/DHSs_nonovl_any/chunk0004.bed
test_data/docker_out/subdir/DHSs_nonovl_any/chunk0005.bed
test_data/docker_out/subdir/DHSs_nonovl_any/chunk0006.bed
test_data/docker_out/subdir/DHSs_nonovl_core/chunk0001.bed
test_data/docker_out/subdir/DHSs_nonovl_core/chunk0002.bed
test_data/docker_out/subdir/DHSs_nonovl_core/chunk0003.bed
test_data/docker_out/subdir/DHSs_nonovl_core/chunk0004.bed
test_data/docker_out/subdir/DHSs_nonovl_core/chunk0005.bed
test_data/docker_out/subdir/DHSs_nonovl_core/chunk0006.bed
test_data/docker_out/subdir/DHSs_nonovl_stats/chunk0001.bed
test_data/docker_out/subdir/DHSs_nonovl_stats/chunk0002.bed
test_data/docker_out/subdir/DHSs_nonovl_stats/chunk0003.bed
test_data/docker_out/subdir/DHSs_nonovl_stats/chunk0004.bed
test_data/docker_out/subdir/DHSs_nonovl_stats/chunk0005.bed
test_data/docker_out/subdir/DHSs_nonovl_stats/chunk0006.bed
test_data/docker_out/subdir/masterlist_DHSs_masterlist_all.bb
test_data/docker_out/subdir/masterlist_DHSs_masterlist_all.bed
test_data/docker_out/subdir/masterlist_DHSs_masterlist_all_chunkIDs.txt
test_data/docker_out/subdir/masterlist_DHSs_masterlist_nonovl_any.bb
test_data/docker_out/subdir/masterlist_DHSs_masterlist_nonovl_any.bed
test_data/docker_out/subdir/masterlist_DHSs_masterlist_nonovl_any_chunkIDs.txt
test_data/docker_out/subdir/masterlist_DHSs_masterlist_nonovl_core.bb
test_data/docker_out/subdir/masterlist_DHSs_masterlist_nonovl_core.bed
test_data/docker_out/subdir/masterlist_DHSs_masterlist_nonovl_core_chunkIDs.txt
test_data/docker_out/subdir/peaks_all/chunk0001.bed
test_data/docker_out/subdir/peaks_all/chunk0002.bed
test_data/docker_out/subdir/peaks_all/chunk0003.bed
test_data/docker_out/subdir/peaks_all/chunk0004.bed
test_data/docker_out/subdir/peaks_all/chunk0005.bed
test_data/docker_out/subdir/peaks_all/chunk0006.bed
test_data/docker_out/subdir/peaks_nonovl_any/chunk0001.bed
test_data/docker_out/subdir/peaks_nonovl_any/chunk0002.bed
test_data/docker_out/subdir/peaks_nonovl_any/chunk0003.bed
test_data/docker_out/subdir/peaks_nonovl_any/chunk0004.bed
test_data/docker_out/subdir/peaks_nonovl_any/chunk0005.bed
test_data/docker_out/subdir/peaks_nonovl_any/chunk0006.bed
test_data/docker_out/subdir/peaks_nonovl_core/chunk0001.bed
test_data/docker_out/subdir/peaks_nonovl_core/chunk0002.bed
test_data/docker_out/subdir/peaks_nonovl_core/chunk0003.bed
test_data/docker_out/subdir/peaks_nonovl_core/chunk0004.bed
test_data/docker_out/subdir/peaks_nonovl_core/chunk0005.bed
test_data/docker_out/subdir/peaks_nonovl_core/chunk0006.bed
test_data/docker_out/subdir/Rout/output_build_chunk_1.Rout
test_data/docker_out/subdir/Rout/output_build_chunk_2.Rout
test_data/docker_out/subdir/Rout/output_build_chunk_3.Rout
test_data/docker_out/subdir/Rout/output_build_chunk_4.Rout
test_data/docker_out/subdir/Rout/output_build_chunk_5.Rout
test_data/docker_out/subdir/Rout/output_build_chunk_6.Rout
test_data/docker_out/subdir/Rout/output_overlap_chunk_1.Rout
test_data/docker_out/subdir/Rout/output_overlap_chunk_2.Rout
test_data/docker_out/subdir/Rout/output_overlap_chunk_3.Rout
test_data/docker_out/subdir/Rout/output_overlap_chunk_4.Rout
test_data/docker_out/subdir/Rout/output_overlap_chunk_5.Rout
test_data/docker_out/subdir/Rout/output_overlap_chunk_6.Rout

@fwip fwip requested a review from meuleman March 16, 2018 20:42
@meuleman meuleman merged commit 28504b5 into master Mar 16, 2018
@fwip fwip deleted the dockerize branch March 19, 2018 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants