File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/fc/90d52009d1a568a21987c56e5b79b5/.command.log
Size
15.1 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/fc/90d52009d1a568a21987c56e5b79b5/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/bd/f50e2bd4fe13b63cbe7cdd7be243ab/aih-tih-sc-06a169-R1_A23WJ53LT4_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-rnd-pltf-dev-nextflow-scratch-01/work/bd/f50e2bd4fe13b63cbe7cdd7be243ab/aih-tih-sc-06a169-R1_A23WJ53LT4_1.md.bai
  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/fc/90d52009d1a568a21987c56e5b79b5/.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-06a169-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-06a169-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-06a169-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-06a169-R1_A23WJ53LT4_1/aih-tih-sc-06a169-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-06a169-R1_A23WJ53LT4_1/aih-tih-sc-06a169-R1_A23WJ53LT4_1.md/full_bed.bed


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

0it [00:00, ?it/s]
117437it [00:00, 1174284.33it/s]
240089it [00:00, 1204786.23it/s]
361660it [00:00, 1209604.34it/s]
487732it [00:00, 1229752.62it/s]
611199it [00:00, 1231496.44it/s]
734349it [00:00, 1214186.66it/s]
858604it [00:00, 1223336.98it/s]
983141it [00:00, 1230281.49it/s]
1108688it [00:00, 1238087.42it/s]
1232522it [00:01, 1234759.05it/s]
1356017it [00:01, 1223024.61it/s]
1483077it [00:01, 1237214.51it/s]
1606835it [00:01, 1234691.48it/s]
1730329it [00:01, 1231346.29it/s]
1853482it [00:01, 1228091.63it/s]
1976304it [00:01, 1216331.68it/s]
2102775it [00:01, 1230698.59it/s]
2225880it [00:01, 1222699.06it/s]
2348181it [00:01, 1220894.81it/s]
2470291it [00:02, 1205721.98it/s]
2594287it [00:02, 1215830.32it/s]
2718870it [00:02, 1224722.55it/s]
2841538it [00:02, 1225285.20it/s]
2966712it [00:02, 1233165.16it/s]
3091607it [00:02, 1237866.32it/s]
3215413it [00:02, 1232359.28it/s]
3338940it [00:02, 1233202.30it/s]
3466296it [00:02, 1245110.85it/s]
3593086it [00:02, 1251902.49it/s]
3721045it [00:03, 1260164.91it/s]
3848614it [00:03, 1264733.91it/s]
3975095it [00:03, 1261304.08it/s]
4101501it [00:03, 1262096.69it/s]
4227716it [00:03, 1244533.00it/s]
4352225it [00:03, 1226531.24it/s]
4476740it [00:03, 1231987.39it/s]
4600322it [00:03, 1233099.44it/s]
4723680it [00:03, 1226497.56it/s]
4846366it [00:03, 1209823.63it/s]
4968290it [00:04, 1212534.47it/s]
5089591it [00:04, 1200517.28it/s]
5216309it [00:04, 1220188.00it/s]
5342121it [00:04, 1231426.50it/s]
5468142it [00:04, 1239970.24it/s]
5592227it [00:04, 1240200.47it/s]
5716325it [00:04, 1240411.71it/s]
5840482it [00:04, 1240659.51it/s]
5966119it [00:04, 1245340.93it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-06a169-R1_A23WJ53LT4_1.md.bai

6090666it [00:04, 1241779.64it/s]
6214855it [00:05, 1212778.33it/s]
6336283it [00:05, 1195158.93it/s]
6455933it [00:05, 1191752.12it/s]
6575197it [00:05, 1181961.92it/s]
6695927it [00:05, 1189403.79it/s]
6816288it [00:05, 1193592.77it/s]
6939160it [00:05, 1204013.84it/s]
7062424it [00:05, 1212525.19it/s]
7184973it [00:05, 1216382.10it/s]
7308814it [00:05, 1222950.83it/s]
7434042it [00:06, 1231599.54it/s]
7557219it [00:06, 1222141.51it/s]
7683179it [00:06, 1233281.60it/s]
7808653it [00:06, 1239569.58it/s]
7932631it [00:06, 1234471.47it/s]
8057514it [00:06, 1238734.77it/s]
8181536it [00:06, 1239155.21it/s]
8305463it [00:06, 1233027.15it/s]
8431269it [00:06, 1240475.48it/s]
8555330it [00:06, 1238917.22it/s]
8679761it [00:07, 1240503.20it/s]
8806314it [00:07, 1247967.17it/s]
8931118it [00:07, 1242975.91it/s]
9055424it [00:07, 1242291.64it/s]
9181696it [00:07, 1248380.24it/s]
9306540it [00:07, 1242740.34it/s]
9430823it [00:07, 1241887.85it/s]
9555384it [00:07, 1242979.31it/s]
9679687it [00:07, 1242483.44it/s]
9805582it [00:07, 1247263.45it/s]
9930312it [00:08, 1246721.00it/s]
10055324it [00:08, 1247715.53it/s]
10180338it [00:08, 1248416.61it/s]
10305181it [00:08, 1247495.47it/s]
10429932it [00:08, 1247300.55it/s]
10554963it [00:08, 1248141.44it/s]
10679778it [00:08, 1245714.31it/s]
10805189it [00:08, 1248162.02it/s]
10930007it [00:08, 1247099.64it/s]
11054718it [00:08, 1246503.98it/s]
11180084it [00:09, 1248626.75it/s]
11304948it [00:09, 1244234.63it/s]
11430228it [00:09, 1246776.04it/s]
11554909it [00:09, 1246228.91it/s]
11679535it [00:09, 1241272.49it/s]
11803668it [00:09, 1240886.96it/s]
11927761it [00:09, 1240283.78it/s]
12053447it [00:09, 1245220.49it/s]
12177972it [00:09, 1243893.95it/s]
12302897it [00:09, 1245473.91it/s]
12427447it [00:10, 1244532.73it/s]
12553974it [00:10, 1250715.33it/s]
12680299it [00:10, 1254446.03it/s]
12805746it [00:10, 1236660.86it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-06a169-R1_A23WJ53LT4_1.md.bai

12929469it [00:10, 1236000.88it/s]
13058285it [00:10, 1251502.22it/s]
13185748it [00:10, 1258379.35it/s]
13311618it [00:10, 1248612.42it/s]
13436516it [00:10, 1244509.26it/s]
13560992it [00:10, 1241216.88it/s]
13685131it [00:11, 1238308.34it/s]
13811597it [00:11, 1246136.83it/s]
13936225it [00:11, 1240799.90it/s]
14060318it [00:11, 1229376.94it/s]
14184694it [00:11, 1233622.05it/s]
14308079it [00:11, 1228643.16it/s]
14430961it [00:11, 1227920.06it/s]
14554322it [00:11, 1229594.86it/s]
14677291it [00:11, 1212113.63it/s]
14798576it [00:11, 1212310.60it/s]
14922563it [00:12, 1220481.06it/s]
15047600it [00:12, 1229369.97it/s]
15171257it [00:12, 1231500.34it/s]
15294484it [00:12, 1231708.89it/s]
15418910it [00:12, 1235355.01it/s]
15544158it [00:12, 1240457.85it/s]
15668611it [00:12, 1241657.14it/s]
15792784it [00:12, 1234950.58it/s]
15919537it [00:12, 1244661.59it/s]
16045093it [00:13, 1247766.59it/s]
16169880it [00:13, 1241306.32it/s]
16297638it [00:13, 1252109.75it/s]
16422864it [00:13, 1245771.90it/s]
16547457it [00:13, 1240023.61it/s]
16671473it [00:13, 1228671.38it/s]
16797355it [00:13, 1237586.59it/s]
16921641it [00:13, 1239133.93it/s]
17048193it [00:13, 1246979.33it/s]
17173280it [00:13, 1248085.22it/s]
17298103it [00:14, 1235272.75it/s]
17421667it [00:14, 1234482.96it/s]
17545141it [00:14, 1224444.87it/s]
17667615it [00:14, 1213120.51it/s]
17790173it [00:14, 1216783.24it/s]
17869556it [00:14, 1233842.38it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-06a169-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-06a169-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-06a169-R1_A23WJ53LT4_1.md.bai




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


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


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


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


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




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


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