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/ff/c654162a955df8b697f0c91682e657/.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/dd/c20a4e0b178d56e223a21286783a28/659_bGW-T1-TRNA-1_B23MHV2LT4_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/ff/c654162a955df8b697f0c91682e657/.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/dd/c20a4e0b178d56e223a21286783a28/659_bGW-T1-TRNA-1_B23MHV2LT4_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 659_bGW-T1-TRNA-1_B23MHV2LT4_1
+ all_qc -bam 659_bGW-T1-TRNA-1_B23MHV2LT4_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 659_bGW-T1-TRNA-1_B23MHV2LT4_1 -reference ref_genome.fa -region chr20
mkdir -p 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/
cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/full_bed.bed
seqtool depth -bam 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bam -bed 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.depth.gz
saturation_plot -bams 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bam -region chr20 -output 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bam > 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/saturation_qc.tsv
fragment_size -bams 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bam -region chr20 -output_prefix 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/fragsize -threads 1
samtools mpileup -B --min-MQ 60 --min-BQ 30 -f ref_genome.fa -l dbsnp_hg38_contam_sites.bed 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bam > 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.mpileup && contamination -input 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] [W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_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: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
140413it [00:00, 1404034.26it/s]
291504it [00:00, 1466619.62it/s]
446644it [00:00, 1505303.58it/s]
601118it [00:00, 1520850.46it/s]
753204it [00:00, 1233892.18it/s]
883787it [00:00, 1168012.93it/s]
1034688it [00:00, 1263911.11it/s]
1182280it [00:00, 1324705.48it/s]
1326821it [00:00, 1359776.48it/s]
1472915it [00:01, 1389398.58it/s]
1620537it [00:01, 1415028.09it/s]
1768842it [00:01, 1435197.39it/s]
1914198it [00:01, 1440647.82it/s]
2060821it [00:01, 1448267.98it/s]
2208634it [00:01, 1457103.69it/s]
2356908it [00:01, 1464759.57it/s]
2503683it [00:01, 1458443.18it/s]
2649741it [00:01, 1454712.72it/s]
2795362it [00:01, 1453337.20it/s]
2940800it [00:02, 1451549.20it/s]
3087078it [00:02, 1454892.98it/s]
3233627it [00:02, 1457976.61it/s]
3379610it [00:02, 1458517.27it/s]
3525489it [00:02, 1457606.29it/s]
3671269it [00:02, 1455585.70it/s]
3816841it [00:02, 1418227.26it/s]
3958878it [00:02, 1347355.35it/s]
4094402it [00:02, 1311887.55it/s]
4227325it [00:03, 1316778.50it/s]
4359459it [00:03, 1294595.46it/s]
4490568it [00:03, 1299324.31it/s]
4621265it [00:03, 1301532.06it/s]
4764339it [00:03, 1339508.54it/s]
4906794it [00:03, 1364641.57it/s]
5047262it [00:03, 1376512.56it/s]
5190071it [00:03, 1391858.08it/s]
5333647it [00:03, 1404942.82it/s]
5476490it [00:03, 1411946.09it/s]
5617947it [00:04, 1412647.10it/s]
5762133it [00:04, 1421212.53it/s]
5904285it [00:04, 1417633.19it/s]
6046241it [00:04, 1418090.70it/s]
6188453it [00:04, 1419282.32it/s]
6330393it [00:04, 1408184.57it/s]
6471238it [00:04, 1404749.23it/s]
6611732it [00:04, 1403598.38it/s]
6753326it [00:04, 1407168.57it/s]
6895047it [00:04, 1410142.52it/s]
7043335it [00:05, 1431896.07it/s]
7191489it [00:05, 1446753.03it/s]
7339942it [00:05, 1458059.96it/s]
7485757it [00:05, 1444280.62it/s]
7631103it [00:05, 1447000.47it/s]
7775830it [00:05, 1441023.00it/s]
7920813it [00:05, 1443637.04it/s]
8065194it [00:05, 1398017.33it/s]
8211147it [00:05, 1415990.80it/s]
8358230it [00:05, 1432133.70it/s]
8509923it [00:06, 1457238.17it/s]
8662820it [00:06, 1478475.14it/s]
8815801it [00:06, 1493765.22it/s]
8967861it [00:06, 1501614.73it/s]
9118339it [00:06, 1502543.51it/s]
9268651it [00:06, 1502092.60it/s]
9418901it [00:06, 1501088.70it/s]
9569038it [00:06, 1498190.15it/s]
9718878it [00:06, 1494910.23it/s]
9868470it [00:06, 1495059.09it/s]
10017987it [00:07, 1487344.89it/s]
10166737it [00:07, 1474030.69it/s]
10314171it [00:07, 1463728.74it/s]
10460573it [00:07, 1455298.99it/s]
10610500it [00:07, 1468149.81it/s]
10761513it [00:07, 1480611.83it/s]
10909607it [00:07, 1476239.98it/s]
11057255it [00:07, 1464423.47it/s]
11203728it [00:07, 1462107.18it/s]
11351793it [00:07, 1467611.82it/s]
11498573it [00:08, 1248665.33it/s]
11629048it [00:08, 1255187.35it/s]
11765908it [00:08, 1286217.31it/s]
11902373it [00:08, 1308274.95it/s]
12048698it [00:08, 1352697.82it/s]
12197526it [00:08, 1391940.33it/s]
12347614it [00:08, 1423877.87it/s]
12496321it [00:08, 1442526.67it/s]
12647207it [00:08, 1462197.61it/s]
12798815it [00:09, 1478227.63it/s]
12954188it [00:09, 1500741.24it/s]
13110269it [00:09, 1518681.31it/s][W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
13268475it [00:09, 1537588.23it/s]
13422724it [00:09, 1538991.57it/s]
13576732it [00:09, 1523433.22it/s]
13729186it [00:09, 1519460.02it/s]
13882310it [00:09, 1522955.25it/s]
14037190it [00:09, 1530512.44it/s]
14191418it [00:09, 1534017.44it/s]
14344852it [00:10, 1533147.63it/s]
14502004it [00:10, 1544586.48it/s]
14659639it [00:10, 1554087.91it/s]
14816990it [00:10, 1559897.02it/s]
14974367it [00:10, 1563941.92it/s]
15131680it [00:10, 1566685.86it/s]
15290473it [00:10, 1573040.97it/s]
15447782it [00:10, 1554530.20it/s]
15603287it [00:10, 1551101.42it/s]
15758433it [00:10, 1541962.97it/s]
15912660it [00:11, 1531146.08it/s]
16065804it [00:11, 1504253.96it/s]
16143740it [00:11, 1440280.47it/s]
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
tabix -s 1 -b 2 -e 2 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.depth.gz
seqtool depth_hist -nbins 500 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.depth.gz > 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.depth_hist.tsv
cat 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md -output 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/659_bGW-T1-TRNA-1_B23MHV2LT4_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 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bam > 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_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 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bam > 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv
seqtool depth_stats -bed Twist_rna_exome_AND_fusion_hg38.bed 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.depth.gz> 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_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 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bam > 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_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: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_B23MHV2LT4_1.md.bai
cat 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv | plot -x 0 -header infer -ylim 0 2 -title "659_bGW-T1-TRNA-1_B23MHV2LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md/qc_complete.txt
+ merge_qc -folders 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1.md -output 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1_full_basic_stats.tsv
+ head -n1 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed 659_bGW-T1-TRNA-1_B23MHV2LT4_1/659_bGW-T1-TRNA-1_B23MHV2LT4_1_full_basic_stats.tsv