File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/3a/7bbe79241f8845b550751d5cf407cd/.command.log
Size
11.5 KB
Attempt
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/e7/840b5b26a9e3c23007a4e37ae4146c/659_6i-T1-TRNA-1_A23MVY2LT4_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/3a/7bbe79241f8845b550751d5cf407cd/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/e7/840b5b26a9e3c23007a4e37ae4146c/659_6i-T1-TRNA-1_A23MVY2LT4_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/3a/7bbe79241f8845b550751d5cf407cd/.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 659_6i-T1-TRNA-1_A23MVY2LT4_1
+ all_qc -bam 659_6i-T1-TRNA-1_A23MVY2LT4_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 659_6i-T1-TRNA-1_A23MVY2LT4_1 -reference ref_genome.fa -region chr20
mkdir -p 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/


cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/full_bed.bed


seqtool depth -bam 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bam -bed 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/659_6i-T1-TRNA-1_A23MVY2LT4_1.md.depth.gz
saturation_plot       -bams 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bam       -region chr20       -output 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/saturation_plot.png       -threads 1 
seqtool saturation_metric       -at 1000000       -region chr20       -bam_threads 1       659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bam > 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/saturation_qc.tsv 
fragment_size       -bams 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bam       -region chr20       -output_prefix 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/fragsize       -threads 1 
samtools mpileup   -B --min-MQ 60 --min-BQ 30    -f ref_genome.fa   -l dbsnp_hg38_contam_sites.bed   659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bam > 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.mpileup && contamination -input 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/contamination.tsv 
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_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: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai

0it [00:00, ?it/s]
148155it [00:00, 1481480.77it/s]
312298it [00:00, 1575534.48it/s]
476485it [00:00, 1605803.74it/s]
644170it [00:00, 1633828.97it/s]
815346it [00:00, 1661908.56it/s]
985420it [00:00, 1675092.50it/s]
1155173it [00:00, 1682346.91it/s]
1324373it [00:00, 1685318.02it/s]
1496679it [00:00, 1697097.39it/s]
1667307it [00:01, 1699912.56it/s]
1837299it [00:01, 1693914.74it/s]
2006696it [00:01, 1690988.48it/s]
2175799it [00:01, 1685163.23it/s]
2349149it [00:01, 1699681.46it/s]
2522486it [00:01, 1709787.75it/s]
2693476it [00:01, 1706994.74it/s]
2864184it [00:01, 1702724.47it/s]
3035202it [00:01, 1704937.62it/s]
3205702it [00:01, 1699954.41it/s]
3375704it [00:02, 1684283.21it/s]
3544211it [00:02, 1684499.78it/s]
3714290it [00:02, 1689338.55it/s]
3886206it [00:02, 1698177.30it/s]
4056041it [00:02, 1690604.15it/s]
4227950it [00:02, 1699086.18it/s]
4399644it [00:02, 1704404.84it/s]
4570099it [00:02, 1701688.15it/s]
4742785it [00:02, 1709198.42it/s]
4913715it [00:02, 1705416.80it/s]
5084265it [00:03, 1694587.02it/s]
5256215it [00:03, 1701870.81it/s]
5426614it [00:03, 1702482.27it/s]
5596875it [00:03, 1700874.28it/s]
5766971it [00:03, 1695008.91it/s]
5936707it [00:03, 1695693.43it/s]
6108052it [00:03, 1700985.82it/s]
6280982it [00:03, 1709444.57it/s]
6451933it [00:03, 1708294.72it/s]
6625967it [00:03, 1717874.02it/s]
6797759it [00:04, 1710652.90it/s]
6968834it [00:04, 1696530.68it/s]
7138516it [00:04, 1692830.46it/s]
7308728it [00:04, 1695580.16it/s]
7478357it [00:04, 1695774.38it/s]
7647946it [00:04, 1686908.85it/s]
7816652it [00:04, 1683958.48it/s]
7985058it [00:04, 1677483.38it/s]
8155347it [00:04, 1684949.84it/s][W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai

8326501it [00:04, 1692872.96it/s]
8495800it [00:05, 1660751.54it/s]
8566859it [00:05, 1688767.35it/s]




[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai


[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai


tabix -s 1 -b 2 -e 2 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/659_6i-T1-TRNA-1_A23MVY2LT4_1.md.depth.gz


seqtool depth_hist     -nbins 500     659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/659_6i-T1-TRNA-1_A23MVY2LT4_1.md.depth.gz     > 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/659_6i-T1-TRNA-1_A23MVY2LT4_1.md.depth_hist.tsv


cat 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/659_6i-T1-TRNA-1_A23MVY2LT4_1.md.depth_hist.tsv | plot         -x 0         -xlabel Depth -ylabel "Number of Sites"         -xlim 0 2000         -title 659_6i-T1-TRNA-1_A23MVY2LT4_1.md         -output 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/659_6i-T1-TRNA-1_A23MVY2LT4_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     659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bam > 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_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     659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bam > 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv 
seqtool depth_stats  -bed Twist_rna_exome_AND_fusion_hg38.bed  659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/659_6i-T1-TRNA-1_A23MVY2LT4_1.md.depth.gz> 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_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  659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bam  > 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_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: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_6i-T1-TRNA-1_A23MVY2LT4_1.md.bai




cat 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv  | plot -x 0  -header infer  -ylim 0 2  -title "659_6i-T1-TRNA-1_A23MVY2LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png"  -ylabel "Fold enrichment / depletion"  -xlabel "GC Quantile" 






echo `date` > 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md/qc_complete.txt


+ merge_qc -folders 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1.md -output 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1_full_basic_stats.tsv
+ head -n1 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed 659_6i-T1-TRNA-1_A23MVY2LT4_1/659_6i-T1-TRNA-1_A23MVY2LT4_1_full_basic_stats.tsv