File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/2a/1d3fb9935a0cb0d68480e8b5a912a2/.command.log
Size
8.8 KB
Attempt
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/5a/7a449b7ea94aede466cbd96537ac46/dna_s765.md.bam
  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/2a/1d3fb9935a0cb0d68480e8b5a912a2/.command.sh
  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/2a/1d3fb9935a0cb0d68480e8b5a912a2/.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-rnd-pltf-dev-nextflow-scratch-01/work/5a/7a449b7ea94aede466cbd96537ac46/dna_s765.md.bai
  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 dna_s765
+ all_qc -bam dna_s765.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 dna_s765 -reference ref_genome.fa -region chr20
mkdir -p dna_s765/dna_s765.md/


cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > dna_s765/dna_s765.md/full_bed.bed


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

0it [00:00, ?it/s]
115691it [00:00, 1156558.15it/s]
235840it [00:00, 1182835.06it/s]
358555it [00:00, 1203026.04it/s]
487570it [00:00, 1237186.79it/s]
611289it [00:00, 1205153.86it/s]
731945it [00:00, 1187685.94it/s]
856220it [00:00, 1205151.24it/s]
976850it [00:00, 1024545.31it/s]
1083643it [00:01, 944747.79it/s]
1181739it [00:01, 898185.07it/s]
1274042it [00:01, 863640.75it/s]
1393945it [00:01, 951802.39it/s]
1523069it [00:01, 1044551.28it/s]
1648965it [00:01, 1104731.87it/s]
1775459it [00:01, 1150570.74it/s]
1901341it [00:01, 1181957.23it/s]
2024670it [00:01, 1196814.94it/s]
2148833it [00:01, 1209871.44it/s]
2277855it [00:02, 1233672.57it/s]
2407973it [00:02, 1253531.96it/s]
2533734it [00:02, 1234472.83it/s]
2657525it [00:02, 1164164.19it/s]
2775325it [00:02, 1168068.14it/s]
2892848it [00:02, 1134187.64it/s]
3006885it [00:02, 1102951.44it/s]
3117679it [00:02, 1096702.68it/s]
3239288it [00:02, 1130930.56it/s]
3354620it [00:02, 1137414.23it/s]
3477522it [00:03, 1164266.35it/s]
3601580it [00:03, 1186738.51it/s]
3724091it [00:03, 1198040.04it/s]
3844059it [00:03, 1178489.12it/s]
3962083it [00:03, 1144981.53it/s]
4076866it [00:03, 1116912.54it/s]
4201420it [00:03, 1153920.84it/s]
4253410it [00:03, 1128090.42it/s]




[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai


[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai
[W::hts_idx_load3] The index file is older than the data file: dna_s765.md.bai


tabix -s 1 -b 2 -e 2 dna_s765/dna_s765.md/dna_s765.md.depth.gz


seqtool depth_hist     -nbins 500     dna_s765/dna_s765.md/dna_s765.md.depth.gz     > dna_s765/dna_s765.md/dna_s765.md.depth_hist.tsv


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




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






echo `date` > dna_s765/dna_s765.md/qc_complete.txt


+ merge_qc -folders dna_s765/dna_s765.md -output dna_s765/dna_s765_full_basic_stats.tsv
+ head -n1 dna_s765/dna_s765_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed dna_s765/dna_s765_full_basic_stats.tsv