File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/d7/4c075a488720e7f994afb94de9b167/.command.log
Size
13.3 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/d7/4c075a488720e7f994afb94de9b167/.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/34/1551c11dc194076a5aecead03a3a26/aih-tih-sc-2798bb-R1_A23WJ53LT4_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/d7/4c075a488720e7f994afb94de9b167/.command.run
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/34/1551c11dc194076a5aecead03a3a26/aih-tih-sc-2798bb-R1_A23WJ53LT4_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-2798bb-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-2798bb-R1_A23WJ53LT4_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-2798bb-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-2798bb-R1_A23WJ53LT4_1/aih-tih-sc-2798bb-R1_A23WJ53LT4_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-2798bb-R1_A23WJ53LT4_1/aih-tih-sc-2798bb-R1_A23WJ53LT4_1.md/full_bed.bed


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

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

136493it [00:00, 1364846.70it/s]
288985it [00:00, 1458819.74it/s]
451807it [00:00, 1536130.61it/s]
610972it [00:00, 1557955.86it/s]
774725it [00:00, 1586621.89it/s]
939453it [00:00, 1607199.32it/s]
1104235it [00:00, 1620305.86it/s]
1271598it [00:00, 1637260.40it/s]
1436232it [00:00, 1640070.95it/s]
1601965it [00:01, 1645370.22it/s]
1766727it [00:01, 1646014.77it/s]
1931878it [00:01, 1647666.54it/s]
2100094it [00:01, 1658095.40it/s]
2267572it [00:01, 1663110.07it/s]
2434611it [00:01, 1665280.92it/s]
2603512it [00:01, 1672394.78it/s]
2770752it [00:01, 1668996.39it/s]
2937654it [00:01, 1657061.88it/s]
3103380it [00:01, 1656557.90it/s]
3269049it [00:02, 1642379.69it/s]
3435813it [00:02, 1649853.41it/s]
3603410it [00:02, 1657619.13it/s]
3769639it [00:02, 1658992.47it/s]
3936403it [00:02, 1661444.39it/s]
4102900it [00:02, 1662475.36it/s]
4269887it [00:02, 1664665.90it/s]
4436601it [00:02, 1665384.01it/s]
4605378it [00:02, 1672077.26it/s]
4772590it [00:02, 1670378.21it/s]
4939631it [00:03, 1654535.96it/s]
5105351it [00:03, 1655288.58it/s]
5274462it [00:03, 1665944.94it/s]
5444545it [00:03, 1676219.54it/s]
5616346it [00:03, 1688699.95it/s]
5785658it [00:03, 1689996.23it/s]
5956835it [00:03, 1696456.04it/s]
6127383it [00:03, 1698912.28it/s]
6297281it [00:03, 1694925.83it/s]
6466781it [00:03, 1677162.64it/s]
6634541it [00:04, 1628870.91it/s]
6800575it [00:04, 1638043.16it/s]
6969463it [00:04, 1652978.65it/s]
7137852it [00:04, 1661974.03it/s]
7305614it [00:04, 1666546.48it/s]
7473630it [00:04, 1670577.97it/s]
7642684it [00:04, 1676510.65it/s]
7810392it [00:04, 1658825.07it/s]
7976352it [00:04, 1625552.74it/s]
8145808it [00:04, 1645728.18it/s]
8310547it [00:05, 1614038.26it/s]
8472162it [00:05, 1578275.08it/s]
8630239it [00:05, 1559080.12it/s]
8786316it [00:05, 1532406.65it/s]
8951924it [00:05, 1568207.09it/s]
9117310it [00:05, 1593256.07it/s]
9283203it [00:05, 1612598.90it/s]
9451086it [00:05, 1632207.27it/s]
9619074it [00:05, 1646367.30it/s]
9786269it [00:05, 1653978.78it/s]
9951757it [00:06, 1651754.43it/s]
10118883it [00:06, 1657565.37it/s]
10284686it [00:06, 1644137.15it/s]
10453338it [00:06, 1656690.91it/s]
10624953it [00:06, 1674354.69it/s]
10792432it [00:06, 1672449.95it/s]
10959707it [00:06, 1662188.42it/s]
11127132it [00:06, 1665763.77it/s]
11294536it [00:06, 1668212.66it/s]
11463143it [00:06, 1673534.40it/s]
11630512it [00:07, 1654978.23it/s]
11796305it [00:07, 1655835.92it/s]
11961927it [00:07, 1650349.45it/s]
12130468it [00:07, 1660777.67it/s]
12297487it [00:07, 1663568.97it/s]
12463964it [00:07, 1663909.52it/s]
12630711it [00:07, 1664958.91it/s]
12797217it [00:07, 1659890.88it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-2798bb-R1_A23WJ53LT4_1.md.bai

12963216it [00:07, 1657792.60it/s]
13129003it [00:07, 1619472.48it/s]
13291141it [00:08, 1545009.07it/s]
13446393it [00:08, 1521466.67it/s]
13599051it [00:08, 1509271.24it/s]
13764135it [00:08, 1550133.31it/s]
13926626it [00:08, 1571956.54it/s]
14084153it [00:08, 1506403.84it/s]
14237023it [00:08, 1512791.76it/s]
14402932it [00:08, 1555330.53it/s]
14566702it [00:08, 1579467.56it/s]
14730284it [00:09, 1596099.42it/s]
14892712it [00:09, 1604445.68it/s]
15053787it [00:09, 1606190.98it/s]
15135055it [00:09, 1632687.86it/s]




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


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


tabix -s 1 -b 2 -e 2 aih-tih-sc-2798bb-R1_A23WJ53LT4_1/aih-tih-sc-2798bb-R1_A23WJ53LT4_1.md/aih-tih-sc-2798bb-R1_A23WJ53LT4_1.md.depth.gz


seqtool depth_hist     -nbins 500     aih-tih-sc-2798bb-R1_A23WJ53LT4_1/aih-tih-sc-2798bb-R1_A23WJ53LT4_1.md/aih-tih-sc-2798bb-R1_A23WJ53LT4_1.md.depth.gz     > aih-tih-sc-2798bb-R1_A23WJ53LT4_1/aih-tih-sc-2798bb-R1_A23WJ53LT4_1.md/aih-tih-sc-2798bb-R1_A23WJ53LT4_1.md.depth_hist.tsv


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






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




echo `date` > aih-tih-sc-2798bb-R1_A23WJ53LT4_1/aih-tih-sc-2798bb-R1_A23WJ53LT4_1.md/qc_complete.txt


+ merge_qc -folders aih-tih-sc-2798bb-R1_A23WJ53LT4_1/aih-tih-sc-2798bb-R1_A23WJ53LT4_1.md -output aih-tih-sc-2798bb-R1_A23WJ53LT4_1/aih-tih-sc-2798bb-R1_A23WJ53LT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-2798bb-R1_A23WJ53LT4_1/aih-tih-sc-2798bb-R1_A23WJ53LT4_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-2798bb-R1_A23WJ53LT4_1/aih-tih-sc-2798bb-R1_A23WJ53LT4_1_full_basic_stats.tsv