File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/f9/9fdc774798bb59d91df5ad032eef08/.command.log
Size
13.3 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/f9/9fdc774798bb59d91df5ad032eef08/.command.sh
  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/f8/9a840ebfb6539bc3940dce499ac59b/aih-tih-sc-5c902f-R1_B23WHYVLT4_1.md.bai
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/f9/9fdc774798bb59d91df5ad032eef08/.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-rnd-pltf-dev-nextflow-scratch-01/work/f8/9a840ebfb6539bc3940dce499ac59b/aih-tih-sc-5c902f-R1_B23WHYVLT4_1.md.bam
  Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz.tbi
==> STAGING COMPLETE (11 inputs)

+ mkdir aih-tih-sc-5c902f-R1_B23WHYVLT4_1
+ all_qc -bam aih-tih-sc-5c902f-R1_B23WHYVLT4_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-5c902f-R1_B23WHYVLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-5c902f-R1_B23WHYVLT4_1/aih-tih-sc-5c902f-R1_B23WHYVLT4_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-5c902f-R1_B23WHYVLT4_1/aih-tih-sc-5c902f-R1_B23WHYVLT4_1.md/full_bed.bed


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

0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-5c902f-R1_B23WHYVLT4_1.md.bai

90694it [00:00, 906800.34it/s]
181375it [00:00, 871660.26it/s]
271549it [00:00, 885065.85it/s]
360136it [00:00, 776797.66it/s]
449758it [00:00, 815958.89it/s]
532811it [00:00, 783153.95it/s]
644791it [00:00, 885145.85it/s]
749475it [00:00, 933983.33it/s]
844163it [00:00, 930224.58it/s]
938065it [00:01, 826498.69it/s]
1036808it [00:01, 870701.43it/s]
1126142it [00:01, 866085.60it/s]
1217800it [00:01, 880434.01it/s]
1308765it [00:01, 888838.54it/s]
1405706it [00:01, 912360.79it/s]
1497617it [00:01, 885294.31it/s]
1588816it [00:01, 893002.69it/s]
1684597it [00:01, 911940.67it/s]
1792033it [00:02, 959730.30it/s]
1903116it [00:02, 1004468.12it/s]
2016997it [00:02, 1044395.66it/s]
2129759it [00:02, 1069188.09it/s]
2241863it [00:02, 1084657.98it/s]
2354008it [00:02, 1095644.25it/s]
2467316it [00:02, 1106827.46it/s]
2580719it [00:02, 1114910.05it/s]
2693272it [00:02, 1118070.46it/s]
2807572it [00:02, 1125522.84it/s]
2920386it [00:03, 1126286.13it/s]
3034095it [00:03, 1129508.52it/s]
3147432it [00:03, 1130557.00it/s]
3260692it [00:03, 1131100.50it/s]
3375090it [00:03, 1134942.66it/s]
3488589it [00:03, 1134455.81it/s]
3603074it [00:03, 1137442.12it/s]
3716995it [00:03, 1137952.26it/s]
3831839it [00:03, 1141068.65it/s]
3945948it [00:03, 1136123.53it/s]
4060097it [00:04, 1137708.38it/s]
4173873it [00:04, 1133783.73it/s]
4287257it [00:04, 1131026.71it/s]
4400364it [00:04, 1121067.66it/s]
4512490it [00:04, 1114915.73it/s]
4627081it [00:04, 1124077.61it/s]
4739510it [00:04, 1059901.27it/s]
4846235it [00:04, 1025601.40it/s]
4959351it [00:04, 1055464.34it/s]
5073442it [00:04, 1080050.88it/s]
5181985it [00:05, 1072329.26it/s]
5296090it [00:05, 1092389.19it/s]
5409188it [00:05, 1103724.00it/s]
5524161it [00:05, 1117324.64it/s]
5637710it [00:05, 1122639.01it/s]
5751503it [00:05, 1127112.15it/s]
5866003it [00:05, 1132433.33it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-5c902f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-5c902f-R1_B23WHYVLT4_1.md.bai

5979317it [00:05, 1131101.47it/s]
6092477it [00:05, 1123637.13it/s]
6204885it [00:05, 1122035.21it/s]
6317937it [00:06, 1124545.00it/s]
6430587it [00:06, 1125106.12it/s]
6544099it [00:06, 1128080.02it/s]
6658703it [00:06, 1133436.08it/s]
6773327it [00:06, 1137253.25it/s]
6888445it [00:06, 1141405.23it/s]
7003718it [00:06, 1144779.19it/s]
7118200it [00:06, 1144098.19it/s]
7232613it [00:06, 1141928.19it/s]
7348421it [00:06, 1146739.52it/s]
7463098it [00:07, 1145981.98it/s]
7577699it [00:07, 1142946.53it/s]
7691997it [00:07, 1137701.22it/s]
7805774it [00:07, 1131991.34it/s]
7918982it [00:07, 1126756.39it/s]
8032978it [00:07, 1130561.48it/s]
8146043it [00:07, 1128848.83it/s]
8258934it [00:07, 1125912.86it/s]
8371774it [00:07, 1126633.60it/s]
8484441it [00:07, 1123685.69it/s]
8597974it [00:08, 1127059.13it/s]
8711314it [00:08, 1128832.41it/s]
8824201it [00:08, 1123345.86it/s]
8938249it [00:08, 1128435.54it/s]
9052265it [00:08, 1131914.86it/s]
9165463it [00:08, 1120957.99it/s]
9277585it [00:08, 1118264.70it/s]
9389787it [00:08, 1119363.83it/s]
9504118it [00:08, 1126488.91it/s]
9618059it [00:08, 1130328.18it/s]
9732660it [00:09, 1134997.71it/s]
9846169it [00:09, 1132495.11it/s]
9959426it [00:09, 1127264.02it/s]
10073027it [00:09, 1129814.01it/s]
10089038it [00:09, 1073453.48it/s]


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


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


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


tabix -s 1 -b 2 -e 2 aih-tih-sc-5c902f-R1_B23WHYVLT4_1/aih-tih-sc-5c902f-R1_B23WHYVLT4_1.md/aih-tih-sc-5c902f-R1_B23WHYVLT4_1.md.depth.gz


seqtool depth_hist     -nbins 500     aih-tih-sc-5c902f-R1_B23WHYVLT4_1/aih-tih-sc-5c902f-R1_B23WHYVLT4_1.md/aih-tih-sc-5c902f-R1_B23WHYVLT4_1.md.depth.gz     > aih-tih-sc-5c902f-R1_B23WHYVLT4_1/aih-tih-sc-5c902f-R1_B23WHYVLT4_1.md/aih-tih-sc-5c902f-R1_B23WHYVLT4_1.md.depth_hist.tsv


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






cat aih-tih-sc-5c902f-R1_B23WHYVLT4_1/aih-tih-sc-5c902f-R1_B23WHYVLT4_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-5c902f-R1_B23WHYVLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-5c902f-R1_B23WHYVLT4_1/aih-tih-sc-5c902f-R1_B23WHYVLT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png"  -ylabel "Fold enrichment / depletion"  -xlabel "GC Quantile" 




echo `date` > aih-tih-sc-5c902f-R1_B23WHYVLT4_1/aih-tih-sc-5c902f-R1_B23WHYVLT4_1.md/qc_complete.txt


+ merge_qc -folders aih-tih-sc-5c902f-R1_B23WHYVLT4_1/aih-tih-sc-5c902f-R1_B23WHYVLT4_1.md -output aih-tih-sc-5c902f-R1_B23WHYVLT4_1/aih-tih-sc-5c902f-R1_B23WHYVLT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-5c902f-R1_B23WHYVLT4_1/aih-tih-sc-5c902f-R1_B23WHYVLT4_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-5c902f-R1_B23WHYVLT4_1/aih-tih-sc-5c902f-R1_B23WHYVLT4_1_full_basic_stats.tsv