File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/c6/ddbe612f7b0c45d227411080c91d0b/.command.log
Size
12.7 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/c6/ddbe612f7b0c45d227411080c91d0b/.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/e8/78d6ed8c512e1fdc0c41d5d4b36cb8/aih-tih-sc-0fc41c-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/c6/ddbe612f7b0c45d227411080c91d0b/.command.run
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/e8/78d6ed8c512e1fdc0c41d5d4b36cb8/aih-tih-sc-0fc41c-R1_B23WHYVLT4_1.md.bam
  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-0fc41c-R1_B23WHYVLT4_1
+ all_qc -bam aih-tih-sc-0fc41c-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-0fc41c-R1_B23WHYVLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-0fc41c-R1_B23WHYVLT4_1/aih-tih-sc-0fc41c-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-0fc41c-R1_B23WHYVLT4_1/aih-tih-sc-0fc41c-R1_B23WHYVLT4_1.md/full_bed.bed


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

0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0fc41c-R1_B23WHYVLT4_1.md.bai

141937it [00:00, 1419279.99it/s]
290766it [00:00, 1459810.41it/s]
450973it [00:00, 1524720.88it/s]
613526it [00:00, 1564471.03it/s]
773346it [00:00, 1576590.56it/s]
941120it [00:00, 1610943.76it/s]
1106150it [00:00, 1623707.64it/s]
1268521it [00:00, 1615219.67it/s]
1439153it [00:00, 1643547.93it/s]
1605890it [00:01, 1650842.84it/s]
1770988it [00:01, 1574783.52it/s]
1935888it [00:01, 1596564.74it/s]
2096121it [00:01, 1566947.49it/s]
2257674it [00:01, 1581138.26it/s]
2426010it [00:01, 1611261.19it/s]
2594237it [00:01, 1632163.11it/s]
2764663it [00:01, 1653579.25it/s]
2936631it [00:01, 1673147.18it/s]
3104103it [00:01, 1665431.34it/s]
3270761it [00:02, 1643781.79it/s]
3435270it [00:02, 1616956.07it/s]
3601677it [00:02, 1630709.80it/s]
3764887it [00:02, 1610205.10it/s]
3926035it [00:02, 1596121.45it/s]
4087237it [00:02, 1600754.68it/s]
4247386it [00:02, 1556118.52it/s]
4415995it [00:02, 1593895.73it/s]
4575689it [00:02, 1561629.82it/s]
4732153it [00:02, 1521493.17it/s]
4884641it [00:03, 1496207.59it/s]
5034504it [00:03, 1381856.81it/s]
5174288it [00:03, 1283642.64it/s]
5304637it [00:03, 1234666.54it/s]
5429458it [00:03, 1205242.04it/s]
5550799it [00:03, 1178922.22it/s]
5669157it [00:03, 1157969.97it/s]
5785194it [00:03, 1148853.72it/s]
5906009it [00:03, 1165512.38it/s]
6063106it [00:04, 1282028.02it/s]
6220836it [00:04, 1367927.66it/s]
6370011it [00:04, 1404163.75it/s]
6512422it [00:04, 1410024.32it/s]
6662939it [00:04, 1438231.02it/s]
6814837it [00:04, 1462141.65it/s]
6962660it [00:04, 1466902.61it/s]
7126171it [00:04, 1517138.05it/s]
7289032it [00:04, 1550453.19it/s]
7457658it [00:04, 1591078.63it/s]
7624873it [00:05, 1615314.45it/s]
7792212it [00:05, 1632673.38it/s]
7955523it [00:05, 1627741.36it/s]
8118837it [00:05, 1629315.29it/s]
8288003it [00:05, 1647941.81it/s]
8456591it [00:05, 1659264.76it/s]
8627597it [00:05, 1674380.47it/s]
8795766it [00:05, 1676527.92it/s]
8967075it [00:05, 1687449.15it/s]
9135827it [00:05, 1653759.08it/s]
9301357it [00:06, 1615605.02it/s]
9463174it [00:06, 1566280.41it/s]
9620202it [00:06, 1534218.54it/s]
9773935it [00:06, 1502368.38it/s]
9934925it [00:06, 1533127.67it/s]
10092119it [00:06, 1544349.32it/s]
10253520it [00:06, 1564730.76it/s]
10420279it [00:06, 1595052.99it/s]
10584581it [00:06, 1609242.82it/s]
10749388it [00:07, 1620750.18it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0fc41c-R1_B23WHYVLT4_1.md.bai

10918214it [00:07, 1640851.25it/s]
11082397it [00:07, 1637140.13it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-0fc41c-R1_B23WHYVLT4_1.md.bai

11248773it [00:07, 1645047.45it/s]
11413330it [00:07, 1630254.98it/s]
11576418it [00:07, 1609711.03it/s]
11650881it [00:07, 1537777.89it/s]




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


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


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


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


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




cat aih-tih-sc-0fc41c-R1_B23WHYVLT4_1/aih-tih-sc-0fc41c-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-0fc41c-R1_B23WHYVLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-0fc41c-R1_B23WHYVLT4_1/aih-tih-sc-0fc41c-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-0fc41c-R1_B23WHYVLT4_1/aih-tih-sc-0fc41c-R1_B23WHYVLT4_1.md/qc_complete.txt


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