File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/33/48853dbe11f99458232431e361e418/.command.log
Size
12.9 KB
Attempt
  Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/starfusion/ctat_genome_lib_build_dir/ref_genome.fa
  Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/33/48853dbe11f99458232431e361e418/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/52/89670b915ec96d3c5bb9f1a1b25d0a/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
  Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/starfusion/ctat_genome_lib_build_dir/ref_genome.dict
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/52/89670b915ec96d3c5bb9f1a1b25d0a/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bam
  Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/gatk4/dbsnp_hg38_contam_sites.bed
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/33/48853dbe11f99458232431e361e418/.command.run
  Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/starfusion/ctat_genome_lib_build_dir/ref_genome.fa.fai
  Downloading: s3://natera-platform-sandbox/pipeline-resources/beds/twist/Twist_rna_exome_AND_fusion_hg38.bed
  Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz.tbi
==> STAGING COMPLETE (11 inputs)

+ mkdir aih-tih-sc-e33b0b-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bam -beds Twist_rna_exome_AND_fusion_hg38.bed -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz -contamination_bed dbsnp_hg38_contam_sites.bed -output_folder aih-tih-sc-e33b0b-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/


cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/full_bed.bed


seqtool depth -bam aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bam -bed aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.depth.gz
saturation_plot       -bams aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bam       -region chr20       -output aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/saturation_plot.png       -threads 1 
seqtool saturation_metric       -at 1000000       -region chr20       -bam_threads 1       aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/saturation_qc.tsv 
fragment_size       -bams aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bam       -region chr20       -output_prefix aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/fragsize       -threads 1 
samtools mpileup   -B --min-MQ 60 --min-BQ 30    -f ref_genome.fa   -l dbsnp_hg38_contam_sites.bed   aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.mpileup && contamination -input aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/contamination.tsv 
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
/opt/conda/lib/python3.9/site-packages/pyranges/__init__.py:8: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  import pkg_resources
/opt/conda/lib/python3.9/site-packages/pyranges/__init__.py:8: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  import pkg_resources
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai

0it [00:00, ?it/s]
161671it [00:00, 1616326.18it/s]
331477it [00:00, 1664366.12it/s]
502791it [00:00, 1686581.52it/s]
676374it [00:00, 1706001.30it/s]
851901it [00:00, 1723748.47it/s]
1027269it [00:00, 1733905.72it/s]
1202578it [00:00, 1740157.51it/s]
1376594it [00:00, 1736753.98it/s]
1550271it [00:00, 1734875.50it/s]
1723760it [00:01, 1734448.43it/s]
1897206it [00:01, 1733232.41it/s]
2073631it [00:01, 1742630.08it/s]
2251249it [00:01, 1752586.54it/s]
2427149it [00:01, 1754498.72it/s]
2602601it [00:01, 1744982.55it/s]
2777509it [00:01, 1746031.54it/s]
2952122it [00:01, 1745639.83it/s]
3126693it [00:01, 1740223.02it/s]
3300723it [00:01, 1736024.73it/s]
3474332it [00:02, 1722098.04it/s]
3647774it [00:02, 1725745.55it/s]
3821169it [00:02, 1728066.76it/s]
3997577it [00:02, 1738805.21it/s]
4171473it [00:02, 1732286.55it/s]
4344762it [00:02, 1732447.50it/s]
4518017it [00:02, 1732121.77it/s]
4694521it [00:02, 1741953.89it/s]
4868724it [00:02, 1741054.74it/s]
5042835it [00:02, 1727667.90it/s]
5215627it [00:03, 1705954.21it/s]
5391679it [00:03, 1722082.10it/s]
5565248it [00:03, 1726098.37it/s]
5740612it [00:03, 1734285.66it/s]
5915662it [00:03, 1739109.24it/s]
6089605it [00:03, 1726856.44it/s]
6262329it [00:03, 1713853.79it/s]
6433755it [00:03, 1697617.62it/s]
6603565it [00:03, 1687621.44it/s]
6772361it [00:03, 1681006.05it/s]
6940482it [00:04, 1677058.93it/s]
7109678it [00:04, 1681462.46it/s]
7282364it [00:04, 1694914.09it/s]
7454361it [00:04, 1702375.18it/s]
7628137it [00:04, 1712935.13it/s]
7801711it [00:04, 1719742.29it/s]
7974196it [00:04, 1721247.74it/s]
8150519it [00:04, 1733805.77it/s]
8323908it [00:04, 1732228.47it/s]
8497137it [00:04, 1730693.37it/s]
8670211it [00:05, 1727971.92it/s]
8843012it [00:05, 1725667.15it/s]
9016382it [00:05, 1728044.45it/s]
9189189it [00:05, 1724959.92it/s]
9362485it [00:05, 1727332.33it/s]
9536762it [00:05, 1731799.05it/s]
9712032it [00:05, 1738041.94it/s]
9885839it [00:05, 1736844.43it/s]
10059569it [00:05, 1736961.59it/s]
10237172it [00:05, 1748650.85it/s]
10412039it [00:06, 1748158.47it/s]
10586857it [00:06, 1746985.31it/s]
10761557it [00:06, 1738791.69it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai

10938125it [00:06, 1746804.74it/s]
11112815it [00:06, 1730536.30it/s]
11285906it [00:06, 1711501.53it/s]
11457115it [00:06, 1709617.36it/s]
11631258it [00:06, 1719035.08it/s]
11803861it [00:06, 1721090.51it/s]
11976637it [00:06, 1723054.53it/s]
12149094it [00:07, 1723483.44it/s]
12321457it [00:07, 1721097.82it/s]
12495694it [00:07, 1727410.49it/s]
12669245it [00:07, 1729812.60it/s]
12842233it [00:07, 1728871.32it/s]
13017911it [00:07, 1737209.46it/s]
13191637it [00:07, 1734874.66it/s]
13366027it [00:07, 1737557.28it/s]
13539786it [00:07, 1726277.78it/s]
13712432it [00:07, 1711893.40it/s]
13725985it [00:07, 1725507.76it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai




[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai


[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai


tabix -s 1 -b 2 -e 2 aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.depth.gz


seqtool depth_hist     -nbins 500     aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.depth.gz     > aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.depth_hist.tsv


cat aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.depth_hist.tsv | plot         -x 0         -xlabel Depth -ylabel "Number of Sites"         -xlim 0 2000         -title aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md         -output aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.depth.png


[W::hts_idx_load3] The index file is older than the data file: Homo_sapiens_assembly38.dbsnp138.vcf.gz.tbi


seqtool read_qc    -bed Twist_rna_exome_AND_fusion_hg38.bed     -n_threads 1     -bam_threads 2     aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/read_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv
seqtool reads_per_target     -bed Twist_rna_exome_AND_fusion_hg38.bed     -threads 1     -bam_threads 2     aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv 
seqtool depth_stats  -bed Twist_rna_exome_AND_fusion_hg38.bed  aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.depth.gz> aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/depth_stats.Twist_rna_exome_AND_fusion_hg38.bed.tsv 
seqtool gc_bias  -reference ref_genome.fa  -bed Twist_rna_exome_AND_fusion_hg38.bed  -bin_size 0.05  -threads 1  -bam_threads 2  aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bam  > aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv 
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md.bai






cat aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv  | plot -x 0  -header infer  -ylim 0 2  -title "aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png"  -ylabel "Fold enrichment / depletion"  -xlabel "GC Quantile" 




echo `date` > aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md/qc_complete.txt


+ merge_qc -folders aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1.md -output aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed aih-tih-sc-e33b0b-R1_A23WJ53LT4_1/aih-tih-sc-e33b0b-R1_A23WJ53LT4_1_full_basic_stats.tsv