Selaa lähdekoodia

Update: README.md

master
YaqingLiu 4 vuotta sitten
vanhempi
commit
ca2944d7c0
4 muutettua tiedostoa jossa 40 lisäystä ja 37 poistoa
  1. +4
    -1
      README.md
  2. +3
    -3
      defaults
  3. +22
    -22
      tasks/MD5.wdl
  4. +11
    -11
      workflow.wdl

+ 4
- 1
README.md Näytä tiedosto

> >
> Last Updates: 08/04/2021 > Last Updates: 08/04/2021


This app will generate the MD5
This app generates the MD5 of the INPUT files in bulk.

The OUTPUT.md5 file consists of n rows and 2 columns, the first column is the MD5 code and the second column is the corresponding file name.

#### Requirements #### Requirements


- choppy - choppy

+ 3
- 3
defaults Näytä tiedosto

{ {
"docker": "registry.cn-shanghai.aliyuncs.com/pgx-docker-registry/r-base:4.0.2",
"disk_size": "100",
"cluster_config": "OnDemand bcs.ps.g.large img-ubuntu-vpc"
"docker": "registry.cn-shanghai.aliyuncs.com/pgx-docker-registry/r-base:4.0.2",
"disk_size": "100",
"cluster_config": "OnDemand bcs.ps.g.large img-ubuntu-vpc"
} }

+ 22
- 22
tasks/MD5.wdl Näytä tiedosto

task MD5 { task MD5 {


Array[File] INPUT
String docker
String cluster_config
String disk_size
Array[File] INPUT
String docker
String cluster_config
String disk_size


command <<<
set -o pipefail
set -e
command <<<
set -o pipefail
set -e


for i in ${sep=" " INPUT}
do
md5sum $i > $i.md5
done
for i in ${sep=" " INPUT}
do
md5sum $i > $i.md5
done


cat `ls | grep .md5$` > OUTPUT.md5
>>>
cat `ls | grep .md5$` > OUTPUT.md5
>>>


runtime {
docker: docker
cluster: cluster_config
systemDisk: "cloud_ssd 40"
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
}
runtime {
docker: docker
cluster: cluster_config
systemDisk: "cloud_ssd 40"
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
}


output {
File MD5 = "OUTPUT.md5"
}
output {
File MD5 = "OUTPUT.md5"
}
} }

+ 11
- 11
workflow.wdl Näytä tiedosto

import "./tasks/MD5.wdl" as MD5 import "./tasks/MD5.wdl" as MD5


workflow {{ project_name }} { workflow {{ project_name }} {
Array[File] INPUT
String docker
String cluster_config
String disk_size
Array[File] INPUT
String docker
String cluster_config
String disk_size


call MD5.MD5 as MD5 {
input:
INPUT = INPUT,
docker = docker,
disk_size = disk_size,
cluster_config=cluster_config
}
call MD5.MD5 as MD5 {
input:
INPUT = INPUT,
docker = docker,
disk_size = disk_size,
cluster_config=cluster_config
}
} }

Loading…
Peruuta
Tallenna