File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/9d/d9bc40e231a94850ada8601dcd16ec/.command.log
Size
13.0 KB
Attempt
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/ff/20bfcf5bb26c812eb2df82ea1a9427/tih_rna_sample_00121_B23WHTKLT4_1.md.bai
  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/9d/d9bc40e231a94850ada8601dcd16ec/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/ff/20bfcf5bb26c812eb2df82ea1a9427/tih_rna_sample_00121_B23WHTKLT4_1.md.bam
  Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/starfusion/ctat_genome_lib_build_dir/ref_genome.dict
  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/9d/d9bc40e231a94850ada8601dcd16ec/.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 tih_rna_sample_00121_B23WHTKLT4_1
+ all_qc -bam tih_rna_sample_00121_B23WHTKLT4_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 tih_rna_sample_00121_B23WHTKLT4_1 -reference ref_genome.fa -region chr20
mkdir -p tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md/


cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md/full_bed.bed


seqtool depth -bam tih_rna_sample_00121_B23WHTKLT4_1.md.bam -bed tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md/tih_rna_sample_00121_B23WHTKLT4_1.md.depth.gz
seqtool saturation_metric       -at 1000000       -region chr20       -bam_threads 1       tih_rna_sample_00121_B23WHTKLT4_1.md.bam > tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md/saturation_qc.tsv 
fragment_size       -bams tih_rna_sample_00121_B23WHTKLT4_1.md.bam       -region chr20       -output_prefix tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md/fragsize       -threads 1 
saturation_plot       -bams tih_rna_sample_00121_B23WHTKLT4_1.md.bam       -region chr20       -output tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md/saturation_plot.png       -threads 1 
samtools mpileup   -B --min-MQ 60 --min-BQ 30    -f ref_genome.fa   -l dbsnp_hg38_contam_sites.bed   tih_rna_sample_00121_B23WHTKLT4_1.md.bam > tih_rna_sample_00121_B23WHTKLT4_1.md.mpileup && contamination -input tih_rna_sample_00121_B23WHTKLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md/contamination.tsv 
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_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: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai

0it [00:00, ?it/s]
143966it [00:00, 1439579.00it/s]
296060it [00:00, 1487227.48it/s]
457273it [00:00, 1544178.85it/s]
620884it [00:00, 1580269.00it/s]
778911it [00:00, 1556497.19it/s]
938351it [00:00, 1569234.79it/s]
1105310it [00:00, 1601682.80it/s]
1274927it [00:00, 1631596.00it/s]
1442741it [00:00, 1646076.30it/s]
1613856it [00:01, 1666030.44it/s]
1780492it [00:01, 1655608.14it/s]
1952637it [00:01, 1675506.13it/s]
2124000it [00:01, 1686990.44it/s]
2293117it [00:01, 1688229.32it/s]
2467256it [00:01, 1704204.07it/s]
2639478it [00:01, 1709598.06it/s]
2810555it [00:01, 1709931.02it/s]
2981558it [00:01, 1707854.47it/s]
3152351it [00:01, 1707030.43it/s]
3323059it [00:02, 1684008.79it/s]
3491708it [00:02, 1684726.04it/s]
3662592it [00:02, 1691889.15it/s]
3833056it [00:02, 1695674.61it/s]
4002654it [00:02, 1694019.10it/s]
4174739it [00:02, 1702017.14it/s]
4344958it [00:02, 1696435.84it/s]
4514617it [00:02, 1694677.24it/s]
4684096it [00:02, 1686955.62it/s]
4852845it [00:02, 1687069.92it/s]
5022961it [00:03, 1691259.01it/s]
5193047it [00:03, 1694107.62it/s]
5365447it [00:03, 1703036.37it/s]
5535757it [00:03, 1697636.95it/s]
5705529it [00:03, 1692847.74it/s]
5876046it [00:03, 1696507.54it/s]
6045704it [00:03, 1693913.20it/s]
6215205it [00:03, 1694222.36it/s]
6385384it [00:03, 1696465.09it/s]
6556359it [00:03, 1700421.74it/s]
6726404it [00:04, 1699441.13it/s]
6896350it [00:04, 1697624.43it/s]
7067184it [00:04, 1700807.79it/s]
7238100it [00:04, 1703288.03it/s]
7410877it [00:04, 1710608.96it/s]
7583443it [00:04, 1715094.03it/s]
7756783it [00:04, 1720559.49it/s]
7928841it [00:04, 1711349.27it/s]
8099988it [00:04, 1709605.17it/s]
8274719it [00:04, 1720844.38it/s]
8447015it [00:05, 1721453.42it/s]
8619168it [00:05, 1716921.39it/s]
8790867it [00:05, 1704680.04it/s]
8961357it [00:05, 1694894.49it/s]
9130868it [00:05, 1694251.74it/s]
9302300it [00:05, 1700195.22it/s]
9472958it [00:05, 1702079.15it/s]
9643177it [00:05, 1691208.72it/s]
9817163it [00:05, 1705586.72it/s]
9988442it [00:05, 1707636.90it/s]
10162489it [00:06, 1717432.88it/s]
10335651it [00:06, 1721657.17it/s]
10508195it [00:06, 1722767.22it/s]
10680481it [00:06, 1720738.90it/s]
10852562it [00:06, 1701652.29it/s]
11022777it [00:06, 1696310.49it/s]
11192443it [00:06, 1696181.58it/s]
11364667it [00:06, 1703932.59it/s]
11535082it [00:06, 1703902.15it/s]
11706091it [00:06, 1705602.54it/s]
11876663it [00:07, 1698497.12it/s]
12047761it [00:07, 1702202.72it/s]
12217993it [00:07, 1699646.10it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai

12389177it [00:07, 1703227.24it/s]
12559507it [00:07, 1701886.87it/s]
12729953it [00:07, 1702534.89it/s]
12900210it [00:07, 1698131.73it/s]
13071396it [00:07, 1702218.03it/s]
13246956it [00:07, 1718179.37it/s]
13418781it [00:07, 1715850.52it/s]
13590715it [00:08, 1716876.18it/s]
13762407it [00:08, 1712634.04it/s]
13933676it [00:08, 1712520.56it/s]
14000957it [00:08, 1691519.27it/s]
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai




[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai


[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai


tabix -s 1 -b 2 -e 2 tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md/tih_rna_sample_00121_B23WHTKLT4_1.md.depth.gz


seqtool depth_hist     -nbins 500     tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md/tih_rna_sample_00121_B23WHTKLT4_1.md.depth.gz     > tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md/tih_rna_sample_00121_B23WHTKLT4_1.md.depth_hist.tsv


cat tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md/tih_rna_sample_00121_B23WHTKLT4_1.md.depth_hist.tsv | plot         -x 0         -xlabel Depth -ylabel "Number of Sites"         -xlim 0 2000         -title tih_rna_sample_00121_B23WHTKLT4_1.md         -output tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md/tih_rna_sample_00121_B23WHTKLT4_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     tih_rna_sample_00121_B23WHTKLT4_1.md.bam > tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_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     tih_rna_sample_00121_B23WHTKLT4_1.md.bam > tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv 
seqtool depth_stats  -bed Twist_rna_exome_AND_fusion_hg38.bed  tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md/tih_rna_sample_00121_B23WHTKLT4_1.md.depth.gz> tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_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  tih_rna_sample_00121_B23WHTKLT4_1.md.bam  > tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_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: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_1.md.bai




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






echo `date` > tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md/qc_complete.txt


+ merge_qc -folders tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1.md -output tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1_full_basic_stats.tsv
+ head -n1 tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed tih_rna_sample_00121_B23WHTKLT4_1/tih_rna_sample_00121_B23WHTKLT4_1_full_basic_stats.tsv