Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz
Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/starfusion/ctat_genome_lib_build_dir/ref_genome.fa
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/a9/7bdb179da6fc139ba378c8b0d0a4b7/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/4b/314564cb774b6bceb71d7966862cb9/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
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/4b/314564cb774b6bceb71d7966862cb9/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bam
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/a9/7bdb179da6fc139ba378c8b0d0a4b7/.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-13d441-R1_A23YTGFLT4_1
+ all_qc -bam aih-tih-sc-13d441-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-13d441-R1_A23YTGFLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-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-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md/full_bed.bed
seqtool depth -bam aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bam -bed aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.depth.gz
saturation_plot -bams aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bam -region chr20 -output aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md/saturation_qc.tsv
fragment_size -bams aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-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-13d441-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.mpileup && contamination -input aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-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-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-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-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
0it [00:00, ?it/s]
126394it [00:00, 1263862.86it/s]
252781it [00:00, 1248918.56it/s]
413856it [00:00, 1413041.63it/s]
582424it [00:00, 1520155.72it/s]
752544it [00:00, 1585244.87it/s]
923308it [00:00, 1626761.21it/s]
1092323it [00:00, 1647434.04it/s]
1263416it [00:00, 1667603.34it/s]
1434764it [00:00, 1681909.94it/s]
1604312it [00:01, 1685991.43it/s]
1773902it [00:01, 1688993.92it/s]
1943341it [00:01, 1690604.92it/s]
2114373it [00:01, 1696495.89it/s]
2285127it [00:01, 1699803.56it/s]
2459410it [00:01, 1712742.46it/s]
2630688it [00:01, 1707447.84it/s]
2801439it [00:01, 1706176.94it/s]
2973600it [00:01, 1710728.15it/s]
3144775it [00:01, 1711010.61it/s]
3315879it [00:02, 1691062.81it/s]
3486641it [00:02, 1695962.39it/s]
3656937it [00:02, 1697880.78it/s]
3827474it [00:02, 1700093.17it/s]
3997506it [00:02, 1696774.59it/s]
4168548it [00:02, 1700830.28it/s]
4338644it [00:02, 1698460.38it/s]
4508500it [00:02, 1692829.72it/s]
4677793it [00:02, 1687207.41it/s]
4848366it [00:02, 1692712.36it/s]
5019914it [00:03, 1699495.92it/s]
5191965it [00:03, 1705765.88it/s]
5363952it [00:03, 1709829.90it/s]
5535656it [00:03, 1711941.58it/s]
5706855it [00:03, 1703875.85it/s]
5878011it [00:03, 1706078.81it/s]
6048628it [00:03, 1696086.62it/s]
6218254it [00:03, 1694530.61it/s]
6387719it [00:03, 1681600.22it/s]
6555904it [00:03, 1671811.51it/s]
6723107it [00:04, 1657061.49it/s]
6888844it [00:04, 1648588.75it/s]
7054983it [00:04, 1652269.90it/s]
7221270it [00:04, 1655397.66it/s]
7386826it [00:04, 1651230.46it/s]
7551961it [00:04, 1651013.10it/s]
7717070it [00:04, 1649078.04it/s]
7883858it [00:04, 1654412.44it/s]
8050841it [00:04, 1658937.08it/s]
8219612it [00:04, 1667459.75it/s]
8388948it [00:05, 1675103.79it/s]
8561153it [00:05, 1689148.51it/s]
8731212it [00:05, 1692553.36it/s]
8900735it [00:05, 1693324.92it/s]
9072613it [00:05, 1700934.54it/s]
9243118it [00:05, 1702144.96it/s]
9413334it [00:05, 1700167.00it/s]
9583353it [00:05, 1697544.58it/s]
9753110it [00:05, 1694722.42it/s]
9922874it [00:05, 1695443.65it/s]
10093015it [00:06, 1697206.68it/s]
10262737it [00:06, 1695523.90it/s]
10432291it [00:06, 1686655.57it/s]
10600967it [00:06, 1634640.64it/s]
10764767it [00:06, 1571692.33it/s]
10934207it [00:06, 1606821.98it/s]
11103202it [00:06, 1630941.13it/s]
11271060it [00:06, 1644864.95it/s]
11404170it [00:06, 1669204.86it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.depth.gz > aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.depth_hist.tsv
cat aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-13d441-R1_A23YTGFLT4_1.md -output aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md/aih-tih-sc-13d441-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-13d441-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-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-13d441-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-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-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.depth.gz> aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-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-13d441-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-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-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-13d441-R1_A23YTGFLT4_1.md.bai
cat aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-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-13d441-R1_A23YTGFLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-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-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md/qc_complete.txt
+ merge_qc -folders aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-R1_A23YTGFLT4_1.md -output aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-R1_A23YTGFLT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-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-13d441-R1_A23YTGFLT4_1/aih-tih-sc-13d441-R1_A23YTGFLT4_1_full_basic_stats.tsv