File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/5f/efa910a6f52308d1759838fff4adc5/.command.log
Size
12.7 KB
Attempt
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/2b/d20c3fe24b38e29eb0d0406d55ef0e/659_bTo-T1-TRNA-1_B23WHTKLT4_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/5f/efa910a6f52308d1759838fff4adc5/.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/5f/efa910a6f52308d1759838fff4adc5/.command.run
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/2b/d20c3fe24b38e29eb0d0406d55ef0e/659_bTo-T1-TRNA-1_B23WHTKLT4_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 659_bTo-T1-TRNA-1_B23WHTKLT4_1
+ all_qc -bam 659_bTo-T1-TRNA-1_B23WHTKLT4_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_bTo-T1-TRNA-1_B23WHTKLT4_1 -reference ref_genome.fa -region chr20
mkdir -p 659_bTo-T1-TRNA-1_B23WHTKLT4_1/659_bTo-T1-TRNA-1_B23WHTKLT4_1.md/


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


seqtool depth -bam 659_bTo-T1-TRNA-1_B23WHTKLT4_1.md.bam -bed 659_bTo-T1-TRNA-1_B23WHTKLT4_1/659_bTo-T1-TRNA-1_B23WHTKLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > 659_bTo-T1-TRNA-1_B23WHTKLT4_1/659_bTo-T1-TRNA-1_B23WHTKLT4_1.md/659_bTo-T1-TRNA-1_B23WHTKLT4_1.md.depth.gz
saturation_plot       -bams 659_bTo-T1-TRNA-1_B23WHTKLT4_1.md.bam       -region chr20       -output 659_bTo-T1-TRNA-1_B23WHTKLT4_1/659_bTo-T1-TRNA-1_B23WHTKLT4_1.md/saturation_plot.png       -threads 1 
seqtool saturation_metric       -at 1000000       -region chr20       -bam_threads 1       659_bTo-T1-TRNA-1_B23WHTKLT4_1.md.bam > 659_bTo-T1-TRNA-1_B23WHTKLT4_1/659_bTo-T1-TRNA-1_B23WHTKLT4_1.md/saturation_qc.tsv 
fragment_size       -bams 659_bTo-T1-TRNA-1_B23WHTKLT4_1.md.bam       -region chr20       -output_prefix 659_bTo-T1-TRNA-1_B23WHTKLT4_1/659_bTo-T1-TRNA-1_B23WHTKLT4_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_bTo-T1-TRNA-1_B23WHTKLT4_1.md.bam > 659_bTo-T1-TRNA-1_B23WHTKLT4_1.md.mpileup && contamination -input 659_bTo-T1-TRNA-1_B23WHTKLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > 659_bTo-T1-TRNA-1_B23WHTKLT4_1/659_bTo-T1-TRNA-1_B23WHTKLT4_1.md/contamination.tsv 
[W::hts_idx_load3] The index file is older than the data file: 659_bTo-T1-TRNA-1_B23WHTKLT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: 659_bTo-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bTo-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bTo-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bTo-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bTo-T1-TRNA-1_B23WHTKLT4_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_bTo-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bTo-T1-TRNA-1_B23WHTKLT4_1.md.bai

0it [00:00, ?it/s]
137041it [00:00, 1370042.20it/s]
290980it [00:00, 1469394.92it/s]
456536it [00:00, 1553303.96it/s]
628141it [00:00, 1617424.38it/s]
796088it [00:00, 1639765.45it/s]
965736it [00:00, 1659030.66it/s]
1138253it [00:00, 1680635.49it/s]
1310677it [00:00, 1694504.29it/s]
1481867it [00:00, 1699808.19it/s]
1653182it [00:01, 1703881.96it/s]
1824218it [00:01, 1705852.43it/s]
1994804it [00:01, 1705453.24it/s]
2165350it [00:01, 1699332.63it/s]
2338432it [00:01, 1708801.37it/s]
2510993it [00:01, 1713843.07it/s]
2682383it [00:01, 1708873.49it/s]
2855799it [00:01, 1716440.45it/s]
3029464it [00:01, 1722439.54it/s]
3201714it [00:01, 1719474.29it/s]
3373667it [00:02, 1710788.02it/s]
3549350it [00:02, 1724525.84it/s]
3724015it [00:02, 1731129.99it/s]
3897141it [00:02, 1724099.52it/s]
4069565it [00:02, 1719094.83it/s]
4241486it [00:02, 1706527.57it/s]
4412162it [00:02, 1701596.51it/s]
4584312it [00:02, 1707508.27it/s]
4755079it [00:02, 1703070.97it/s]
4925397it [00:02, 1699661.99it/s]
5095371it [00:03, 1681290.28it/s]
5267483it [00:03, 1693030.95it/s]
5438862it [00:03, 1699197.99it/s]
5611776it [00:03, 1708120.41it/s]
5784151it [00:03, 1712781.35it/s]
5955895it [00:03, 1714131.51it/s]
6128721it [00:03, 1718330.29it/s]
6300567it [00:03, 1714017.43it/s]
6473585it [00:03, 1718834.96it/s]
6645896it [00:03, 1720093.38it/s]
6818646it [00:04, 1722216.88it/s]
6990873it [00:04, 1721314.51it/s]
7163402it [00:04, 1722380.85it/s]
7335972it [00:04, 1723359.05it/s]
7508310it [00:04, 1721711.67it/s]
7685509it [00:04, 1736754.74it/s]
7859188it [00:04, 1730067.67it/s]
8032945it [00:04, 1732299.23it/s]
8206181it [00:04, 1727404.25it/s]
8378928it [00:04, 1725402.78it/s]
8551473it [00:05, 1714242.99it/s]
8723287it [00:05, 1715392.37it/s]
8894839it [00:05, 1713613.51it/s]
9066209it [00:05, 1711556.30it/s]
9237719it [00:05, 1712600.06it/s]
9408984it [00:05, 1709379.11it/s]
9579926it [00:05, 1706570.12it/s]
9753553it [00:05, 1715437.11it/s]
9925274it [00:05, 1715955.96it/s]
10101935it [00:05, 1731115.05it/s]
10277125it [00:06, 1737327.61it/s]
10451547it [00:06, 1739384.17it/s]
10626548it [00:06, 1742555.62it/s]
10801446it [00:06, 1744470.16it/s]
10975895it [00:06, 1737758.00it/s]
11149678it [00:06, 1735477.90it/s]
11323231it [00:06, 1704017.87it/s]
11496857it [00:06, 1713417.21it/s]
11670599it [00:06, 1720532.14it/s]
11844491it [00:06, 1725994.90it/s]
12017149it [00:07, 1724316.09it/s]
12189621it [00:07, 1722673.14it/s]
12361917it [00:07, 1721787.69it/s]
12534116it [00:07, 1719288.82it/s]
12706059it [00:07, 1714368.90it/s]
12878749it [00:07, 1718102.98it/s]
13050569it [00:07, 1711612.07it/s]
13221741it [00:07, 1708729.11it/s]
13393844it [00:07, 1712386.14it/s][W::hts_idx_load3] The index file is older than the data file: 659_bTo-T1-TRNA-1_B23WHTKLT4_1.md.bai

13566250it [00:07, 1715781.03it/s][W::hts_idx_load3] The index file is older than the data file: 659_bTo-T1-TRNA-1_B23WHTKLT4_1.md.bai

13740809it [00:08, 1724535.39it/s]
13913269it [00:08, 1676767.15it/s]
14081234it [00:08, 1647985.29it/s]
14156810it [00:08, 1705757.12it/s]




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


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


tabix -s 1 -b 2 -e 2 659_bTo-T1-TRNA-1_B23WHTKLT4_1/659_bTo-T1-TRNA-1_B23WHTKLT4_1.md/659_bTo-T1-TRNA-1_B23WHTKLT4_1.md.depth.gz


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


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




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






echo `date` > 659_bTo-T1-TRNA-1_B23WHTKLT4_1/659_bTo-T1-TRNA-1_B23WHTKLT4_1.md/qc_complete.txt


+ merge_qc -folders 659_bTo-T1-TRNA-1_B23WHTKLT4_1/659_bTo-T1-TRNA-1_B23WHTKLT4_1.md -output 659_bTo-T1-TRNA-1_B23WHTKLT4_1/659_bTo-T1-TRNA-1_B23WHTKLT4_1_full_basic_stats.tsv
+ head -n1 659_bTo-T1-TRNA-1_B23WHTKLT4_1/659_bTo-T1-TRNA-1_B23WHTKLT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed 659_bTo-T1-TRNA-1_B23WHTKLT4_1/659_bTo-T1-TRNA-1_B23WHTKLT4_1_full_basic_stats.tsv