File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/5e/2d0e1bf86108e26e1f6864dcd4410d/.command.log
Size
13.0 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/5e/2d0e1bf86108e26e1f6864dcd4410d/.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/ba/c7884ae35db5e88f9f606294b8fe92/aih-tih-sc-6fcd81-R1_A23WJ53LT4_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/5e/2d0e1bf86108e26e1f6864dcd4410d/.command.run
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/ba/c7884ae35db5e88f9f606294b8fe92/aih-tih-sc-6fcd81-R1_A23WJ53LT4_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-6fcd81-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-6fcd81-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-6fcd81-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-6fcd81-R1_A23WJ53LT4_1/aih-tih-sc-6fcd81-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-6fcd81-R1_A23WJ53LT4_1/aih-tih-sc-6fcd81-R1_A23WJ53LT4_1.md/full_bed.bed


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

0it [00:00, ?it/s]
157054it [00:00, 1570256.97it/s]
327043it [00:00, 1646356.89it/s]
497278it [00:00, 1671892.02it/s]
669325it [00:00, 1691040.80it/s]
841278it [00:00, 1701185.56it/s]
1011877it [00:00, 1702797.40it/s]
1183477it [00:00, 1707089.94it/s]
1355121it [00:00, 1710047.45it/s]
1529119it [00:00, 1719362.63it/s]
1701159it [00:01, 1719668.19it/s]
1875522it [00:01, 1726825.56it/s]
2048205it [00:01, 1723928.12it/s]
2221673it [00:01, 1727163.02it/s]
2395070it [00:01, 1729201.58it/s]
2567992it [00:01, 1725617.14it/s]
2740556it [00:01, 1723635.52it/s]
2916579it [00:01, 1734599.23it/s]
3090043it [00:01, 1734305.52it/s]
3263476it [00:01, 1733704.52it/s]
3436849it [00:02, 1721601.50it/s]
3611265it [00:02, 1728317.91it/s]
3784115it [00:02, 1489972.03it/s]
3938879it [00:02, 1504012.44it/s]
4112430it [00:02, 1568226.33it/s]
4285231it [00:02, 1613479.48it/s]
4458077it [00:02, 1646635.36it/s]
4630034it [00:02, 1667901.46it/s]
4798872it [00:02, 1673913.67it/s]
4970662it [00:02, 1686915.27it/s]
5144965it [00:03, 1703573.46it/s]
5317663it [00:03, 1710375.29it/s]
5493893it [00:03, 1725865.69it/s]
5666753it [00:03, 1723177.88it/s]
5841795it [00:03, 1731305.50it/s]
6015124it [00:03, 1731810.82it/s]
6190270it [00:03, 1737678.84it/s]
6365566it [00:03, 1742136.90it/s]
6539829it [00:03, 1739510.85it/s]
6714334it [00:03, 1741145.24it/s]
6888474it [00:04, 1735703.29it/s]
7064947it [00:04, 1744364.83it/s]
7239401it [00:04, 1742293.93it/s]
7414761it [00:04, 1745659.49it/s]
7589337it [00:04, 1745121.86it/s]
7763856it [00:04, 1737786.06it/s]
7940128it [00:04, 1745223.63it/s]
8115565it [00:04, 1747948.00it/s]
8291210it [00:04, 1750480.40it/s]
8466434it [00:04, 1750991.80it/s]
8641538it [00:05, 1746607.30it/s]
8816204it [00:05, 1737917.31it/s]
8990008it [00:05, 1730297.73it/s]
9163050it [00:05, 1713161.23it/s]
9335851it [00:05, 1717549.82it/s]
9507637it [00:05, 1713990.06it/s]
9680928it [00:05, 1719609.57it/s]
9854503it [00:05, 1724282.78it/s]
10028354it [00:05, 1728523.66it/s]
10202937it [00:05, 1733690.48it/s]
10377453it [00:06, 1736975.63it/s]
10551490it [00:06, 1737979.44it/s]
10726089it [00:06, 1740368.45it/s]
10900130it [00:06, 1737754.30it/s]
11073909it [00:06, 1732095.01it/s]
11247125it [00:06, 1725394.37it/s]
11419673it [00:06, 1717077.04it/s]
11591392it [00:06, 1716958.73it/s]
11763096it [00:06, 1712887.23it/s]
11935444it [00:06, 1716035.85it/s]
12107473it [00:07, 1717294.54it/s]
12279739it [00:07, 1718885.89it/s]
12452082it [00:07, 1720232.46it/s]
12624108it [00:07, 1716659.13it/s]
12795778it [00:07, 1715754.82it/s]
12967439it [00:07, 1715923.16it/s]
13139033it [00:07, 1711264.67it/s]
13311791it [00:07, 1715998.65it/s]
13483667it [00:07, 1716812.32it/s]
13656996it [00:07, 1721686.11it/s]
13831247it [00:08, 1727914.81it/s]
14004041it [00:08, 1720521.32it/s]
14176102it [00:08, 1719923.14it/s]
14348101it [00:08, 1706191.08it/s]
14445862it [00:08, 1711804.83it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-6fcd81-R1_A23WJ53LT4_1.md.bai




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


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


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


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


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




cat aih-tih-sc-6fcd81-R1_A23WJ53LT4_1/aih-tih-sc-6fcd81-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-6fcd81-R1_A23WJ53LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-6fcd81-R1_A23WJ53LT4_1/aih-tih-sc-6fcd81-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-6fcd81-R1_A23WJ53LT4_1/aih-tih-sc-6fcd81-R1_A23WJ53LT4_1.md/qc_complete.txt


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