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-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/c4/573497f0156d4e44148156b77c1570/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/3e/284a03656a2b22117d09aa301288a3/aih-tih-sc-7de750-R1_A23WJ53LT4_1.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/c4/573497f0156d4e44148156b77c1570/.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/3e/284a03656a2b22117d09aa301288a3/aih-tih-sc-7de750-R1_A23WJ53LT4_1.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 aih-tih-sc-7de750-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-7de750-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-7de750-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-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-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md/full_bed.bed
seqtool depth -bam aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bam -bed aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.depth.gz
saturation_plot -bams aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bam -region chr20 -output aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md/saturation_qc.tsv
fragment_size -bams aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-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-7de750-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.mpileup && contamination -input aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-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-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-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-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
0it [00:00, ?it/s]
117060it [00:00, 1170458.80it/s]
239820it [00:00, 1204002.74it/s]
366933it [00:00, 1234604.86it/s]
492255it [00:00, 1241771.62it/s]
618198it [00:00, 1248079.95it/s]
743572it [00:00, 1249973.14it/s]
868654it [00:00, 1250220.16it/s]
994748it [00:00, 1253603.45it/s]
1120109it [00:00, 1251308.01it/s]
1247346it [00:01, 1257774.35it/s]
1373129it [00:01, 1257765.14it/s]
1500207it [00:01, 1261697.46it/s]
1626378it [00:01, 1255173.00it/s]
1752601it [00:01, 1257267.64it/s]
1878335it [00:01, 1252656.50it/s]
2004383it [00:01, 1254977.78it/s]
2129887it [00:01, 1252334.24it/s]
2255126it [00:01, 1242967.49it/s]
2379439it [00:01, 1240226.62it/s]
2503473it [00:02, 1234590.32it/s]
2632158it [00:02, 1250056.31it/s]
2758227it [00:02, 1253082.51it/s]
2883621it [00:02, 1253313.23it/s]
3008963it [00:02, 1249728.93it/s]
3133945it [00:02, 1245026.02it/s]
3260938it [00:02, 1252375.28it/s]
3388868it [00:02, 1260396.08it/s]
3514918it [00:02, 1255526.81it/s]
3640481it [00:02, 1255244.30it/s]
3766013it [00:03, 1251584.48it/s]
3891178it [00:03, 1243699.42it/s]
4018727it [00:03, 1253125.07it/s]
4144896it [00:03, 1255549.96it/s]
4270464it [00:03, 1254656.74it/s]
4397547it [00:03, 1259467.62it/s]
4523588it [00:03, 1259720.39it/s]
4650010it [00:03, 1261044.18it/s]
4776119it [00:03, 1260302.81it/s]
4904212it [00:03, 1266454.92it/s]
5030861it [00:04, 1258396.37it/s]
5156714it [00:04, 1258193.07it/s]
5283710it [00:04, 1261690.71it/s]
5409887it [00:04, 1259348.36it/s]
5536335it [00:04, 1260861.82it/s]
5662861it [00:04, 1262154.40it/s]
5789080it [00:04, 1259446.47it/s]
5915028it [00:04, 1258771.68it/s]
6041537it [00:04, 1260629.18it/s]
6167602it [00:04, 1260116.53it/s]
6293615it [00:05, 1253230.12it/s]
6419636it [00:05, 1255289.37it/s]
6545173it [00:05, 1254490.23it/s]
6670627it [00:05, 1245375.21it/s]
6795181it [00:05, 1242348.05it/s]
6920026it [00:05, 1244137.57it/s]
7046159it [00:05, 1249245.57it/s]
7173042it [00:05, 1255076.73it/s]
7299628it [00:05, 1258282.06it/s]
7425668it [00:05, 1258893.38it/s]
7552074it [00:06, 1260424.81it/s]
7680269it [00:06, 1266823.97it/s]
7807119it [00:06, 1267306.91it/s]
7934022it [00:06, 1267798.59it/s]
8060804it [00:06, 1264652.22it/s]
8187272it [00:06, 1262618.50it/s]
8313537it [00:06, 1259804.19it/s]
8440289it [00:06, 1262090.91it/s]
8566895it [00:06, 1263174.65it/s]
8693215it [00:06, 1260701.67it/s]
8819288it [00:07, 1257992.93it/s]
8945090it [00:07, 1256739.03it/s]
9072133it [00:07, 1260811.82it/s]
9198893it [00:07, 1262819.97it/s]
9326220it [00:07, 1265845.76it/s]
9453482it [00:07, 1267848.97it/s]
9580317it [00:07, 1267976.86it/s]
9707116it [00:07, 1258545.41it/s]
9834428it [00:07, 1262841.49it/s]
9960726it [00:07, 1260040.30it/s]
10086741it [00:08, 1257147.69it/s]
10212464it [00:08, 1251195.75it/s]
10337593it [00:08, 1230740.34it/s]
10460737it [00:08, 1205842.65it/s]
10582394it [00:08, 1208849.89it/s]
10707641it [00:08, 1221676.62it/s]
10834815it [00:08, 1236357.42it/s]
10960639it [00:08, 1242835.75it/s]
11086142it [00:08, 1246446.26it/s]
11210834it [00:08, 1244102.37it/s]
11335277it [00:09, 1243172.91it/s]
11462426it [00:09, 1251614.17it/s]
11587607it [00:09, 1247533.10it/s]
11714712it [00:09, 1254536.78it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
11841015it [00:09, 1257055.22it/s]
11966731it [00:09, 1250886.08it/s]
12092985it [00:09, 1254344.93it/s]
12220330it [00:09, 1260033.70it/s]
12347894it [00:09, 1264683.82it/s]
12474371it [00:09, 1260647.65it/s]
12600444it [00:10, 1260183.09it/s]
12727604it [00:10, 1263579.49it/s]
12853967it [00:10, 1261379.74it/s]
12980984it [00:10, 1263878.80it/s]
13016431it [00:10, 1253762.18it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.depth.gz > aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.depth_hist.tsv
cat aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-7de750-R1_A23WJ53LT4_1.md -output aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md/aih-tih-sc-7de750-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-7de750-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-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-7de750-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-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-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.depth.gz> aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-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-7de750-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-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-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7de750-R1_A23WJ53LT4_1.md.bai
cat aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-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-7de750-R1_A23WJ53LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-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-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md/qc_complete.txt
+ merge_qc -folders aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-R1_A23WJ53LT4_1.md -output aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-R1_A23WJ53LT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-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-7de750-R1_A23WJ53LT4_1/aih-tih-sc-7de750-R1_A23WJ53LT4_1_full_basic_stats.tsv