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/70/310a1a136d17c9ea25ab3684d470aa/.command.sh
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/2e/5138825491b00634cbd1f002f858c8/aih-tih-sc-0419d4-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/70/310a1a136d17c9ea25ab3684d470aa/.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-rnd-pltf-dev-nextflow-scratch-01/work/2e/5138825491b00634cbd1f002f858c8/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bam
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-0419d4-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-0419d4-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-0419d4-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-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-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md/full_bed.bed
seqtool depth -bam aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bam -bed aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.depth.gz
saturation_plot -bams aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bam -region chr20 -output aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md/saturation_qc.tsv
fragment_size -bams aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-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-0419d4-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.mpileup && contamination -input aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-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-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-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-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
0it [00:00, ?it/s]
91704it [00:00, 916857.25it/s]
188329it [00:00, 945750.80it/s]
289570it [00:00, 976154.27it/s]
397655it [00:00, 1008190.96it/s]
498431it [00:00, 1003594.60it/s]
610590it [00:00, 1043411.14it/s]
716379it [00:00, 1047359.23it/s]
821123it [00:00, 1009966.92it/s]
926398it [00:00, 1022946.91it/s]
1039712it [00:01, 1056289.46it/s]
1153720it [00:01, 1081561.99it/s]
1262058it [00:01, 1077623.87it/s]
1369947it [00:01, 1039970.02it/s]
1479900it [00:01, 1057365.62it/s]
1589912it [00:01, 1069917.62it/s]
1702860it [00:01, 1087538.58it/s]
1815612it [00:01, 1099404.21it/s]
1925700it [00:01, 1095199.66it/s]
2035324it [00:01, 1082687.10it/s]
2177415it [00:02, 1182773.08it/s]
2327645it [00:02, 1277700.86it/s]
2468387it [00:02, 1316281.34it/s]
2617189it [00:02, 1367434.82it/s]
2759119it [00:02, 1382905.48it/s]
2897528it [00:02, 1366735.49it/s]
3034325it [00:02, 1358043.25it/s]
3184280it [00:02, 1399932.85it/s]
3326653it [00:02, 1406976.69it/s]
3470818it [00:02, 1417207.94it/s]
3612604it [00:03, 1392757.03it/s]
3752012it [00:03, 1273149.04it/s]
3897371it [00:03, 1323348.84it/s]
4043602it [00:03, 1362808.24it/s]
4185699it [00:03, 1379523.01it/s]
4324735it [00:03, 1364216.02it/s]
4467448it [00:03, 1382536.68it/s]
4620952it [00:03, 1427354.86it/s]
4764189it [00:03, 1401597.81it/s]
4905905it [00:03, 1406036.51it/s]
5051430it [00:04, 1420525.38it/s]
5208653it [00:04, 1465475.34it/s]
5376387it [00:04, 1528484.59it/s]
5541214it [00:04, 1564123.93it/s]
5697791it [00:04, 1530217.42it/s]
5862060it [00:04, 1563306.26it/s]
6027759it [00:04, 1590896.80it/s]
6187059it [00:04, 1583382.09it/s]
6345547it [00:04, 1582229.73it/s]
6503874it [00:05, 1540962.27it/s]
6658254it [00:05, 1500800.03it/s]
6828264it [00:05, 1558436.29it/s]
6993137it [00:05, 1584729.59it/s]
7158729it [00:05, 1605675.67it/s]
7320898it [00:05, 1610387.41it/s]
7482159it [00:05, 1602427.17it/s]
7642560it [00:05, 1591169.88it/s]
7801796it [00:05, 1585652.97it/s]
7967979it [00:05, 1608223.26it/s]
8132303it [00:06, 1618616.05it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
8294231it [00:06, 1605007.86it/s]
8459547it [00:06, 1619262.99it/s]
8621533it [00:06, 1608899.87it/s]
8782474it [00:06, 1495885.64it/s]
8933618it [00:06, 1482353.04it/s]
9091753it [00:06, 1510585.46it/s]
9257702it [00:06, 1553683.41it/s]
9418119it [00:06, 1568332.95it/s]
9575527it [00:06, 1529529.71it/s]
9746569it [00:07, 1582124.04it/s]
9916292it [00:07, 1615782.75it/s]
10086835it [00:07, 1642233.98it/s]
10258382it [00:07, 1663931.43it/s]
10427703it [00:07, 1672504.84it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
10600865it [00:07, 1690105.94it/s]
10722865it [00:07, 1403787.55it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.depth.gz > aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.depth_hist.tsv
cat aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md -output aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md/aih-tih-sc-0419d4-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-0419d4-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-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-0419d4-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-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-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.depth.gz> aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-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-0419d4-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-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-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md.bai
cat aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-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-0419d4-R1_A23WJ53LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-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-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md/qc_complete.txt
+ merge_qc -folders aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-R1_A23WJ53LT4_1.md -output aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-R1_A23WJ53LT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-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-0419d4-R1_A23WJ53LT4_1/aih-tih-sc-0419d4-R1_A23WJ53LT4_1_full_basic_stats.tsv