-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from uclahs-cds/nwiltsie-regroup-modules
Rearrange processes and modules, add SV workflow for Delly2
- Loading branch information
Showing
27 changed files
with
1,003 additions
and
345 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
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
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
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 |
---|---|---|
@@ -1,26 +1,22 @@ | ||
# Install the remotes package to the library | ||
install.packages('remotes', lib = .Library) | ||
install.packages('renv', lib = .Library) | ||
|
||
# Make a temporary directory to hold all of the installed packages | ||
localdir <- '/tmp/userlib' | ||
dir.create(localdir) | ||
options( | ||
renv.settings.bioconductor.version = Sys.getenv('BIOC_VERSION') | ||
) | ||
|
||
dependencies <- c( | ||
'ROCR' = '1.0-11', | ||
'argparse' = '2.2.2', | ||
'caret' = '6.0-94', | ||
'data.table' = '1.14.8', | ||
'doParallel' = '1.0.17', | ||
'foreach' = '1.5.2', | ||
'ranger' = '0.15.1', | ||
'vcfR' = '1.14.0' | ||
renv::init( | ||
bare = TRUE, | ||
bioconductor = Sys.getenv('BIOC_VERSION') | ||
) | ||
|
||
# Unfortunately, this will install the dependencies multiple times | ||
for (name in names(dependencies)) { | ||
remotes::install_version( | ||
name, | ||
unname(dependencies[name]), | ||
lib = localdir | ||
) | ||
} | ||
renv::install(c( | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
'bioc::[email protected]' | ||
)) |
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,79 @@ | ||
%%{init: {"flowchart": {"htmlLabels": false}} }%% | ||
|
||
flowchart TD | ||
|
||
classDef input fill:#ffffb3 | ||
classDef output fill:#b3de69 | ||
classDef gatk fill:#bebada | ||
classDef bcftools fill:#fdb462 | ||
classDef R fill:#8dd3c7 | ||
classDef linux fill:#fb8072 | ||
|
||
subgraph legend ["`**Legend**`"] | ||
direction RL | ||
subgraph nodes ["`**Nodes**`"] | ||
input[["Input File"]]:::input | ||
input_node(["Parameterized Input"]):::input | ||
output[["Output file"]]:::output | ||
end | ||
|
||
subgraph processes ["`**Processes**`"] | ||
gatk_docker[GATK]:::gatk | ||
bcftools_docker[bcftools]:::bcftools | ||
r_docker[Rscript]:::R | ||
linux_docker[Generic Linux]:::linux | ||
end | ||
end | ||
|
||
legend | ||
~~~ input_vcf[["Input VCF"]]:::input | ||
--> pipeval:::linux | ||
--> sv_vs_snv{{Variant Type?}} | ||
|
||
sv_vs_snv ------> r_liftover | ||
header_contigs .-> r_liftover | ||
chain_file2 ..-> r_liftover | ||
gnomad_rds .-> r_extract_sv | ||
|
||
subgraph SV ["`**SV**`"] | ||
%% Other input files | ||
header_contigs([header_contigs]):::input | ||
chain_file2([chain_file]):::input | ||
gnomad_rds([gnomad_rds]):::input | ||
|
||
r_liftover[liftover-Delly2-vcf.R]:::R | ||
---> r_extract_sv[extract-VCF-features-SV.R]:::R | ||
|
||
end | ||
|
||
chain_file .-> bcftools_liftover | ||
sv_vs_snv --> bcftools_liftover | ||
|
||
subgraph SNV ["`**SNV**`"] | ||
funcotator_sources([funcotator_sources]):::input | ||
chain_file([chain_file]):::input | ||
repeat_bed([repeat_bed]):::input | ||
|
||
bcftools_liftover[bcftools +liftover]:::bcftools | ||
---> gatk_func[gatk Funcotator]:::gatk | ||
--> bcftools_annotate["`bcftools annotate*RepeatMasker*`"]:::bcftools | ||
--> bcftools_annotate2["`bcftools annotate*Trinucleotide*`"]:::bcftools | ||
--> r_extract_snv[extract-VCF-features.R]:::R | ||
end | ||
|
||
funcotator_sources .-> gatk_func | ||
repeat_bed .-> bcftools_annotate | ||
|
||
joinpaths{ } | ||
r_extract_snv --> joinpaths | ||
r_extract_sv --> joinpaths | ||
joinpaths ---> r_predict_stability | ||
|
||
subgraph Predict Stability ["` **Predict Stability**`"] | ||
r_predict_stability[predict-liftover-stability.R]:::R | ||
--> bcftools_annotate3["`bcftools annotate*Stability*`"]:::bcftools | ||
|
||
rf_model([rf_model]):::input .-> r_predict_stability | ||
end | ||
|
||
bcftools_annotate3 --> output_vcfs[["Output VCFs"]]:::output |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.