Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/17/29ce5f19a2e2eefcfc0247a31e14dc/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bam
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/46/b5a69332eab5fc9cb1cc6afcfc9126/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/17/29ce5f19a2e2eefcfc0247a31e14dc/aih-tih-sc-6f889c-R1_A23WJ53LT4_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-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/gatk4/dbsnp_hg38_contam_sites.bed
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/46/b5a69332eab5fc9cb1cc6afcfc9126/.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-6f889c-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-6f889c-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-6f889c-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-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-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md/full_bed.bed
seqtool depth -bam aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bam -bed aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.depth.gz
saturation_plot -bams aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bam -region chr20 -output aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md/saturation_qc.tsv
fragment_size -bams aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-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-6f889c-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.mpileup && contamination -input aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-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-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-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-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
0it [00:00, ?it/s]
131166it [00:00, 1311579.95it/s]
268710it [00:00, 1349106.66it/s]
408472it [00:00, 1371224.50it/s]
547784it [00:00, 1379837.67it/s]
686483it [00:00, 1382236.61it/s]
828500it [00:00, 1394999.61it/s]
971683it [00:00, 1407011.70it/s]
1115746it [00:00, 1417683.33it/s]
1260877it [00:00, 1428165.24it/s]
1404420it [00:01, 1430380.90it/s]
1547459it [00:01, 1429298.48it/s]
1690390it [00:01, 1417807.14it/s]
1834379it [00:01, 1424434.46it/s]
1979119it [00:01, 1431315.63it/s]
2125395it [00:01, 1440742.52it/s]
2269483it [00:01, 1438575.42it/s]
2413421it [00:01, 1438785.26it/s]
2557307it [00:01, 1436092.67it/s]
2702776it [00:01, 1441639.58it/s]
2846946it [00:02, 1428052.27it/s]
2989782it [00:02, 1423380.27it/s]
3133454it [00:02, 1427331.41it/s]
3276807it [00:02, 1429039.27it/s]
3421924it [00:02, 1435599.77it/s]
3565497it [00:02, 1402421.02it/s]
3705910it [00:02, 1388882.35it/s]
3844925it [00:02, 1384376.19it/s]
3983446it [00:02, 1371524.38it/s]
4122540it [00:02, 1377153.12it/s]
4265985it [00:03, 1394097.25it/s]
4408328it [00:03, 1402648.31it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
4553235it [00:03, 1416465.98it/s]
4694926it [00:03, 1368270.69it/s]
4832122it [00:03, 1349959.34it/s]
4969317it [00:03, 1356306.78it/s]
5110477it [00:03, 1372526.31it/s]
5253249it [00:03, 1388745.03it/s]
5402831it [00:03, 1420496.84it/s]
5558856it [00:03, 1462085.67it/s]
5705191it [00:04, 1400469.23it/s]
5845856it [00:04, 1352519.02it/s]
5981771it [00:04, 1352688.85it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
6121395it [00:04, 1365264.14it/s]
6256640it [00:04, 1398788.21it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.depth.gz > aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.depth_hist.tsv
cat aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md -output aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md/aih-tih-sc-6f889c-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-6f889c-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-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-6f889c-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-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-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.depth.gz> aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-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-6f889c-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-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-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md.bai
cat aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-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-6f889c-R1_A23WJ53LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-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-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md/qc_complete.txt
+ merge_qc -folders aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-R1_A23WJ53LT4_1.md -output aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-R1_A23WJ53LT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-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-6f889c-R1_A23WJ53LT4_1/aih-tih-sc-6f889c-R1_A23WJ53LT4_1_full_basic_stats.tsv