Переглянути джерело

更新 'tasks/spladder_EC.wdl'

master
chenqingwang 3 роки тому
джерело
коміт
8c6ba660dd
1 змінених файлів з 21 додано та 12 видалено
  1. +21
    -12
      tasks/spladder_EC.wdl

+ 21
- 12
tasks/spladder_EC.wdl Переглянути файл

task spladder_EC { task spladder_EC {
String sample_id String sample_id
File bam File bam
File pickle
File merge_graphs
File count_hdf5
File reference_gtf_file File reference_gtf_file
File spladder
File samples


String event_types
File samples
File merge_count_hdf5
File pickle_list
String spladder_docker String spladder_docker
String spladder_cluster String spladder_cluster
String disk_size String disk_size
ln -s ${bam}/*.bai ./ ln -s ${bam}/*.bai ./
cat ${samples} | while read a; do ls ./ | grep bai$ | grep $a; done > alignment_bai.txt cat ${samples} | while read a; do ls ./ | grep bai$ | grep $a; done > alignment_bai.txt


cp -r ${spladder}/* ${sample_id}/spladder_out/spladder/
ls ${sample_id}/spladder_out/spladder/ > spladder.txt
cat ${pickle_list}| while read a; do cp -r ${pickle}/$a ${sample_id}/spladder_out/spladder/; done
cat ${samples} | while read a; do ls ${sample_id}/spladder_out/spladder/| grep pickle$| grep $a; done >> pickle.txt
cp -r ${merge_graphs} ${sample_id}/spladder_out/spladder/
cp -r ${merge_count_hdf5} ${sample_id}/spladder_out/spladder/

cp -r ${count_hdf5}/*.hdf5 ${sample_id}/spladder_out/spladder/
cat ${samples} | while read a; do ls ${sample_id}/spladder_out/spladder/| grep hdf5$| grep $a; done >> count_hdf5.txt




nt=$(nproc) nt=$(nproc)
--parallel $nt \ --parallel $nt \
--confidence 2 \ --confidence 2 \
--readlen 150 \ --readlen 150 \
--event-types ${event_types}
--event-types exon_skip,intron_retention,alt_3prime,alt_5prime,mutex_exons,mult_exon_skip
find . -depth > fileList.txt find . -depth > fileList.txt
runtime { runtime {
docker: spladder_docker docker: spladder_docker
cluster: spladder_cluster cluster: spladder_cluster
systemDisk: "cloud_ssd 50"
systemDisk: "cloud_ssd 500"
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
timeout: 129600
timeout: 864000
} }


output { output {
File fileList = "fileList.txt" File fileList = "fileList.txt"
File alignment = "alignment.txt" File alignment = "alignment.txt"
File alignment_bai = "alignment_bai.txt" File alignment_bai = "alignment_bai.txt"
File spladder_txt = "spladder.txt"
File pickle_txt = "pickle.txt"
File count_hdf5_txt = "count_hdf5.txt"
Array[File] AS_gff = glob("${sample_id}/spladder_out/*.gff3") Array[File] AS_gff = glob("${sample_id}/spladder_out/*.gff3")
Array[File] AS_gz = glob("${sample_id}/spladder_out/*.gz") Array[File] AS_gz = glob("${sample_id}/spladder_out/*.gz")
Array[File] spladder_out = glob("${sample_id}/spladder_out/*") Array[File] spladder_out = glob("${sample_id}/spladder_out/*")
Array[File] spladder_file = glob("${sample_id}/spladder_out/spladder/*")
Array[File] spladder = glob("${sample_id}/spladder_out/spladder/*")
} }
} }

Завантаження…
Відмінити
Зберегти