File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/0a/37782750931ddf467bc3d08d052afa/.command.log
Size
13.7 KB
Attempt
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/22/94ca776f7670c28ecbfffe780110cd/aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.bam
  Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz
  Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/starfusion/ctat_genome_lib_build_dir/ref_genome.fa
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/0a/37782750931ddf467bc3d08d052afa/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/22/94ca776f7670c28ecbfffe780110cd/aih-tih-sc-fee548-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-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/gatk4/dbsnp_hg38_contam_sites.bed
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/0a/37782750931ddf467bc3d08d052afa/.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-fee548-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-fee548-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-fee548-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-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-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-R1_A23WJ53LT4_1.md/full_bed.bed


seqtool depth -bam aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.bam -bed aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-R1_A23WJ53LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-R1_A23WJ53LT4_1.md/aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.depth.gz
saturation_plot       -bams aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.bam       -region chr20       -output aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-R1_A23WJ53LT4_1.md/saturation_plot.png       -threads 1 
seqtool saturation_metric       -at 1000000       -region chr20       -bam_threads 1       aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-R1_A23WJ53LT4_1.md/saturation_qc.tsv 
fragment_size       -bams aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.bam       -region chr20       -output_prefix aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-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-fee548-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.mpileup && contamination -input aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-R1_A23WJ53LT4_1.md/contamination.tsv 
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-fee548-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-fee548-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-fee548-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-fee548-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.bai

0it [00:00, ?it/s]
132890it [00:00, 1328825.23it/s]
278880it [00:00, 1405891.55it/s]
425647it [00:00, 1434074.24it/s]
574330it [00:00, 1454881.07it/s]
723485it [00:00, 1468075.29it/s]
875057it [00:00, 1484255.27it/s]
1026170it [00:00, 1493021.69it/s]
1177892it [00:00, 1500703.87it/s]
1330215it [00:00, 1507666.34it/s]
1481544it [00:01, 1509381.72it/s]
1632483it [00:01, 1509042.26it/s]
1783481it [00:01, 1509309.31it/s]
1934412it [00:01, 1503672.07it/s]
2089654it [00:01, 1518343.78it/s]
2244839it [00:01, 1528407.31it/s]
2405521it [00:01, 1551963.99it/s]
2561746it [00:01, 1555035.59it/s]
2718560it [00:01, 1558919.81it/s]
2874457it [00:01, 1555013.26it/s]
3030411it [00:02, 1556354.39it/s]
3187591it [00:02, 1560970.86it/s]
3343692it [00:02, 1551172.71it/s]
3498825it [00:02, 1546384.81it/s]
3653476it [00:02, 1541130.42it/s]
3807599it [00:02, 1536688.03it/s]
3961275it [00:02, 1527655.90it/s]
4114364it [00:02, 1528596.50it/s]
4267233it [00:02, 1525623.78it/s]
4419802it [00:02, 1516488.02it/s]
4572421it [00:03, 1519360.24it/s]
4724499it [00:03, 1519769.03it/s]
4876484it [00:03, 1511072.20it/s]
5029293it [00:03, 1516104.30it/s]
5185177it [00:03, 1528848.51it/s]
5339138it [00:03, 1532045.73it/s]
5492355it [00:03, 1526482.54it/s]
5645015it [00:03, 1526240.87it/s]
5797651it [00:03, 1526262.79it/s]
5953510it [00:03, 1535925.00it/s]
6111572it [00:04, 1549297.98it/s]
6267897it [00:04, 1553465.10it/s]
6423249it [00:04, 1551148.34it/s]
6578368it [00:04, 1550693.95it/s]
6735077it [00:04, 1555497.83it/s]
6891002it [00:04, 1556586.12it/s]
7047797it [00:04, 1559979.98it/s]
7203797it [00:04, 1550416.53it/s]
7358853it [00:04, 1544358.80it/s]
7513302it [00:04, 1539088.09it/s]
7667221it [00:05, 1534791.78it/s]
7821782it [00:05, 1537998.76it/s]
7975868it [00:05, 1538834.96it/s]
8129757it [00:05, 1536178.53it/s]
8283808it [00:05, 1537457.42it/s]
8437557it [00:05, 1524783.46it/s]
8590059it [00:05, 1515010.40it/s]
8741584it [00:05, 1505682.62it/s]
8892174it [00:05, 1500477.58it/s]
9042235it [00:05, 1500111.68it/s]
9192255it [00:06, 1499564.58it/s]
9344502it [00:06, 1506382.93it/s]
9496231it [00:06, 1509552.54it/s]
9648390it [00:06, 1513111.15it/s]
9799707it [00:06, 1506897.51it/s]
9950406it [00:06, 1505112.86it/s]
10101304it [00:06, 1506246.47it/s]
10255529it [00:06, 1516995.18it/s]
10409334it [00:06, 1523257.71it/s]
10564545it [00:06, 1531879.23it/s]
10718319it [00:07, 1533617.60it/s]
10871685it [00:07, 1517487.75it/s]
11024903it [00:07, 1521816.93it/s]
11178045it [00:07, 1524663.90it/s]
11333564it [00:07, 1533769.06it/s]
11492881it [00:07, 1551438.15it/s]
11649387it [00:07, 1555429.41it/s]
11804944it [00:07, 1554551.51it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.bai

11962630it [00:07, 1561215.04it/s]
12118760it [00:07, 1557085.35it/s]
12274477it [00:08, 1550085.52it/s]
12429497it [00:08, 1545913.88it/s]
12586388it [00:08, 1552757.35it/s]
12741674it [00:08, 1547482.42it/s]
12896432it [00:08, 1538125.66it/s]
13054678it [00:08, 1551305.39it/s]
13213080it [00:08, 1560944.47it/s]
13369194it [00:08, 1552485.18it/s]
13526022it [00:08, 1557163.20it/s]
13681757it [00:08, 1554768.66it/s]
13837247it [00:09, 1551060.40it/s]
13992898it [00:09, 1552664.80it/s]
14148172it [00:09, 1551896.71it/s]
14303809it [00:09, 1553211.17it/s]
14461051it [00:09, 1558934.44it/s]
14616949it [00:09, 1555748.07it/s]
14772528it [00:09, 1555623.42it/s]
14928093it [00:09, 1553710.37it/s]
15083467it [00:09, 1545358.66it/s]
15238013it [00:09, 1535316.22it/s]
15391730it [00:10, 1535849.69it/s]
15545328it [00:10, 1504082.65it/s]
15697376it [00:10, 1508893.82it/s]
15730845it [00:10, 1530149.37it/s]


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


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


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


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


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


cat aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-R1_A23WJ53LT4_1.md/aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.depth_hist.tsv | plot         -x 0         -xlabel Depth -ylabel "Number of Sites"         -xlim 0 2000         -title aih-tih-sc-fee548-R1_A23WJ53LT4_1.md         -output aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-R1_A23WJ53LT4_1.md/aih-tih-sc-fee548-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-fee548-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-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-fee548-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-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-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-R1_A23WJ53LT4_1.md/aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.depth.gz> aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-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-fee548-R1_A23WJ53LT4_1.md.bam  > aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-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-fee548-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-fee548-R1_A23WJ53LT4_1.md.bai




cat aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-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-fee548-R1_A23WJ53LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-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-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-R1_A23WJ53LT4_1.md/qc_complete.txt


+ merge_qc -folders aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-R1_A23WJ53LT4_1.md -output aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-R1_A23WJ53LT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-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-fee548-R1_A23WJ53LT4_1/aih-tih-sc-fee548-R1_A23WJ53LT4_1_full_basic_stats.tsv