File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/c2/e348516b894018bebede0c805fe04e/.command.log
Size
11.6 KB
Attempt
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/98/685047f4a0aba86afdcd8c1512ecb8/BreastNB_FFPE_L02_RNA_01_B23LG7FLT4_1.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/c2/e348516b894018bebede0c805fe04e/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/98/685047f4a0aba86afdcd8c1512ecb8/BreastNB_FFPE_L02_RNA_01_B23LG7FLT4_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-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/gatk4/dbsnp_hg38_contam_sites.bed
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/c2/e348516b894018bebede0c805fe04e/.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 BreastNB_FFPE_L02_RNA_01_B23LG7FLT4_1
+ all_qc -bam BreastNB_FFPE_L02_RNA_01_B23LG7FLT4_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 BreastNB_FFPE_L02_RNA_01_B23LG7FLT4_1 -reference ref_genome.fa -region chr20
mkdir -p BreastNB_FFPE_L02_RNA_01_B23LG7FLT4_1/BreastNB_FFPE_L02_RNA_01_B23LG7FLT4_1.md/


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


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

0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: BreastNB_FFPE_L02_RNA_01_B23LG7FLT4_1.md.bai

92058it [00:00, 920497.48it/s]
191681it [00:00, 964997.55it/s]
292279it [00:00, 983677.36it/s]
390647it [00:00, 896708.52it/s]
481356it [00:00, 822668.06it/s]
564956it [00:00, 787611.35it/s]
644597it [00:00, 770876.79it/s]
722197it [00:00, 757149.00it/s]
798202it [00:00, 749818.20it/s]
873346it [00:01, 743009.51it/s]
947733it [00:01, 738391.18it/s]
1021616it [00:01, 735239.31it/s][W::hts_idx_load3] The index file is older than the data file: BreastNB_FFPE_L02_RNA_01_B23LG7FLT4_1.md.bai

1095161it [00:01, 729905.29it/s]


1169634it [00:01, 734193.89it/s]
1243993it [00:01, 736515.34it/s]
1317661it [00:01, 730786.38it/s]
1390754it [00:01, 723112.27it/s][W::hts_idx_load3] The index file is older than the data file: BreastNB_FFPE_L02_RNA_01_B23LG7FLT4_1.md.bai

1464535it [00:01, 727436.12it/s]
1537804it [00:02, 728978.42it/s]
1611215it [00:02, 730440.37it/s]
1684272it [00:02, 729628.80it/s][W::hts_idx_load3] The index file is older than the data file: BreastNB_FFPE_L02_RNA_01_B23LG7FLT4_1.md.bai

1762491it [00:02, 745307.94it/s]
1855542it [00:02, 800665.69it/s]
1950857it [00:02, 846281.79it/s]
2071338it [00:02, 953513.40it/s]
2168269it [00:02, 958230.11it/s]
2279216it [00:02, 1003527.07it/s]
2379593it [00:02, 984447.87it/s] 
2432244it [00:02, 820608.88it/s]


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


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


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


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


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








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


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


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