Przeglądaj źródła

first commit

master
biolcl 3 lat temu
commit
9a01e5a78a
5 zmienionych plików z 88 dodań i 0 usunięć
  1. +0
    -0
      README.md
  2. +6
    -0
      defaults
  3. +11
    -0
      inputs
  4. +45
    -0
      tasks/suppa2.wdl
  5. +26
    -0
      workflow.wdl

+ 0
- 0
README.md Wyświetl plik


+ 6
- 0
defaults Wyświetl plik

@@ -0,0 +1,6 @@
{
"suppa2_database":"oss://pgx-reference-data/reference/suppa2/",
"suppa2_docker":"registry.cn-shanghai.aliyuncs.com/pgx-docker-registry/suppa:2.3",
"suppa2_cluster":"OnDemand bcs.b2.3xlarge img-ubuntu-vpc",
"disk_size":"200"
}

+ 11
- 0
inputs Wyświetl plik

@@ -0,0 +1,11 @@
{
"{{ project_name }}.sample_id": "{{ sample_id }}",
"{{ project_name }}.fastq1": "{{ fastq1 }}",
"{{ project_name }}.fastq2": "{{ fastq2 }}",
"{{ project_name }}.suppa2_GTF": "{{ suppa2_GTF }}",
"{{ project_name }}.suppa2_ioe": "{{ suppa2_ioe }}",
"{{ project_name }}.salmon_index": "{{ salmon_index }}",
"{{ project_name }}.suppa2_docker": "{{ suppa2_docker }}",
"{{ project_name }}.suppa2_cluster": "{{ suppa2_cluster }}",
"{{ project_name }}.disk_size": "{{ disk_size }}"
}

+ 45
- 0
tasks/suppa2.wdl Wyświetl plik

@@ -0,0 +1,45 @@
task suppa2{
String sample_id
File fastq1
File fastq2
File suppa2_database
String docker
String cluster
String disk_size

command <<<
set -o pipefail
set -e
echo ${sample_id} > test.txt
echo ${fastq1} >> test.txt
echo ${fastq2} >>test.txt
echo ${suppa2_database} >>test.txt

# /software/salmon-1.5.2_linux_x86_64/bin/salmon quant -i ${suppa2_database}/gencode.v37.transcripts.salmon.index/ -l ISR --gcBias -1 ${fastq1} -2 ${fastq2} -p 16 -o ./${sample_id}_salmon
# multipleFieldSelection.py -i ./${sample_id}_salmon/quant.sf -k 1 -f 4 -o ${sample_id}_iso_tpm.txt
# sed 's@|ENSG.*|@@' ${sample_id}_iso_tpm.txt > ${sample_id}_iso_tpm_formatted.txt
# suppa.py psiPerEvent -i ${suppa2_database}/gencode.v37.all.events.ioe -e ${sample_id}_iso_tpm_formatted.txt -o ${sample_id}_events
# suppa.py psiPerIsoform -g ${suppa2_database}/gencode.v37.annotation.gtf -e ${sample_id}_iso_tpm_formatted.txt -o ${sample_id}

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

output {
File suppa2_events = "test.txt"
# File suppa2_events = "${sample_id}_events.psi"
# File suppa2_isoform = "${sample_id}_events.psi"
# File TPM = "${sample_id}_iso_tpm.txt"
# File formatted_TPM = "${sample_id}_iso_tpm_formatted.txt"
}

}



+ 26
- 0
workflow.wdl Wyświetl plik

@@ -0,0 +1,26 @@
import "./tasks/suppa2.wdl" as suppa2

workflow {{ project_name }} {
String sample_id
File fastq1
File fastq2
File suppa2_database

String suppa2_docker
String suppa2_cluster
String disk_size

call suppa2.suppa2 as suppa2 {
input:
sample_id=sample_id,
fastq1=fastq1,
fastq2=fastq2,
suppa2_database=suppa2_database,
docker=suppa2_docker,
cluster=suppa2_cluster,
disk_size=disk_size

}


}

Ładowanie…
Anuluj
Zapisz