-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moving more modules and new dockerfile
- Loading branch information
Showing
8 changed files
with
100 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM rocker/r-ver:3.6.3 | ||
|
||
RUN apt-get -y update && apt-get install -y libnlopt-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY deps.R /tmp | ||
RUN Rscript /tmp/deps.R > /tmp/deps.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
install.packages('devtools', dependencies=TRUE, repos='cran.rstudio.com/'); | ||
install.packages(c('igraph'), repos='http://cran.us.r-project.org'); | ||
install.packages(c('ggplot2'), repos='http://cran.us.r-project.org'); | ||
install.packages(c('nloptr'), repos='http://cran.us.r-project.org'); | ||
install.packages(c('pbkrtest', 'lme4', 'pbkrtest', 'lme4'), repos='http://cran.us.r-project.org'); | ||
install.packages(c('ggpubr', 'cowplot'), repos='http://cran.us.r-project.org'); | ||
install.packages(c('hashmap'), repos='http://cran.us.r-project.org'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
process CLUSTER_EXS { | ||
label 'rscript' | ||
input: | ||
path cluster_part | ||
|
||
output: | ||
path "EXs_${cluster_part.name}", emit: ex_clusters | ||
path "unclustered_EXs_${cluster_part.name}", emit: unclustered_exs | ||
|
||
script: | ||
""" | ||
D2_cluster_EXs.R ${cluster_part} EXs_${cluster_part.name} unclustered_EXs_${cluster_part.name} | ||
""" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
process COLLAPSE_OVERLAPPING_MATCHES { | ||
publishDir "${params.output}/", mode: "copy" | ||
|
||
input: | ||
path scores | ||
path bonafide_pairs | ||
|
||
output: | ||
path "filtered_best_scored_EX_matches_by_targetgene-NoOverlap.tab", emit: score_exon_hits_pairs | ||
path "overlapping_EXs_by_species.tab", emit: overlapping_exs | ||
|
||
script: | ||
def bonafide = bonafide_pairs.name != 'NO_FILE' ? "-b ${bonafide_pairs}" : '' | ||
""" | ||
C3_count_matches_by_EX.pl ${scores} EX_matches_count_by_species.tab ${bonafide} | ||
C4_get_overlapping_EXs.pl -i EX_matches_count_by_species.tab -o overlapping_EXs_by_species.tab | ||
C5_collapse_overlapping_matches.pl overlapping_EXs_by_species.tab ${scores} filtered_best_scored_EX_matches_by_targetgene-NoOverlap.tab ${bonafide} | ||
""" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
process FORMAT_EX_CLUSTERS_INPUT { | ||
input: | ||
path score_exon_hits_pairs | ||
path clusterfile | ||
|
||
output: | ||
path "PART_*-cluster_input.tab", emit: cluster_parts | ||
|
||
script: | ||
""" | ||
if [[ "${clusterfile}" == *.gz ]]; then | ||
zcat ${clusterfile} > cluster_file | ||
D1_format_EX_clusters_input.pl cluster_file ${score_exon_hits_pairs} ${params.orthogroupnum} | ||
rm cluster_file | ||
else | ||
D1_format_EX_clusters_input.pl ${clusterfile} ${score_exon_hits_pairs} ${params.orthogroupnum} | ||
fi | ||
""" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters