Parcourir la source

Update: README.md

master
YaqingLiu il y a 4 ans
Parent
révision
ca2944d7c0
4 fichiers modifiés avec 40 ajouts et 37 suppressions
  1. +4
    -1
      README.md
  2. +3
    -3
      defaults
  3. +22
    -22
      tasks/MD5.wdl
  4. +11
    -11
      workflow.wdl

+ 4
- 1
README.md Voir le fichier

@@ -6,7 +6,10 @@
>
> 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

- choppy

+ 3
- 3
defaults Voir le fichier

@@ -1,5 +1,5 @@
{
"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 Voir le fichier

@@ -1,30 +1,30 @@
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 Voir le fichier

@@ -1,16 +1,16 @@
import "./tasks/MD5.wdl" as MD5

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
}
}

Chargement…
Annuler
Enregistrer