File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/d7/b83c1028c2f631d56bb357ddd98928/.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/d7/b83c1028c2f631d56bb357ddd98928/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/09/1402e3b0932c42a644dd88c0235e55/aih-tih-sc-01c779-R1_A23YTGFLT4_1.md.bai
  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/09/1402e3b0932c42a644dd88c0235e55/aih-tih-sc-01c779-R1_A23YTGFLT4_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/d7/b83c1028c2f631d56bb357ddd98928/.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-01c779-R1_A23YTGFLT4_1
+ all_qc -bam aih-tih-sc-01c779-R1_A23YTGFLT4_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-01c779-R1_A23YTGFLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-01c779-R1_A23YTGFLT4_1/aih-tih-sc-01c779-R1_A23YTGFLT4_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-01c779-R1_A23YTGFLT4_1/aih-tih-sc-01c779-R1_A23YTGFLT4_1.md/full_bed.bed


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

0it [00:00, ?it/s]
155478it [00:00, 1554570.22it/s]
317412it [00:00, 1592644.30it/s]
484447it [00:00, 1628051.27it/s]
647253it [00:00, 1616286.91it/s]
815284it [00:00, 1639240.29it/s]
987189it [00:00, 1666280.09it/s]
1157525it [00:00, 1678337.10it/s]
1329391it [00:00, 1691143.18it/s]
1500174it [00:00, 1696344.94it/s]
1672314it [00:01, 1704062.56it/s]
1846007it [00:01, 1713981.05it/s]
2017411it [00:01, 1707717.29it/s]
2190438it [00:01, 1714516.87it/s]
2361898it [00:01, 1703309.26it/s]
2533662it [00:01, 1707591.50it/s]
2705110it [00:01, 1709545.58it/s]
2876812it [00:01, 1711600.98it/s]
3047982it [00:01, 1702470.38it/s]
3218245it [00:01, 1695552.23it/s]
3391414it [00:02, 1706218.84it/s]
3570954it [00:02, 1732846.01it/s]
3744263it [00:02, 1731746.16it/s]
3918240it [00:02, 1734135.46it/s]
4091666it [00:02, 1733253.75it/s]
4265000it [00:02, 1724620.82it/s]
4438448it [00:02, 1727550.66it/s]
4614719it [00:02, 1738048.67it/s]
4788536it [00:02, 1728234.99it/s]
4961379it [00:02, 1678262.99it/s]
5132802it [00:03, 1688757.23it/s]
5305950it [00:03, 1701318.90it/s]
5479848it [00:03, 1712319.11it/s]
5651226it [00:03, 1707747.71it/s]
5822103it [00:03, 1704856.65it/s]
5992659it [00:03, 1702988.56it/s]
6165426it [00:03, 1710213.65it/s]
6336486it [00:03, 1706404.57it/s]
6507260it [00:03, 1706769.87it/s]
6677956it [00:03, 1702888.42it/s]
6848642it [00:04, 1703416.78it/s]
7018994it [00:04, 1703114.13it/s]
7194945it [00:04, 1719977.78it/s]
7366952it [00:04, 1719194.34it/s]
7540031it [00:04, 1722566.50it/s]
7714520it [00:04, 1729242.31it/s]
7887449it [00:04, 1728909.87it/s]
8061968it [00:04, 1733773.88it/s]
8235348it [00:04, 1732266.35it/s]
8410137it [00:04, 1736923.50it/s]
8584033it [00:05, 1737385.52it/s]
8757887it [00:05, 1737712.30it/s]
8932594it [00:05, 1740505.36it/s]
9106646it [00:05, 1725933.67it/s]
9280987it [00:05, 1731132.96it/s]
9454514it [00:05, 1732354.48it/s]
9627766it [00:05, 1728280.64it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01c779-R1_A23YTGFLT4_1.md.bai

9800607it [00:05, 1724533.73it/s]
9973070it [00:05, 1724441.38it/s]
10145521it [00:05, 1709395.26it/s]
10317860it [00:06, 1713475.85it/s]
10490729it [00:06, 1717999.49it/s]
10665666it [00:06, 1727195.68it/s]
10843035it [00:06, 1741087.58it/s]
11017500it [00:06, 1742052.64it/s]
11191717it [00:06, 1740887.23it/s]
11365814it [00:06, 1734602.07it/s]
11539875it [00:06, 1736279.66it/s]
11713511it [00:06, 1733041.39it/s]
11886822it [00:06, 1732397.84it/s]
12060066it [00:07, 1730896.84it/s]
12236055it [00:07, 1739449.67it/s]
12410004it [00:07, 1736987.84it/s]
12583706it [00:07, 1731748.87it/s]
12756886it [00:07, 1730743.38it/s]
12933245it [00:07, 1740507.86it/s]
13107301it [00:07, 1727172.98it/s]
13280043it [00:07, 1694330.31it/s]
13379510it [00:07, 1713871.10it/s]




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


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


tabix -s 1 -b 2 -e 2 aih-tih-sc-01c779-R1_A23YTGFLT4_1/aih-tih-sc-01c779-R1_A23YTGFLT4_1.md/aih-tih-sc-01c779-R1_A23YTGFLT4_1.md.depth.gz


seqtool depth_hist     -nbins 500     aih-tih-sc-01c779-R1_A23YTGFLT4_1/aih-tih-sc-01c779-R1_A23YTGFLT4_1.md/aih-tih-sc-01c779-R1_A23YTGFLT4_1.md.depth.gz     > aih-tih-sc-01c779-R1_A23YTGFLT4_1/aih-tih-sc-01c779-R1_A23YTGFLT4_1.md/aih-tih-sc-01c779-R1_A23YTGFLT4_1.md.depth_hist.tsv


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




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






echo `date` > aih-tih-sc-01c779-R1_A23YTGFLT4_1/aih-tih-sc-01c779-R1_A23YTGFLT4_1.md/qc_complete.txt


+ merge_qc -folders aih-tih-sc-01c779-R1_A23YTGFLT4_1/aih-tih-sc-01c779-R1_A23YTGFLT4_1.md -output aih-tih-sc-01c779-R1_A23YTGFLT4_1/aih-tih-sc-01c779-R1_A23YTGFLT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-01c779-R1_A23YTGFLT4_1/aih-tih-sc-01c779-R1_A23YTGFLT4_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-01c779-R1_A23YTGFLT4_1/aih-tih-sc-01c779-R1_A23YTGFLT4_1_full_basic_stats.tsv