Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

69 linhas
2.1KB

  1. task arriba{
  2. String sample_id
  3. File fastq1
  4. File fastq2
  5. File STAR_INDEX_DIR
  6. File ASSEMBLY_FA
  7. File ANNOTATION_GTF
  8. String disk_size
  9. String docker
  10. String cluster
  11. command <<<
  12. set -o pipefail
  13. set -e
  14. gzip -c ${fastq1} >${sample_id}_R1.fastq.gz
  15. gzip -c ${fastq2} >${sample_id}_R2.fastq.gz
  16. mkdir ./output/
  17. STAR \
  18. --runThreadN 4 \
  19. --genomeDir ${STAR_INDEX_DIR} \
  20. --genomeLoad NoSharedMemory \
  21. --readFilesIn ${sample_id}_R1.fastq.gz ${sample_id}_R2.fastq.gz \
  22. --readFilesCommand zcat \
  23. --outStd BAM_Unsorted \
  24. --outSAMtype BAM Unsorted \
  25. --outSAMunmapped Within \
  26. --outBAMcompression 0 \
  27. --outFilterMultimapNmax 50 \
  28. --peOverlapNbasesMin 10 \
  29. --alignSplicedMateMapLminOverLmate 0.5 \
  30. --alignSJstitchMismatchNmax 5 -1 5 5 \
  31. --chimSegmentMin 10 \
  32. --chimOutType WithinBAM HardClip \
  33. --chimJunctionOverhangMin 10 \
  34. --chimScoreDropMax 30 \
  35. --chimScoreJunctionNonGTAG 0 \
  36. --chimScoreSeparation 1 \
  37. --chimSegmentReadGapMax 3 \
  38. --chimMultimapNmax 50 |tee ./output/${sample_id}.Aligned.out.bam |/arriba_v2.1.0/arriba \
  39. -x /dev/stdin \
  40. -o ./output/${sample_id}_fusions.tsv -O ./output/${sample_id}_fusions.discarded.tsv \
  41. -a ${ASSEMBLY_FA} \
  42. -g ${ANNOTATION_GTF} \
  43. -b /arriba_v2.1.0/database/blacklist_hg38_GRCh38_v2.1.0.tsv.gz \
  44. -k /arriba_v2.1.0/database/known_fusions_hg38_GRCh38_v2.1.0.tsv.gz \
  45. -t /arriba_v2.1.0/database/known_fusions_hg38_GRCh38_v2.1.0.tsv.gz \
  46. -p /arriba_v2.1.0/database/protein_domains_hg38_GRCh38_v2.1.0.gff3
  47. >>>
  48. runtime {
  49. docker: docker
  50. cluster: cluster
  51. systemDisk: "cloud_ssd 40"
  52. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  53. }
  54. output {
  55. Array[File] arriba_result=glob("./output/*.tsv")
  56. Array[File] arriba_bam=glob("./output/*.bam")
  57. }
  58. }