File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/3c/69abbb6b9bf430c67ed76d4b5613b2/.command.log
Size
12.8 KB
Attempt
  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/3c/69abbb6b9bf430c67ed76d4b5613b2/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/90/d2094618ff74f31543019604b2c2f5/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bam
  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/90/d2094618ff74f31543019604b2c2f5/aih-tih-sc-c7b68f-R1_B23WHYVLT4_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/3c/69abbb6b9bf430c67ed76d4b5613b2/.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-c7b68f-R1_B23WHYVLT4_1
+ all_qc -bam aih-tih-sc-c7b68f-R1_B23WHYVLT4_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-c7b68f-R1_B23WHYVLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_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-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md/full_bed.bed


seqtool depth -bam aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bam -bed aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.depth.gz
saturation_plot       -bams aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bam       -region chr20       -output aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md/saturation_plot.png       -threads 1 
fragment_size       -bams aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bam       -region chr20       -output_prefix aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md/fragsize       -threads 1 
seqtool saturation_metric       -at 1000000       -region chr20       -bam_threads 1       aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md/saturation_qc.tsv 
samtools mpileup   -B --min-MQ 60 --min-BQ 30    -f ref_genome.fa   -l dbsnp_hg38_contam_sites.bed   aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.mpileup && contamination -input aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md/contamination.tsv 
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_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-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_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-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai

0it [00:00, ?it/s]
105489it [00:00, 1054810.53it/s]
246516it [00:00, 1263854.25it/s]
398643it [00:00, 1381333.46it/s]
560067it [00:00, 1473241.14it/s]
707392it [00:00, 1452271.86it/s]
856540it [00:00, 1465438.04it/s]
1003131it [00:00, 1452275.20it/s]
1164139it [00:00, 1501952.52it/s]
1317993it [00:00, 1513166.12it/s]
1477486it [00:01, 1538233.16it/s]
1631369it [00:01, 1381503.69it/s]
1772471it [00:01, 1372925.55it/s]
1911775it [00:01, 1331798.63it/s]
2072379it [00:01, 1409002.27it/s]
2214868it [00:01, 1354417.01it/s]
2352060it [00:01, 1359225.82it/s]
2515214it [00:01, 1437391.35it/s]
2673924it [00:01, 1480877.37it/s]
2823171it [00:01, 1484078.19it/s]
2979603it [00:02, 1507758.40it/s]
3149655it [00:02, 1564941.86it/s]
3321664it [00:02, 1611111.18it/s]
3489681it [00:02, 1631696.07it/s]
3654529it [00:02, 1633341.11it/s]
3822148it [00:02, 1646121.83it/s]
3990859it [00:02, 1658356.48it/s]
4157612it [00:02, 1661076.21it/s]
4323782it [00:02, 1581331.12it/s]
4482755it [00:02, 1572732.06it/s]
4640600it [00:03, 1555379.84it/s]
4803290it [00:03, 1576183.73it/s]
4961756it [00:03, 1578502.96it/s]
5119850it [00:03, 1551620.20it/s]
5288098it [00:03, 1589966.76it/s]
5457480it [00:03, 1620531.93it/s]
5619762it [00:03, 1486284.64it/s]
5783942it [00:03, 1529770.87it/s]
5941492it [00:03, 1542805.59it/s]
6097159it [00:04, 1543683.71it/s]
6256186it [00:04, 1557281.82it/s]
6412631it [00:04, 1529383.28it/s]
6566145it [00:04, 1478482.38it/s]
6728921it [00:04, 1521339.62it/s]
6899854it [00:04, 1576015.93it/s]
7067700it [00:04, 1606042.32it/s]
7234774it [00:04, 1625023.08it/s]
7404277it [00:04, 1645776.89it/s]
7569145it [00:04, 1642315.13it/s]
7733580it [00:05, 1634502.35it/s]
7897176it [00:05, 1632104.22it/s]
8060488it [00:05, 1601822.17it/s]
8220848it [00:05, 1418629.28it/s]
8373411it [00:05, 1447564.60it/s]
8542024it [00:05, 1514194.06it/s]
8709328it [00:05, 1559482.16it/s]
8879834it [00:05, 1601608.21it/s]
9050786it [00:05, 1633159.67it/s]
9220053it [00:06, 1650674.19it/s]
9389966it [00:06, 1664928.24it/s]
9559388it [00:06, 1673615.14it/s]
9729212it [00:06, 1680934.15it/s]
9900911it [00:06, 1691653.25it/s]
10070300it [00:06, 1678785.57it/s]
10238355it [00:06, 1666358.73it/s]
10405127it [00:06, 1665952.22it/s]
10573604it [00:06, 1671529.52it/s]
10740828it [00:06, 1525202.47it/s]
10895831it [00:07, 1531198.12it/s]
11050731it [00:07, 1500644.51it/s]
11216737it [00:07, 1546049.82it/s]
11375455it [00:07, 1557926.40it/s]
11532081it [00:07, 1467554.80it/s]
11680352it [00:07, 1392474.60it/s]
11845154it [00:07, 1462986.93it/s]
12006383it [00:07, 1505186.64it/s]
12158797it [00:07, 1509595.75it/s]
12322855it [00:07, 1547713.22it/s]
12325406it [00:08, 1540557.25it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai




[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai


[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai


tabix -s 1 -b 2 -e 2 aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.depth.gz


seqtool depth_hist     -nbins 500     aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.depth.gz     > aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.depth_hist.tsv


cat aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.depth_hist.tsv | plot         -x 0         -xlabel Depth -ylabel "Number of Sites"         -xlim 0 2000         -title aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md         -output aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md/aih-tih-sc-c7b68f-R1_B23WHYVLT4_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-c7b68f-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_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-c7b68f-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_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-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.depth.gz> aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_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-c7b68f-R1_B23WHYVLT4_1.md.bam  > aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_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-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md.bai




cat aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_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-c7b68f-R1_B23WHYVLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png"  -ylabel "Fold enrichment / depletion"  -xlabel "GC Quantile" 






echo `date` > aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md/qc_complete.txt


+ merge_qc -folders aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1.md -output aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_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-c7b68f-R1_B23WHYVLT4_1/aih-tih-sc-c7b68f-R1_B23WHYVLT4_1_full_basic_stats.tsv