File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/86/a3f39e679c177c48447326d32f519f/.command.log
Size
13.2 KB
Attempt
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/06/19e6a3935f2cc096c927ea748ed4d3/aih-tih-sc-973c73-R1_B23WHYVLT4_1.md.bai
  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/86/a3f39e679c177c48447326d32f519f/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/06/19e6a3935f2cc096c927ea748ed4d3/aih-tih-sc-973c73-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-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/gatk4/dbsnp_hg38_contam_sites.bed
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/86/a3f39e679c177c48447326d32f519f/.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-973c73-R1_B23WHYVLT4_1
+ all_qc -bam aih-tih-sc-973c73-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-973c73-R1_B23WHYVLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-973c73-R1_B23WHYVLT4_1/aih-tih-sc-973c73-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-973c73-R1_B23WHYVLT4_1/aih-tih-sc-973c73-R1_B23WHYVLT4_1.md/full_bed.bed


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

0it [00:00, ?it/s]
146725it [00:00, 1467128.97it/s]
305518it [00:00, 1538050.96it/s]
466555it [00:00, 1571022.26it/s]
632909it [00:00, 1607518.44it/s]
803087it [00:00, 1641411.40it/s]
971459it [00:00, 1655720.72it/s]
1142361it [00:00, 1673123.81it/s]
1311954it [00:00, 1680365.15it/s]
1484499it [00:00, 1694433.90it/s]
1653943it [00:01, 1684474.51it/s]
1823332it [00:01, 1687326.37it/s]
1992075it [00:01, 1687239.93it/s]
2163382it [00:01, 1694958.77it/s]
2332885it [00:01, 1605736.48it/s]
2494421it [00:01, 1573069.83it/s]
2667535it [00:01, 1618556.23it/s]
2838174it [00:01, 1644155.80it/s]
3008329it [00:01, 1661017.79it/s]
3178269it [00:01, 1672353.57it/s]
3345826it [00:02, 1668967.66it/s]
3513987it [00:02, 1672322.51it/s]
3681379it [00:02, 1563457.34it/s]
3839226it [00:02, 1511531.83it/s]
3991602it [00:02, 1387007.43it/s]
4157610it [00:02, 1460508.88it/s]
4330446it [00:02, 1534770.26it/s]
4498944it [00:02, 1577418.73it/s]
4669797it [00:02, 1615241.17it/s]
4838262it [00:02, 1635485.51it/s]
5004941it [00:03, 1644562.58it/s]
5178692it [00:03, 1672052.43it/s]
5352939it [00:03, 1692960.50it/s]
5522662it [00:03, 1626425.70it/s]
5686136it [00:03, 1487518.49it/s]
5848233it [00:03, 1524138.74it/s]
6014268it [00:03, 1562491.84it/s]
6187644it [00:03, 1611617.74it/s]
6354097it [00:03, 1623452.23it/s]
6517498it [00:04, 1622812.99it/s]
6680517it [00:04, 1620748.50it/s]
6843106it [00:04, 1620923.11it/s]
7005559it [00:04, 1572410.87it/s]
7174564it [00:04, 1606654.19it/s]
7345516it [00:04, 1636841.93it/s]
7517067it [00:04, 1660081.31it/s]
7690479it [00:04, 1682046.93it/s]
7862050it [00:04, 1692039.19it/s]
8035200it [00:04, 1703627.95it/s]
8207882it [00:05, 1710540.22it/s]
8381026it [00:05, 1716716.35it/s]
8555324it [00:05, 1724560.75it/s]
8727828it [00:05, 1723546.27it/s]
8900442it [00:05, 1724299.19it/s]
9075659it [00:05, 1732628.10it/s]
9249613it [00:05, 1734364.80it/s]
9423062it [00:05, 1731187.86it/s]
9596191it [00:05, 1729678.87it/s]
9769166it [00:05, 1720977.01it/s]
9941278it [00:06, 1718601.69it/s]
10116309it [00:06, 1728049.83it/s]
10289125it [00:06, 1722976.01it/s]
10461432it [00:06, 1719311.30it/s]
10633370it [00:06, 1718925.94it/s]
10806978it [00:06, 1724034.84it/s]
10980039it [00:06, 1725984.85it/s]
11156380it [00:06, 1737172.31it/s]
11330102it [00:06, 1731971.53it/s]
11506908it [00:06, 1742744.74it/s]
11682705it [00:07, 1747283.52it/s]
11857440it [00:07, 1744549.02it/s]
12031900it [00:07, 1739366.77it/s]
12205843it [00:07, 1732081.83it/s]
12379060it [00:07, 1725724.99it/s]
12553387it [00:07, 1730933.21it/s]
12726490it [00:07, 1726403.22it/s]
12900824it [00:07, 1731353.44it/s]
13075340it [00:07, 1735356.32it/s]
13248883it [00:07, 1733033.36it/s]
13422192it [00:08, 1732458.86it/s]
13595442it [00:08, 1728106.70it/s]
13768328it [00:08, 1728305.34it/s]
13941162it [00:08, 1710516.75it/s]
14114643it [00:08, 1717720.13it/s]
14289693it [00:08, 1727471.42it/s]
14462471it [00:08, 1723333.76it/s]
14636019it [00:08, 1726937.39it/s]
14811514it [00:08, 1735291.22it/s]
14985058it [00:08, 1730117.77it/s]
15159074it [00:09, 1733057.87it/s]
15194654it [00:09, 1670243.14it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-973c73-R1_B23WHYVLT4_1.md.bai


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




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


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


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


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






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


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