-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi-C workflow #139
base: main
Are you sure you want to change the base?
Hi-C workflow #139
Changes from 102 commits
c8b17b2
55f09d8
0a025a0
d374a51
a5cd476
6bd01bf
b531cc5
1357d55
0279f9e
c27bdf3
e4dba06
f8a8cf2
32be249
9567e04
e029ca0
182a31a
7dd86e1
22e7523
8c76606
eee143e
06c2240
ee0cff8
118e794
39fe94b
961ce2e
0e450dd
0b39a96
b150efe
8c95537
eaa5540
2560177
134cf76
3b8f797
3564657
fb61aa3
f143eea
d65883b
54489e8
f6ae399
5c7ab92
495863f
98f052a
f2a556b
332cbc0
d2de023
fb31903
5e59bf9
34287e3
ae579ee
3477fc8
b5e48e2
b9fe3d0
b1cc7d9
3875ba1
0be8e40
23c71c5
3276579
76c1b27
7d8a751
149520f
5e8349d
8ca023b
b68e666
551a155
984127c
f1cc66f
c131c11
bb99cf2
f206b88
95f31eb
84fdf72
c98c4bd
e78e7e3
66a5645
47623fe
2402098
9824304
4b1a97c
3e06810
0aa4f97
ce77e28
275c5d8
e837f8a
f35f38b
cf471e6
380fe6c
160a3aa
86cbd2f
40d1763
01a1ece
334a34e
0287b2b
9f8331a
09399c9
7bf0db8
3adc65c
8e918db
143e9bf
a06c495
b96b348
5168c62
17ae8a9
ad3364f
42fe071
f553ae4
64186e5
3139e69
a262420
de835c3
058fbac
49e1c29
02ae409
27f9e2a
de9b0be
df85b2e
8ac2922
6923f27
cafe359
827dd75
1038702
c5eb1fa
20cff40
723e77c
9414122
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM quay.io/biocontainers/bedtools:2.31.1--hf5e1c6e_2 AS bedtools | ||
FROM python:3.9.19 | ||
|
||
COPY --from=bedtools /usr/local/bin/ /usr/local/bin/ | ||
|
||
ENTRYPOINT [ "bash" ] |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM quay.io/biocontainers/samtools:1.17--h00cdaf9_0 AS samtools | ||
FROM quay.io/biocontainers/bowtie2:2.5.4--he20e202_2 | ||
|
||
COPY --from=samtools /usr/local/bin/ /usr/local/bin/ | ||
COPY --from=samtools /usr/local/lib/ /usr/local/lib/ | ||
COPY --from=samtools /usr/local/libexec/ /usr/local/libexec/ | ||
|
||
ENTRYPOINT [ "bowtie2" ] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM nservant/hicpro:3.0.0 AS hicpro | ||
FROM aidenlab/juicer:1.0.13 | ||
|
||
COPY --from=hicpro /HiC-Pro_3.0.0/bin/utils/hicpro2juicebox.sh /HiC-Pro_3.0.0/bin/utils/hicpro2juicebox.sh | ||
RUN chmod a+rwx /opt/juicer-1.6.2/CPU/common/juicer_tools.1.7.6_jcuda.0.8.jar | ||
|
||
ENTRYPOINT [ "bash" ] |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,6 +209,10 @@ task bwa_mem { | |
description: "Read group information for BWA to insert into the header. BWA format: '@RG\tID:foo\tSM:bar'", | ||
group: "common", | ||
} | ||
skip_mate_rescue: "Skip mate rescue" | ||
skip_pairing: "Skip pairing; mate rescue performed unless `skip_mate_rescue` also in use" | ||
split_smallest: "For split alignment, take the alignment with the smallest coordinate as primary" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the alternative? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here is the help text.
Nothing overly helpful There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @a-frantz - I've added some additional text, but it relies on google searching and reading Q&A on online forums. I don't see anything definitive from the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The text for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume it's random, since these have the same score (I think). |
||
short_secondary: "Mark shorter split hits as secondary" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar Q. What's the alternative here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It is apparently for compatibility with Picard. Other than that, the manual has no details. Google returns a biostars thread with the following:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Though that answer conflicts with the description. They claim it is a |
||
use_all_cores: { | ||
description: "Use all cores? Recommended for cloud environments.", | ||
group: "common", | ||
|
@@ -230,6 +234,10 @@ task bwa_mem { | |
"" | ||
) | ||
String read_group = "" | ||
Boolean skip_mate_rescue = false | ||
Boolean skip_pairing = false | ||
Boolean split_smallest = false | ||
Boolean short_secondary = false | ||
Boolean use_all_cores = false | ||
Int ncpu = 4 | ||
Int modify_disk_size_gb = 0 | ||
|
@@ -269,6 +277,10 @@ task bwa_mem { | |
bwa_db/"$PREFIX" \ | ||
~{basename(read_one_fastq_gz)} \ | ||
~{basename(read_two_file)} \ | ||
~{if skip_mate_rescue then "-S" else ""} \ | ||
~{if skip_pairing then "-P" else ""} \ | ||
~{if split_smallest then "-5" else ""} \ | ||
~{if short_secondary then "-M" else ""} \ | ||
| samtools view --no-PG --threads "$samtools_cores" -hb - \ | ||
> ~{output_bam} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this version dir should be
2.31.1-0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is named after
bedtools
, why does it havehic
scripts in it?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Originally, it was just plain
bedtools
, but with the decision to remove the embedded scripts, those needed to get built in to some image and this one depends onbedtools
. I can go somewhere else, but then we'll need to installbedtools
in to another container.