File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/ec/719546866e6533c1d70f8f24a1b229/.command.log
Size
12.7 KB
Attempt
  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/ec/719546866e6533c1d70f8f24a1b229/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/c7/56b2e884b791f7251da1ad2f108a99/659_bTo-T1-TRNA-1_A23MVY2LT4_1.md.bam
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/c7/56b2e884b791f7251da1ad2f108a99/659_bTo-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.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/ec/719546866e6533c1d70f8f24a1b229/.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_bTo-T1-TRNA-1_A23MVY2LT4_1
+ all_qc -bam 659_bTo-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_bTo-T1-TRNA-1_A23MVY2LT4_1 -reference ref_genome.fa -region chr20
mkdir -p 659_bTo-T1-TRNA-1_A23MVY2LT4_1/659_bTo-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_bTo-T1-TRNA-1_A23MVY2LT4_1/659_bTo-T1-TRNA-1_A23MVY2LT4_1.md/full_bed.bed


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

0it [00:00, ?it/s]
153778it [00:00, 1537689.81it/s]
316879it [00:00, 1592550.11it/s]
484297it [00:00, 1629800.77it/s]
652782it [00:00, 1651508.84it/s]
818795it [00:00, 1654592.58it/s]
984784it [00:00, 1656376.74it/s]
1152521it [00:00, 1663219.54it/s]
1321080it [00:00, 1670326.35it/s]
1490129it [00:00, 1676405.26it/s]
1658161it [00:01, 1677517.89it/s]
1825913it [00:01, 1671005.02it/s]
1996206it [00:01, 1680670.93it/s]
2164410it [00:01, 1681069.59it/s]
2333255it [00:01, 1683280.53it/s]
2501743it [00:01, 1683749.38it/s]
2670121it [00:01, 1675853.34it/s]
2841516it [00:01, 1687251.92it/s]
3010253it [00:01, 1682690.06it/s]
3178532it [00:01, 1680836.69it/s]
3346623it [00:02, 1674625.41it/s]
3518062it [00:02, 1686489.22it/s]
3686746it [00:02, 1686416.64it/s]
3855396it [00:02, 1679966.82it/s]
4023548it [00:02, 1680291.25it/s]
4191585it [00:02, 1678949.26it/s]
4361414it [00:02, 1684717.04it/s]
4529891it [00:02, 1676519.33it/s]
4697554it [00:02, 1672693.72it/s]
4865855it [00:02, 1675754.72it/s]
5033438it [00:03, 1668994.50it/s]
5200347it [00:03, 1668991.41it/s]
5367253it [00:03, 1668373.95it/s]
5536863it [00:03, 1676652.89it/s]
5704534it [00:03, 1676645.33it/s]
5872748it [00:03, 1678275.09it/s]
6041739it [00:03, 1681745.73it/s]
6209916it [00:03, 1672805.34it/s]
6377209it [00:03, 1662694.22it/s]
6543497it [00:03, 1654744.51it/s]
6708988it [00:04, 1646091.95it/s]
6873612it [00:04, 1644009.82it/s]
7038022it [00:04, 1639893.31it/s]
7202317it [00:04, 1640649.30it/s]
7366387it [00:04, 1638326.11it/s]
7536797it [00:04, 1657950.27it/s]
7704985it [00:04, 1665092.52it/s]
7871505it [00:04, 1663061.23it/s]
8037819it [00:04, 1659753.97it/s]
8203834it [00:04, 1659856.31it/s]
8370314it [00:05, 1661276.19it/s]
8536492it [00:05, 1661412.14it/s]
8703302it [00:05, 1663398.95it/s]
8869644it [00:05, 1656564.87it/s]
9035456it [00:05, 1657013.75it/s]
9201894it [00:05, 1659192.74it/s]
9367818it [00:05, 1650330.43it/s]
9532864it [00:05, 1646956.19it/s]
9699225it [00:05, 1651905.95it/s]
9865651it [00:05, 1655472.42it/s]
10035398it [00:06, 1667966.07it/s]
10203408it [00:06, 1671492.91it/s]
10370564it [00:06, 1668498.04it/s]
10538179it [00:06, 1670659.18it/s]
10705249it [00:06, 1670345.04it/s]
10872287it [00:06, 1667217.66it/s]
11039012it [00:06, 1645692.87it/s]
11203642it [00:06, 1644123.62it/s]
11370622it [00:06, 1651749.93it/s]
11538000it [00:06, 1658198.80it/s]
11703849it [00:07, 1655602.08it/s]
11869429it [00:07, 1646658.30it/s]
12034117it [00:07, 1644378.72it/s]
12198897it [00:07, 1645381.07it/s]
12363446it [00:07, 1638904.71it/s]
12527348it [00:07, 1543768.40it/s]
12692295it [00:07, 1573864.63it/s]
12858293it [00:07, 1598855.39it/s]
13027076it [00:07, 1624811.40it/s]
13191530it [00:07, 1630617.01it/s]
13357327it [00:08, 1638712.05it/s]
13522963it [00:08, 1643948.49it/s]
13630576it [00:08, 1657904.65it/s]


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


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


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


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


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


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




cat 659_bTo-T1-TRNA-1_A23MVY2LT4_1/659_bTo-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_bTo-T1-TRNA-1_A23MVY2LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "659_bTo-T1-TRNA-1_A23MVY2LT4_1/659_bTo-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_bTo-T1-TRNA-1_A23MVY2LT4_1/659_bTo-T1-TRNA-1_A23MVY2LT4_1.md/qc_complete.txt


+ merge_qc -folders 659_bTo-T1-TRNA-1_A23MVY2LT4_1/659_bTo-T1-TRNA-1_A23MVY2LT4_1.md -output 659_bTo-T1-TRNA-1_A23MVY2LT4_1/659_bTo-T1-TRNA-1_A23MVY2LT4_1_full_basic_stats.tsv
+ head -n1 659_bTo-T1-TRNA-1_A23MVY2LT4_1/659_bTo-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_bTo-T1-TRNA-1_A23MVY2LT4_1/659_bTo-T1-TRNA-1_A23MVY2LT4_1_full_basic_stats.tsv