File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/a3/8fc3fc626725ba203f9a0b7ef38667/.command.log
Size
12.1 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/a3/8fc3fc626725ba203f9a0b7ef38667/.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/6a/b32b913c361db2aaacc6a72613def3/aih-tih-sc-82e8c1-R1_B23WHYVLT4_1.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/a3/8fc3fc626725ba203f9a0b7ef38667/.command.run
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/6a/b32b913c361db2aaacc6a72613def3/aih-tih-sc-82e8c1-R1_B23WHYVLT4_1.md.bai
  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-82e8c1-R1_B23WHYVLT4_1
+ all_qc -bam aih-tih-sc-82e8c1-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-82e8c1-R1_B23WHYVLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-82e8c1-R1_B23WHYVLT4_1/aih-tih-sc-82e8c1-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-82e8c1-R1_B23WHYVLT4_1/aih-tih-sc-82e8c1-R1_B23WHYVLT4_1.md/full_bed.bed


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

0it [00:00, ?it/s]
145890it [00:00, 1458817.92it/s]
307711it [00:00, 1552520.05it/s]
470172it [00:00, 1585404.68it/s]
638947it [00:00, 1625775.13it/s]
807946it [00:00, 1648782.44it/s]
976109it [00:00, 1659786.13it/s]
1145442it [00:00, 1670726.87it/s]
1314421it [00:00, 1676773.97it/s]
1482885it [00:00, 1679210.81it/s]
1650807it [00:01, 1658172.85it/s]
1816950it [00:01, 1659138.64it/s]
1985107it [00:01, 1665898.35it/s]
2151730it [00:01, 1635004.15it/s]
2321903it [00:01, 1654813.66it/s]
2491879it [00:01, 1668187.24it/s]
2663147it [00:01, 1681450.19it/s]
2831376it [00:01, 1679808.38it/s]
3001005it [00:01, 1684716.62it/s]
3169520it [00:01, 1681831.54it/s]
3337734it [00:02, 1665837.06it/s]
3506970it [00:02, 1673703.14it/s]
3678309it [00:02, 1685515.81it/s]
3846899it [00:02, 1685563.83it/s]
4015482it [00:02, 1674945.69it/s]
4183008it [00:02, 1667814.36it/s]
4355692it [00:02, 1685366.13it/s]
4524495it [00:02, 1686125.50it/s]
4693130it [00:02, 1665281.36it/s]
4861164it [00:02, 1669730.48it/s]
5030129it [00:03, 1675634.20it/s]
5197734it [00:03, 1591672.86it/s]
5357774it [00:03, 1526537.74it/s]
5525301it [00:03, 1568572.02it/s]
5694532it [00:03, 1604053.53it/s]
5861953it [00:03, 1624468.86it/s]
6031371it [00:03, 1644931.70it/s]
6202364it [00:03, 1664129.02it/s]
6370298it [00:03, 1668542.28it/s]
6540186it [00:03, 1677508.21it/s]
6709328it [00:04, 1681639.47it/s]
6877627it [00:04, 1680378.99it/s]
7047268it [00:04, 1685152.98it/s]
7215851it [00:04, 1675716.18it/s]
7383481it [00:04, 1674074.99it/s]
7550929it [00:04, 1673287.49it/s]
7719163it [00:04, 1675833.77it/s]
7886767it [00:04, 1664726.78it/s]
8053269it [00:04, 1663644.28it/s]
8221464it [00:04, 1669084.95it/s]
8390332it [00:05, 1674919.17it/s]
8557838it [00:05, 1672422.62it/s]
8731223it [00:05, 1690771.76it/s]
8900313it [00:05, 1684249.78it/s]
9068751it [00:05, 1681552.19it/s]
9239776it [00:05, 1690105.79it/s]
9408797it [00:05, 1689840.95it/s]
9577788it [00:05, 1681147.04it/s]
9745916it [00:05, 1664497.73it/s]
9912405it [00:05, 1663333.86it/s]
10079644it [00:06, 1666010.73it/s]
10248804it [00:06, 1673623.83it/s]
10421180it [00:06, 1688587.07it/s]
10590058it [00:06, 1687456.07it/s]
10759004it [00:06, 1688035.80it/s]
10927817it [00:06, 1675904.04it/s]
11095432it [00:06, 1673479.91it/s]
11263165it [00:06, 1674438.57it/s]
11430621it [00:06, 1482599.20it/s]
11582896it [00:07, 1489080.86it/s]
11748368it [00:07, 1535586.75it/s]
11914061it [00:07, 1570314.42it/s]
12080434it [00:07, 1597415.62it/s]
12124350it [00:07, 1651025.38it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-82e8c1-R1_B23WHYVLT4_1.md.bai




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


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


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


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


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




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