Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/20/40a52144715325b056f46f6f51da3d/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bam
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/02/6ddd2d8bbde3d83f358899024ba59c/.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/02/6ddd2d8bbde3d83f358899024ba59c/.command.run
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/20/40a52144715325b056f46f6f51da3d/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
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-2e5fe9-R1_A23YTGFLT4_1
+ all_qc -bam aih-tih-sc-2e5fe9-R1_A23YTGFLT4_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-2e5fe9-R1_A23YTGFLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_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-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md/full_bed.bed
seqtool depth -bam aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bam -bed aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.depth.gz
saturation_plot -bams aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bam -region chr20 -output aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md/saturation_qc.tsv
fragment_size -bams aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_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-2e5fe9-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.mpileup && contamination -input aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_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-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_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-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
0it [00:00, ?it/s]
139696it [00:00, 1396878.07it/s]
289600it [00:00, 1456944.08it/s]
452662it [00:00, 1536221.88it/s]
611587it [00:00, 1557137.82it/s]
778760it [00:00, 1598440.96it/s]
946162it [00:00, 1624111.50it/s]
1108574it [00:00, 1623652.87it/s]
1275533it [00:00, 1638257.07it/s]
1443016it [00:00, 1649668.17it/s]
1611628it [00:01, 1660903.69it/s]
1777719it [00:01, 1658757.89it/s]
1944633it [00:01, 1661895.62it/s]
2110824it [00:01, 1642881.82it/s]
2278617it [00:01, 1653362.19it/s]
2451572it [00:01, 1676042.94it/s]
2625122it [00:01, 1693847.41it/s]
2794545it [00:01, 1689685.84it/s]
2963541it [00:01, 1686269.99it/s]
3132854it [00:01, 1688304.24it/s]
3301699it [00:02, 1673691.91it/s]
3469104it [00:02, 1668310.04it/s]
3638415it [00:02, 1675641.64it/s]
3806003it [00:02, 1669927.53it/s]
3973014it [00:02, 1643671.30it/s]
4137471it [00:02, 1632319.65it/s]
4302739it [00:02, 1638277.87it/s]
4466622it [00:02, 1635367.54it/s]
4631096it [00:02, 1638135.58it/s]
4794938it [00:02, 1635444.14it/s]
4958502it [00:03, 1629426.02it/s]
5121460it [00:03, 1603569.84it/s]
5283737it [00:03, 1609069.65it/s]
5452997it [00:03, 1633831.11it/s]
5622684it [00:03, 1652469.42it/s]
5793298it [00:03, 1668462.61it/s]
5964360it [00:03, 1681035.78it/s]
6133690it [00:03, 1684684.99it/s]
6302191it [00:03, 1684396.80it/s]
6471044it [00:03, 1685612.49it/s]
6639622it [00:04, 1683869.34it/s]
6808021it [00:04, 1678247.45it/s]
6975858it [00:04, 1669739.89it/s]
7145105it [00:04, 1676497.40it/s]
7313340it [00:04, 1678227.20it/s]
7484440it [00:04, 1688012.59it/s]
7656318it [00:04, 1697206.07it/s]
7827248it [00:04, 1700808.81it/s]
7998279it [00:04, 1703588.57it/s]
8168644it [00:04, 1701255.87it/s]
8338774it [00:05, 1699385.93it/s]
8508716it [00:05, 1692501.65it/s]
8678125it [00:05, 1692954.97it/s]
8847426it [00:05, 1674232.63it/s]
9014896it [00:05, 1660520.21it/s]
9182931it [00:05, 1666373.14it/s]
9351825it [00:05, 1673058.50it/s]
9523703it [00:05, 1686530.16it/s]
9696856it [00:05, 1699951.09it/s]
9867662it [00:05, 1702358.43it/s]
10039427it [00:06, 1706915.58it/s]
10210134it [00:06, 1701805.63it/s]
10380329it [00:06, 1690773.47it/s]
10549429it [00:06, 1690161.87it/s]
10718461it [00:06, 1684024.48it/s]
10888990it [00:06, 1690326.05it/s]
11058036it [00:06, 1677031.55it/s]
11228467it [00:06, 1685126.60it/s]
11397006it [00:06, 1683777.47it/s]
11565402it [00:06, 1683644.29it/s]
11735506it [00:07, 1688827.47it/s]
11904443it [00:07, 1688830.05it/s]
12073334it [00:07, 1686065.17it/s]
12241947it [00:07, 1681585.46it/s]
12410726it [00:07, 1683326.73it/s]
12579259it [00:07, 1683907.45it/s]
12747654it [00:07, 1678886.15it/s]
12917664it [00:07, 1685211.51it/s]
13086191it [00:07, 1683799.69it/s]
13256311it [00:07, 1688931.45it/s]
13425208it [00:08, 1682274.88it/s]
13498098it [00:08, 1667694.80it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.depth.gz > aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.depth_hist.tsv
cat aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md -output aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_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-2e5fe9-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_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-2e5fe9-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_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-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.depth.gz> aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_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-2e5fe9-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_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-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md.bai
cat aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_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-2e5fe9-R1_A23YTGFLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md/qc_complete.txt
+ merge_qc -folders aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1.md -output aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_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-2e5fe9-R1_A23YTGFLT4_1/aih-tih-sc-2e5fe9-R1_A23YTGFLT4_1_full_basic_stats.tsv