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/13/25560578bb800d589e77e57b2a9e4a/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/d9/6559dd28975b738bbd9f197b7fb8dc/aih-tih-sc-2905df-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-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/gatk4/dbsnp_hg38_contam_sites.bed
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/d9/6559dd28975b738bbd9f197b7fb8dc/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/13/25560578bb800d589e77e57b2a9e4a/.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-2905df-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-2905df-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-2905df-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-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-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md/full_bed.bed
seqtool depth -bam aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bam -bed aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.depth.gz
saturation_plot -bams aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bam -region chr20 -output aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md/saturation_qc.tsv
fragment_size -bams aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-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-2905df-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.mpileup && contamination -input aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-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-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-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-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
0it [00:00, ?it/s]
140107it [00:00, 1400063.26it/s]
291661it [00:00, 1467942.66it/s]
454538it [00:00, 1541347.76it/s]
618513it [00:00, 1580046.40it/s]
786464it [00:00, 1615881.81it/s]
953405it [00:00, 1633957.04it/s]
1119925it [00:00, 1644156.33it/s]
1287639it [00:00, 1654613.68it/s]
1453101it [00:00, 1645312.87it/s]
1617709it [00:01, 1645397.25it/s]
1784619it [00:01, 1652614.81it/s]
1949889it [00:01, 1636736.54it/s]
2113600it [00:01, 1624657.14it/s]
2281677it [00:01, 1641358.16it/s]
2450648it [00:01, 1655800.86it/s]
2616270it [00:01, 1654784.62it/s]
2786367it [00:01, 1668490.35it/s]
2954186it [00:01, 1671376.38it/s]
3121503it [00:01, 1671766.29it/s]
3288693it [00:02, 1654606.22it/s]
3455604it [00:02, 1658161.54it/s]
3623087it [00:02, 1663117.21it/s]
3790609it [00:02, 1666710.10it/s]
3957302it [00:02, 1663233.01it/s]
4124831it [00:02, 1666789.29it/s]
4292521it [00:02, 1669598.72it/s]
4462019it [00:02, 1677159.07it/s]
4629743it [00:02, 1668911.37it/s]
4796648it [00:02, 1649317.22it/s]
4961634it [00:03, 1600137.67it/s]
5122690it [00:03, 1603021.70it/s]
5283219it [00:03, 1557649.78it/s]
5440856it [00:03, 1563024.73it/s]
5597432it [00:03, 1537458.96it/s]
5759225it [00:03, 1560868.28it/s]
5915543it [00:03, 1519739.14it/s]
6073941it [00:03, 1538341.85it/s]
6233135it [00:03, 1554003.24it/s]
6388779it [00:03, 1512275.60it/s]
6552628it [00:04, 1548945.67it/s]
6719209it [00:04, 1583184.79it/s]
6886102it [00:04, 1608378.90it/s]
7052704it [00:04, 1625328.67it/s]
7215446it [00:04, 1625545.59it/s]
7379909it [00:04, 1631205.83it/s]
7543577it [00:04, 1632808.37it/s]
7711579it [00:04, 1646905.02it/s]
7878647it [00:04, 1653987.49it/s]
8048270it [00:04, 1666596.82it/s]
8214960it [00:05, 1655438.82it/s]
8380760it [00:05, 1656168.13it/s]
8546404it [00:05, 1494263.89it/s]
8698821it [00:05, 1452429.22it/s]
8863273it [00:05, 1505705.32it/s]
9029543it [00:05, 1550246.39it/s]
9192875it [00:05, 1574137.13it/s]
9357770it [00:05, 1595784.07it/s]
9522906it [00:05, 1612117.06it/s]
9690071it [00:06, 1629706.40it/s]
9853534it [00:06, 1615936.32it/s]
10017857it [00:06, 1623868.70it/s]
10184455it [00:06, 1636363.41it/s]
10352527it [00:06, 1649562.19it/s]
10521766it [00:06, 1662293.60it/s]
10688104it [00:06, 1658998.58it/s]
10854081it [00:06, 1654923.23it/s]
11025366it [00:06, 1672061.85it/s]
11195292it [00:06, 1677105.86it/s]
11364119it [00:07, 1680303.62it/s]
11536689it [00:07, 1693864.30it/s]
11707796it [00:07, 1698985.74it/s]
11877710it [00:07, 1691871.54it/s]
12046914it [00:07, 1685871.91it/s]
12215516it [00:07, 1681166.39it/s]
12383644it [00:07, 1662818.52it/s]
12549970it [00:07, 1660706.28it/s]
12718918it [00:07, 1669241.52it/s]
12885870it [00:07, 1669086.58it/s]
13054713it [00:08, 1674843.25it/s]
13222726it [00:08, 1676405.53it/s]
13390696it [00:08, 1677371.76it/s]
13558442it [00:08, 1674977.70it/s]
13725947it [00:08, 1667462.74it/s]
13893668it [00:08, 1670357.18it/s]
14061889it [00:08, 1669648.85it/s]
14228861it [00:08, 1669471.98it/s]
14395813it [00:08, 1668713.28it/s]
14565922it [00:08, 1678384.54it/s]
14734465it [00:09, 1680461.52it/s]
14904428it [00:09, 1686184.05it/s]
15073050it [00:09, 1668867.06it/s]
15242121it [00:09, 1675337.20it/s]
15412277it [00:09, 1683138.61it/s]
15580619it [00:09, 1674933.92it/s]
15748730it [00:09, 1676692.39it/s]
15916516it [00:09, 1677021.33it/s]
16084232it [00:09, 1672316.02it/s]
16252818it [00:09, 1676337.87it/s]
16420462it [00:10, 1671488.54it/s]
16480577it [00:10, 1635853.49it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.depth.gz > aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.depth_hist.tsv
cat aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-2905df-R1_A23WJ53LT4_1.md -output aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md/aih-tih-sc-2905df-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-2905df-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-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-2905df-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-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-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.depth.gz> aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-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-2905df-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-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-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2905df-R1_A23WJ53LT4_1.md.bai
cat aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-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-2905df-R1_A23WJ53LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-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-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md/qc_complete.txt
+ merge_qc -folders aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-R1_A23WJ53LT4_1.md -output aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-R1_A23WJ53LT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-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-2905df-R1_A23WJ53LT4_1/aih-tih-sc-2905df-R1_A23WJ53LT4_1_full_basic_stats.tsv