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/ae/c05058bff064b6494991304d72a286/.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/41/f9af92b93a39564b40a97c9164b952/tih_rna_sample_00464_B23WHTKLT4_2.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/ae/c05058bff064b6494991304d72a286/.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/41/f9af92b93a39564b40a97c9164b952/tih_rna_sample_00464_B23WHTKLT4_2.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 tih_rna_sample_00464_B23WHTKLT4_2
+ all_qc -bam tih_rna_sample_00464_B23WHTKLT4_2.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 tih_rna_sample_00464_B23WHTKLT4_2 -reference ref_genome.fa -region chr20
mkdir -p tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/
cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/full_bed.bed
saturation_plot -bams tih_rna_sample_00464_B23WHTKLT4_2.md.bam -region chr20 -output tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 tih_rna_sample_00464_B23WHTKLT4_2.md.bam > tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/saturation_qc.tsv
fragment_size -bams tih_rna_sample_00464_B23WHTKLT4_2.md.bam -region chr20 -output_prefix tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/fragsize -threads 1
seqtool depth -bam tih_rna_sample_00464_B23WHTKLT4_2.md.bam -bed tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/tih_rna_sample_00464_B23WHTKLT4_2.md.depth.gz
samtools mpileup -B --min-MQ 60 --min-BQ 30 -f ref_genome.fa -l dbsnp_hg38_contam_sites.bed tih_rna_sample_00464_B23WHTKLT4_2.md.bam > tih_rna_sample_00464_B23WHTKLT4_2.md.mpileup && contamination -input tih_rna_sample_00464_B23WHTKLT4_2.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.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: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
122011it [00:00, 1214594.62it/s]
248676it [00:00, 1245120.64it/s]
374802it [00:00, 1252454.55it/s]
503905it [00:00, 1267653.00it/s]
632381it [00:00, 1273793.49it/s]
765863it [00:00, 1294510.73it/s]
908293it [00:00, 1336884.51it/s]
1064232it [00:00, 1407660.20it/s]
1220295it [00:00, 1455434.58it/s]
1365841it [00:01, 1446688.81it/s]
1510523it [00:01, 1351271.67it/s]
1654182it [00:01, 1375897.97it/s]
1793299it [00:01, 1380324.34it/s]
1938203it [00:01, 1400531.69it/s]
2099422it [00:01, 1463178.81it/s]
2264595it [00:01, 1519193.84it/s]
2431333it [00:01, 1563323.05it/s]
2598652it [00:01, 1596092.79it/s]
2763152it [00:01, 1610619.17it/s]
2924394it [00:02, 1604291.61it/s]
3084953it [00:02, 1601496.22it/s]
3245194it [00:02, 1580277.53it/s]
3406910it [00:02, 1591078.28it/s]
3572834it [00:02, 1611313.86it/s]
3738700it [00:02, 1625342.34it/s]
3901304it [00:02, 1610104.07it/s]
4062390it [00:02, 1583243.78it/s]
4230229it [00:02, 1611217.41it/s]
4391495it [00:02, 1597539.40it/s]
4551360it [00:03, 1568638.17it/s]
4708379it [00:03, 1563912.80it/s]
4864872it [00:03, 1454484.91it/s]
5028861it [00:03, 1506544.80it/s]
5195041it [00:03, 1550893.05it/s]
5363738it [00:03, 1590382.25it/s]
5532488it [00:03, 1618832.47it/s]
5695103it [00:03, 1599048.73it/s]
5855551it [00:03, 1507361.50it/s]
6007624it [00:04, 1454385.60it/s]
6165393it [00:04, 1488920.56it/s]
6315305it [00:04, 1407937.08it/s]
6483439it [00:04, 1483964.57it/s]
6640975it [00:04, 1509933.51it/s]
6805400it [00:04, 1548714.18it/s]
6972518it [00:04, 1584440.61it/s]
7131762it [00:04, 1564687.48it/s]
7291156it [00:04, 1573233.47it/s]
7452076it [00:04, 1583791.85it/s]
7619132it [00:05, 1609495.59it/s]
7786856it [00:05, 1629613.84it/s]
7951294it [00:05, 1633948.47it/s]
8114827it [00:05, 1630653.54it/s]
8277989it [00:05, 1623004.61it/s]
8443140it [00:05, 1631470.14it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
8610615it [00:05, 1644363.95it/s]
8617520it [00:05, 1525301.22it/s]
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
tabix -s 1 -b 2 -e 2 tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/tih_rna_sample_00464_B23WHTKLT4_2.md.depth.gz
seqtool depth_hist -nbins 500 tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/tih_rna_sample_00464_B23WHTKLT4_2.md.depth.gz > tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/tih_rna_sample_00464_B23WHTKLT4_2.md.depth_hist.tsv
cat tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/tih_rna_sample_00464_B23WHTKLT4_2.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title tih_rna_sample_00464_B23WHTKLT4_2.md -output tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/tih_rna_sample_00464_B23WHTKLT4_2.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 tih_rna_sample_00464_B23WHTKLT4_2.md.bam > tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.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 tih_rna_sample_00464_B23WHTKLT4_2.md.bam > tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv
seqtool depth_stats -bed Twist_rna_exome_AND_fusion_hg38.bed tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/tih_rna_sample_00464_B23WHTKLT4_2.md.depth.gz> tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.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 tih_rna_sample_00464_B23WHTKLT4_2.md.bam > tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.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: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00464_B23WHTKLT4_2.md.bai
cat tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv | plot -x 0 -header infer -ylim 0 2 -title "tih_rna_sample_00464_B23WHTKLT4_2.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md/qc_complete.txt
+ merge_qc -folders tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2.md -output tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2_full_basic_stats.tsv
+ head -n1 tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed tih_rna_sample_00464_B23WHTKLT4_2/tih_rna_sample_00464_B23WHTKLT4_2_full_basic_stats.tsv