File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/37/171b4189fe0b4c0559feb3148e865a/.command.log
Size
12.6 KB
Attempt
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/70/3322ecdc00be40e85ed33986bc3ded/aih-tih-sc-d45d48-R1_A23WJ53LT4_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/37/171b4189fe0b4c0559feb3148e865a/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/70/3322ecdc00be40e85ed33986bc3ded/aih-tih-sc-d45d48-R1_A23WJ53LT4_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/37/171b4189fe0b4c0559feb3148e865a/.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 aih-tih-sc-d45d48-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-d45d48-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-d45d48-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-d45d48-R1_A23WJ53LT4_1/aih-tih-sc-d45d48-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-d45d48-R1_A23WJ53LT4_1/aih-tih-sc-d45d48-R1_A23WJ53LT4_1.md/full_bed.bed


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

0it [00:00, ?it/s]
153591it [00:00, 1535797.95it/s]
322886it [00:00, 1627927.98it/s]
491527it [00:00, 1654424.32it/s]
664008it [00:00, 1682010.47it/s]
835929it [00:00, 1695335.76it/s]
1010067it [00:00, 1710875.41it/s]
1182057it [00:00, 1713261.08it/s]
1353383it [00:00, 1706935.66it/s]
1524621it [00:00, 1708602.97it/s]
1696156it [00:01, 1710652.26it/s]
1867225it [00:01, 1693889.62it/s]
2036651it [00:01, 1681565.24it/s]
2205380it [00:01, 1683251.59it/s]
2378815it [00:01, 1698477.41it/s]
2549840it [00:01, 1701980.02it/s]
2720258it [00:01, 1702606.19it/s]
2891426it [00:01, 1705279.35it/s]
3061966it [00:01, 1701795.31it/s]
3232494it [00:01, 1702810.36it/s]
3402782it [00:02, 1680328.02it/s]
3572724it [00:02, 1685970.97it/s]
3742888it [00:02, 1690613.66it/s]
3916191it [00:02, 1703135.11it/s]
4089695it [00:02, 1712527.88it/s]
4262823it [00:02, 1718111.50it/s]
4434656it [00:02, 1716491.09it/s]
4606320it [00:02, 1716229.88it/s]
4778027it [00:02, 1716457.51it/s]
4949680it [00:02, 1701133.23it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-d45d48-R1_A23WJ53LT4_1.md.bai

5119829it [00:03, 1695002.77it/s]
5289355it [00:03, 1692875.77it/s]
5458660it [00:03, 1682993.59it/s]
5629124it [00:03, 1689325.48it/s]
5798076it [00:03, 1564376.17it/s]
5956317it [00:03, 1430881.21it/s]
6110029it [00:03, 1459458.68it/s]
6258432it [00:03, 1393022.10it/s]
6409233it [00:03, 1424483.35it/s]
6563151it [00:03, 1456635.53it/s]
6723548it [00:04, 1498829.80it/s]
6884631it [00:04, 1531333.87it/s]
7055043it [00:04, 1581976.44it/s]
7217772it [00:04, 1595329.25it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-d45d48-R1_A23WJ53LT4_1.md.bai

7389652it [00:04, 1631930.26it/s]
7563269it [00:04, 1662927.23it/s]
7732863it [00:04, 1672658.99it/s]
7900365it [00:04, 1647757.81it/s]
8072128it [00:04, 1668413.50it/s]
8245323it [00:05, 1687241.35it/s]
8420222it [00:05, 1705621.95it/s]
8593382it [00:05, 1713312.15it/s]
8765424it [00:05, 1715330.31it/s]
8937280it [00:05, 1716249.65it/s]
9112171it [00:05, 1726003.44it/s]
9284804it [00:05, 1723367.32it/s]
9457165it [00:05, 1717711.58it/s]
9628956it [00:05, 1716511.46it/s]
9800621it [00:05, 1715144.52it/s]
9974204it [00:06, 1721309.08it/s]
10146344it [00:06, 1707384.52it/s]
10318101it [00:06, 1710323.19it/s]
10489515it [00:06, 1711438.66it/s]
10661852it [00:06, 1714980.37it/s]
10834806it [00:06, 1719315.92it/s]
11009790it [00:06, 1728435.56it/s]
11182643it [00:06, 1727694.19it/s]
11355419it [00:06, 1717358.00it/s]
11527285it [00:06, 1717723.90it/s]
11699070it [00:07, 1710599.29it/s]
11870143it [00:07, 1703042.39it/s]
11899908it [00:07, 1668507.05it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-d45d48-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-d45d48-R1_A23WJ53LT4_1.md.bai




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


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


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


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


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






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


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