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/8e/44d51279336b841943220cd783366c/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/b2/c8b5780e5712b27d62b873b7a9dab9/659_bGW-T1-TRNA-1_A23MVY2LT4_2.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/b2/c8b5780e5712b27d62b873b7a9dab9/659_bGW-T1-TRNA-1_A23MVY2LT4_2.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/8e/44d51279336b841943220cd783366c/.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 659_bGW-T1-TRNA-1_A23MVY2LT4_2
+ all_qc -bam 659_bGW-T1-TRNA-1_A23MVY2LT4_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 659_bGW-T1-TRNA-1_A23MVY2LT4_2 -reference ref_genome.fa -region chr20
mkdir -p 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.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_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md/full_bed.bed
seqtool depth -bam 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bam -bed 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.depth.gz
saturation_plot -bams 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bam -region chr20 -output 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bam > 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md/saturation_qc.tsv
fragment_size -bams 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bam -region chr20 -output_prefix 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.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_A23MVY2LT4_2.md.bam > 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.mpileup && contamination -input 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.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_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_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: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
0it [00:00, ?it/s]
150106it [00:00, 1500950.50it/s]
300202it [00:00, 1456798.56it/s]
448904it [00:00, 1470356.21it/s]
611656it [00:00, 1531769.83it/s]
779743it [00:00, 1585175.11it/s]
950477it [00:00, 1626523.79it/s]
1121782it [00:00, 1654717.20it/s]
1289828it [00:00, 1662884.45it/s]
1459136it [00:00, 1672298.17it/s]
1629966it [00:01, 1683391.64it/s]
1798368it [00:01, 1683466.47it/s]
1966731it [00:01, 1669280.92it/s]
2141929it [00:01, 1694118.70it/s]
2313270it [00:01, 1699803.46it/s]
2483597it [00:01, 1700834.64it/s]
2657053it [00:01, 1710953.20it/s]
2828167it [00:01, 1709957.12it/s]
2999176it [00:01, 1708049.86it/s]
3169990it [00:01, 1702789.23it/s]
3340278it [00:02, 1687123.14it/s]
3512778it [00:02, 1698348.66it/s]
3682647it [00:02, 1682822.27it/s]
3850977it [00:02, 1661302.02it/s]
4017690it [00:02, 1663003.46it/s]
4184045it [00:02, 1650513.35it/s]
4349143it [00:02, 1643850.95it/s]
4514342it [00:02, 1646224.69it/s]
4684514it [00:02, 1662698.83it/s]
4850815it [00:02, 1651526.93it/s]
5016001it [00:03, 1645047.71it/s]
5186783it [00:03, 1663685.94it/s]
5354491it [00:03, 1667659.95it/s]
5525990it [00:03, 1681778.81it/s]
5696007it [00:03, 1687262.37it/s]
5864898it [00:03, 1687739.18it/s]
6033686it [00:03, 1685079.05it/s]
6205330it [00:03, 1694451.26it/s]
6374785it [00:03, 1692637.93it/s]
6544056it [00:03, 1681666.15it/s]
6712242it [00:04, 1676024.19it/s]
6881326it [00:04, 1680426.32it/s]
7051323it [00:04, 1686240.45it/s]
7222403it [00:04, 1693489.88it/s]
7393223it [00:04, 1697801.27it/s]
7563012it [00:04, 1690499.63it/s]
7732416it [00:04, 1691510.81it/s]
7901997it [00:04, 1692783.98it/s]
8072431it [00:04, 1696207.79it/s]
8244760it [00:04, 1704308.89it/s]
8419025it [00:05, 1715755.76it/s]
8591619it [00:05, 1718793.30it/s]
8763502it [00:05, 1715460.53it/s]
8935052it [00:05, 1684785.08it/s]
9105339it [00:05, 1690118.33it/s]
9274872it [00:05, 1691588.06it/s]
9444437it [00:05, 1692779.55it/s]
9613762it [00:05, 1687894.73it/s]
9782586it [00:05, 1685111.70it/s]
9952458it [00:05, 1689157.38it/s]
10121393it [00:06, 1687680.57it/s]
10291893it [00:06, 1692835.42it/s]
10463755it [00:06, 1700527.68it/s]
10633817it [00:06, 1691944.20it/s]
10805988it [00:06, 1700821.00it/s]
10978711it [00:06, 1708705.06it/s]
11149595it [00:06, 1701639.67it/s]
11319774it [00:06, 1691869.46it/s]
11490448it [00:06, 1696285.74it/s]
11662994it [00:06, 1704980.91it/s]
11833508it [00:07, 1701306.43it/s]
12003651it [00:07, 1696945.93it/s][W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
12173355it [00:07, 1672996.65it/s]
12340728it [00:07, 1665055.47it/s]
12507283it [00:07, 1657598.10it/s]
12673076it [00:07, 1656697.19it/s]
12842551it [00:07, 1667998.91it/s]
13010259it [00:07, 1670693.62it/s]
13179851it [00:07, 1678215.65it/s]
13348662it [00:07, 1681162.10it/s]
13518370it [00:08, 1685913.18it/s]
13686972it [00:08, 1675083.34it/s]
13854502it [00:08, 1535509.19it/s]
14010291it [00:08, 1452212.56it/s]
14178115it [00:08, 1514200.36it/s]
14341156it [00:08, 1546897.31it/s]
14511526it [00:08, 1591747.20it/s]
14681468it [00:08, 1623028.36it/s]
14850538it [00:08, 1642865.47it/s]
15020634it [00:09, 1660005.86it/s]
15192633it [00:09, 1677782.19it/s]
15360837it [00:09, 1673595.61it/s]
15528495it [00:09, 1657305.69it/s]
15694461it [00:09, 1654011.90it/s]
15860025it [00:09, 1648946.43it/s]
16025032it [00:09, 1645420.68it/s]
16168274it [00:09, 1665682.04it/s]
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
tabix -s 1 -b 2 -e 2 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.depth.gz
seqtool depth_hist -nbins 500 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.depth.gz > 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.depth_hist.tsv
cat 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md -output 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md/659_bGW-T1-TRNA-1_A23MVY2LT4_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 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bam > 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_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 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bam > 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.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_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.depth.gz> 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_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 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bam > 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_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: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGW-T1-TRNA-1_A23MVY2LT4_2.md.bai
cat 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.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_A23MVY2LT4_2.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.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_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md/qc_complete.txt
+ merge_qc -folders 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2.md -output 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2_full_basic_stats.tsv
+ head -n1 659_bGW-T1-TRNA-1_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2_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_A23MVY2LT4_2/659_bGW-T1-TRNA-1_A23MVY2LT4_2_full_basic_stats.tsv