############################################################################## ############################################################################## ### ### Running command: ### ### /home/biocbuild/R/R/bin/R CMD check --install=check:FLAMES.install-out.txt --library=/home/biocbuild/R/R/site-library --no-vignettes --timings FLAMES_2.0.1.tar.gz ### ############################################################################## ############################################################################## * using log directory ‘/home/biocbuild/bbs-3.20-bioc/meat/FLAMES.Rcheck’ * using R version 4.4.1 (2024-06-14) * using platform: aarch64-unknown-linux-gnu * R was compiled by gcc (GCC) 12.2.1 20220819 (openEuler 12.2.1-14) GNU Fortran (GCC) 10.3.1 * running under: openEuler 22.03 (LTS-SP1) * using session charset: UTF-8 * using option ‘--no-vignettes’ * checking for file ‘FLAMES/DESCRIPTION’ ... OK * this is package ‘FLAMES’ version ‘2.0.1’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘FLAMES’ can be installed ... NOTE Found the following notes/warnings: Non-staged installation was used See ‘/home/biocbuild/bbs-3.20-bioc/meat/FLAMES.Rcheck/00install.out’ for details. * used C++ compiler: ‘g++ (conda-forge gcc 14.2.0-1) 14.2.0’ * checking C++ specification ... OK Not all R platforms support C++17 * checking installed package size ... NOTE installed size is 5.2Mb sub-directories of 1Mb or more: data 2.7Mb libs 1.4Mb * checking package directory ... OK * checking ‘build’ directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... NOTE create_spe: no visible binding for global variable 'barcode' filter_coverage: no visible global function definition for 'starts_with' filter_coverage: no visible binding for global variable 'filter_res' find_barcode: no visible binding for global variable 'Sample' find_barcode: no visible binding for global variable 'Outfile' find_variants_grange: no visible binding for global variable 'which_label' find_variants_grange: no visible binding for global variable 'nucleotide' find_variants_grange: no visible binding for global variable 'pos' find_variants_grange: no visible binding for global variable 'count' find_variants_grange: no visible binding for global variable 'counts_no_ins' find_variants_grange: no visible binding for global variable 'ref' generate_sc_sce: no visible binding for global variable 'FSM_match' get_coverage: no visible binding for global variable 'Freq' homopolymer_pct : : no visible binding for global variable 'Freq' homopolymer_pct : : no visible binding for global variable 'pct' plot_coverage: no visible binding for global variable 'tr_length' plot_coverage: no visible binding for global variable 'read_counts' plot_coverage: no visible binding for global variable 'total_counts' plot_coverage: no visible binding for global variable 'cumpct' plot_coverage: no visible binding for global variable 'length_bin' plot_coverage: no visible binding for global variable 'min_length' plot_coverage: no visible binding for global variable 'max_length' plot_coverage: no visible global function definition for 'head' plot_coverage: no visible binding for global variable 'transcript' plot_demultiplex: no visible binding for global variable 'CellBarcode' plot_demultiplex: no visible binding for global variable 'Sample' plot_demultiplex: no visible binding for global variable 'UMI' plot_demultiplex: no visible binding for global variable 'UMI_count' plot_demultiplex: no visible binding for global variable 'barcode_rank' plot_demultiplex: no visible binding for global variable 'FlankEditDist' plot_demultiplex: no visible binding for global variable 'n_reads' plot_demultiplex: no visible binding for global variable 'BarcodeEditDist' plot_demultiplex: no visible binding for global variable 'total reads' plot_demultiplex: no visible binding for global variable 'demultiplexed reads' plot_demultiplex: no visible binding for global variable 'single match reads' plot_demultiplex: no visible binding for global variable 'undemultiplexted reads' plot_demultiplex: no visible binding for global variable 'multi-matching reads' plot_demultiplex: no visible binding for global variable 'Type' plot_demultiplex: no visible binding for global variable 'Reads' plot_demultiplex: no visible binding for global variable 'input' plot_demultiplex: no visible binding for global variable 'output' plot_demultiplex: no visible binding for global variable 'read1_with_adapter' plot_demultiplex: no visible binding for global variable 'Count' plot_flagstat: no visible global function definition for 'everything' plot_flagstat: no visible binding for global variable 'name' plot_flagstat: no visible binding for global variable 'value' plot_isoform_heatmap : group_annotation: no visible global function definition for 'HeatmapAnnotation' plot_isoform_reduced_dim: no visible binding for global variable 'x' plot_isoform_reduced_dim: no visible binding for global variable 'y' plot_isoform_reduced_dim: no visible binding for global variable 'expr' plot_spatial_isoform: no visible global function definition for 'head' plot_spatial_pie: no visible global function definition for 'head' plot_spatial_pie: no visible binding for global variable 'imageY' plot_spatial_pie: no visible binding for global variable 'imageX' relative_mutation_positions: no visible binding for global variable 'region' relative_mutation_positions_single: no visible binding for global variable 'type' sc_DTU_analysis: no visible binding for global variable 'FSM_match' sc_DTU_analysis: no visible binding for global variable 'gene_id' sc_DTU_analysis: no visible binding for global variable '.' sc_DTU_analysis: no visible binding for global variable 'cell_id' sc_DTU_analysis: no visible binding for global variable 'cnt' sc_DTU_analysis: no visible binding for global variable 'tr_id' sc_DTU_analysis: no visible binding for global variable 'label' sc_DTU_analysis : filter_tr: no visible binding for global variable 'gene_id' sc_DTU_analysis : filter_tr: no visible binding for global variable '.' sc_mutations: no visible binding for global variable 'mutation_index' sc_mutations: no visible binding for global variable 'bam_index' variant_count_tb: no visible binding for global variable 'barcode' variant_count_tb: no visible binding for global variable 'allele_count' variant_count_tb: no visible binding for global variable 'cell_total_reads' Undefined global functions or variables: . BarcodeEditDist CellBarcode Count FSM_match FlankEditDist Freq HeatmapAnnotation Outfile Reads Sample Type UMI UMI_count allele_count bam_index barcode barcode_rank cell_id cell_total_reads cnt count counts_no_ins cumpct demultiplexed reads everything expr filter_res gene_id head imageX imageY input label length_bin max_length min_length multi-matching reads mutation_index n_reads name nucleotide output pct pos read1_with_adapter read_counts ref region single match reads starts_with total reads total_counts tr_id tr_length transcript type undemultiplexted reads value which_label x y Consider adding importFrom("base", "match", "single") importFrom("utils", "head") to your NAMESPACE file. * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in shell scripts ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... NOTE GNU make is a SystemRequirements. * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking compiled code ... NOTE Note: information on .o files is not available File ‘/home/biocbuild/R/R-4.4.1/site-library/FLAMES/libs/FLAMES.so’: Found ‘abort’, possibly from ‘abort’ (C) Found ‘exit’, possibly from ‘exit’ (C) Found ‘stderr’, possibly from ‘stderr’ (C) Found ‘stdout’, possibly from ‘stdout’ (C) Compiled code should not call entry points which might terminate R nor write to stdout/stderr instead of to the console, nor use Fortran I/O nor system RNGs nor [v]sprintf. The detected symbols are linked into the code but might come from libraries and not actually be called. See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual. * checking files in ‘vignettes’ ... OK * checking examples ... ERROR Running examples in ‘FLAMES-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: bulk_long_pipeline > ### Title: Pipeline for Bulk Data > ### Aliases: bulk_long_pipeline > > ### ** Examples > > # download the two fastq files, move them to a folder to be merged together > temp_path <- tempfile() > bfc <- BiocFileCache::BiocFileCache(temp_path, ask = FALSE) > file_url <- + "https://raw.githubusercontent.com/OliverVoogd/FLAMESData/master/data" > # download the required fastq files, and move them to new folder > fastq1 <- bfc[[names(BiocFileCache::bfcadd(bfc, "Fastq1", paste(file_url, "fastq/sample1.fastq.gz", sep = "/")))]] > fastq2 <- bfc[[names(BiocFileCache::bfcadd(bfc, "Fastq2", paste(file_url, "fastq/sample2.fastq.gz", sep = "/")))]] > annotation <- bfc[[names(BiocFileCache::bfcadd(bfc, "annot.gtf", paste(file_url, "SIRV_isoforms_multi-fasta-annotation_C_170612a.gtf", sep = "/")))]] > genome_fa <- bfc[[names(BiocFileCache::bfcadd(bfc, "genome.fa", paste(file_url, "SIRV_isoforms_multi-fasta_170612a.fasta", sep = "/")))]] > fastq_dir <- paste(temp_path, "fastq_dir", sep = "/") # the downloaded fastq files need to be in a directory to be merged together > dir.create(fastq_dir) > file.copy(c(fastq1, fastq2), fastq_dir) [1] TRUE TRUE > unlink(c(fastq1, fastq2)) # the original files can be deleted > > outdir <- tempfile() > dir.create(outdir) > se <- bulk_long_pipeline( + annotation = annotation, fastq = fastq_dir, outdir = outdir, genome_fa = genome_fa, + config_file = create_config(outdir, type = "sc_3end", threads = 1, no_flank = TRUE) + ) Writing configuration parameters to: /home/biocbuild/tmp/RtmpbjZjlq/file3586b77a6d491/config_file_219243.json #### Input parameters: { "pipeline_parameters": { "seed": [2022], "threads": [1], "do_barcode_demultiplex": [true], "do_gene_quantification": [true], "do_genome_alignment": [true], "do_isoform_identification": [true], "bambu_isoform_identification": [false], "multithread_isoform_identification": [false], "do_read_realignment": [true], "do_transcript_quantification": [true], "oarfish_quantification": [true] }, "barcode_parameters": { "max_bc_editdistance": [2], "max_flank_editdistance": [8], "pattern": { "primer": ["CTACACGACGCTCTTCCGATCT"], "BC": ["NNNNNNNNNNNNNNNN"], "UMI": ["NNNNNNNNNNNN"], "polyT": ["TTTTTTTTT"] }, "strand": ["-"], "TSO_seq": ["AAGCAGTGGTATCAACGCAGAGTACATGGG"], "TSO_prime": [3], "full_length_only": [false] }, "isoform_parameters": { "generate_raw_isoform": [false], "max_dist": [10], "max_ts_dist": [100], "max_splice_match_dist": [10], "min_fl_exon_len": [40], "max_site_per_splice": [3], "min_sup_cnt": [5], "min_cnt_pct": [0.001], "min_sup_pct": [0.2], "bambu_trust_reference": [true], "strand_specific": [0], "remove_incomp_reads": [4], "downsample_ratio": [1] }, "alignment_parameters": { "use_junctions": [true], "no_flank": [true] }, "realign_parameters": { "use_annotation": [true] }, "transcript_counting": { "min_tr_coverage": [0.4], "min_read_coverage": [0.4] } } gene annotation: /home/biocbuild/tmp/RtmpbjZjlq/file3586b3da19008/3586b67b3df4c_SIRV_isoforms_multi-fasta-annotation_C_170612a.gtf genome fasta: /home/biocbuild/tmp/RtmpbjZjlq/file3586b3da19008/3586b3d6dcbfc_SIRV_isoforms_multi-fasta_170612a.fasta input fastq files: /home/biocbuild/tmp/RtmpbjZjlq/file3586b3da19008/fastq_dir/3586b47dbd969_sample2.fastq.gz /home/biocbuild/tmp/RtmpbjZjlq/file3586b3da19008/fastq_dir/3586b8256ea9_sample1.fastq.gz output directory: /home/biocbuild/tmp/RtmpbjZjlq/file3586b77a6d491 minimap2 path: k8 path: #### Aligning reads to genome using minimap2 Aligning sample 3586b47dbd969_sample2 ... 08:44:34 Thu Nov 07 2024 minimap2_align [M::mm_idx_gen::0.015*1.10] collected minimizers [M::mm_idx_gen::0.026*1.06] sorted minimizers [M::main::0.026*1.06] loaded/built the index for 7 target sequence(s) [M::mm_mapopt_update::0.028*1.05] mid_occ = 14 [M::mm_idx_stat] kmer size: 14; skip: 5; is_hpc: 0; #seq: 7 [M::mm_idx_stat::0.030*1.05] distinct minimizers: 39103 (61.08% are singletons); average occurrences: 1.935; average spacing: 2.947 [M::worker_pipeline::8.794*0.99] mapped 2500 sequences [M::main] Version: 2.17-r941 [M::main] CMD: /usr/bin/minimap2 -ax splice -t 1 -k14 --secondary=no --seed 2022 --splice-flank=no --junc-bed /home/biocbuild/tmp/RtmpbjZjlq/file3586b77a6d491/tmp_splice_anno.bed12 --junc-bonus 1 /home/biocbuild/tmp/RtmpbjZjlq/file3586b3da19008/3586b3d6dcbfc_SIRV_isoforms_multi-fasta_170612a.fasta /home/biocbuild/tmp/RtmpbjZjlq/file3586b3da19008/fastq_dir/3586b47dbd969_sample2.fastq.gz [M::main] Real time: 8.800 sec; CPU: 8.706 sec; Peak RSS: 0.098 GB Aligning sample 3586b8256ea9_sample1 ... 08:44:43 Thu Nov 07 2024 minimap2_align [M::mm_idx_gen::0.015*1.09] collected minimizers [M::mm_idx_gen::0.026*1.05] sorted minimizers [M::main::0.026*1.05] loaded/built the index for 7 target sequence(s) [M::mm_mapopt_update::0.029*1.04] mid_occ = 14 [M::mm_idx_stat] kmer size: 14; skip: 5; is_hpc: 0; #seq: 7 [M::mm_idx_stat::0.031*1.04] distinct minimizers: 39103 (61.08% are singletons); average occurrences: 1.935; average spacing: 2.947 [M::worker_pipeline::8.798*0.99] mapped 2500 sequences [M::main] Version: 2.17-r941 [M::main] CMD: /usr/bin/minimap2 -ax splice -t 1 -k14 --secondary=no --seed 2022 --splice-flank=no --junc-bed /home/biocbuild/tmp/RtmpbjZjlq/file3586b77a6d491/tmp_splice_anno.bed12 --junc-bonus 1 /home/biocbuild/tmp/RtmpbjZjlq/file3586b3da19008/3586b3d6dcbfc_SIRV_isoforms_multi-fasta_170612a.fasta /home/biocbuild/tmp/RtmpbjZjlq/file3586b3da19008/fastq_dir/3586b8256ea9_sample1.fastq.gz [M::main] Real time: 8.804 sec; CPU: 8.690 sec; Peak RSS: 0.084 GB 08:44:52 Thu Nov 07 2024 find_isoform #### Read gene annotations Removed similar transcripts in gene annotation: Counter({'duplicated_transcripts': 2}) #### find isoforms SIRV1 SIRV2 SIRV3 SIRV4 SIRV5 SIRV6 SIRV7 #### Realign to transcript using minimap2 Realigning sample 3586b47dbd969_sample2 ... 08:44:55 Thu Nov 07 2024 minimap2_realign [M::mm_idx_gen::0.004*1.50] collected minimizers [M::mm_idx_gen::0.007*2.04] sorted minimizers [M::main::0.007*2.04] loaded/built the index for 75 target sequence(s) [M::mm_mapopt_update::0.008*1.95] mid_occ = 16 [M::mm_idx_stat] kmer size: 15; skip: 10; is_hpc: 0; #seq: 75 [M::mm_idx_stat::0.009*1.91] distinct minimizers: 4777 (33.28% are singletons); average occurrences: 3.058; average spacing: 5.391 [M::worker_pipeline::0.887*2.51] mapped 2500 sequences [M::main] Version: 2.17-r941 [M::main] CMD: /usr/bin/minimap2 --eqx -N 100 -ax map-ont /home/biocbuild/tmp/RtmpbjZjlq/file3586b77a6d491/transcript_assembly.fa /home/biocbuild/tmp/RtmpbjZjlq/file3586b3da19008/fastq_dir/3586b47dbd969_sample2.fastq.gz [M::main] Real time: 0.889 sec; CPU: 2.233 sec; Peak RSS: 0.026 GB file renamed to 3586b47dbd969_sample2_realign2transcript.bam Warning in file.remove(file.path(outdir, paste0(prefix, "tmp_align.bam"))) : cannot remove file '/home/biocbuild/tmp/RtmpbjZjlq/file3586b77a6d491/3586b47dbd969_sample2_tmp_align.bam', reason 'No such file or directory' Realigning sample 3586b8256ea9_sample1 ... 08:44:56 Thu Nov 07 2024 minimap2_realign [M::mm_idx_gen::0.004*1.42] collected minimizers [M::mm_idx_gen::0.007*1.98] sorted minimizers [M::main::0.007*1.97] loaded/built the index for 75 target sequence(s) [M::mm_mapopt_update::0.008*1.89] mid_occ = 16 [M::mm_idx_stat] kmer size: 15; skip: 10; is_hpc: 0; #seq: 75 [M::mm_idx_stat::0.009*1.85] distinct minimizers: 4777 (33.28% are singletons); average occurrences: 3.058; average spacing: 5.391 [M::worker_pipeline::1.217*2.53] mapped 2500 sequences [M::main] Version: 2.17-r941 [M::main] CMD: /usr/bin/minimap2 --eqx -N 100 -ax map-ont /home/biocbuild/tmp/RtmpbjZjlq/file3586b77a6d491/transcript_assembly.fa /home/biocbuild/tmp/RtmpbjZjlq/file3586b3da19008/fastq_dir/3586b8256ea9_sample1.fastq.gz [M::main] Real time: 1.219 sec; CPU: 3.080 sec; Peak RSS: 0.024 GB file renamed to 3586b8256ea9_sample1_realign2transcript.bam Warning in file.remove(file.path(outdir, paste0(prefix, "tmp_align.bam"))) : cannot remove file '/home/biocbuild/tmp/RtmpbjZjlq/file3586b77a6d491/3586b8256ea9_sample1_tmp_align.bam', reason 'No such file or directory' #### Generating transcript count matrix 2024-11-07T08:44:57.834484Z  INFO oarfish: setting user-provided filter parameters. 2024-11-07T08:44:57.836729Z  INFO oarfish::alignment_parser: read header from BAM file /home/biocbuild/tmp/RtmpbjZjlq/file3586b77a6d491/3586b47dbd969_sample2_realign2transcript.bam, contains 75 reference sequences. thread 'main' panicked at src/alignment_parser.rs:29:10: has inner header note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Error in run_oarfish(realign_bam, outdir, threads = config$pipeline_parameters$threads, : error running oarfish: 134 Calls: bulk_long_pipeline ... quantify_transcript -> quantify_transcript_oarfish -> run_oarfish Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking running R code from vignettes ... SKIPPED * checking re-building of vignette outputs ... SKIPPED * checking PDF version of manual ... OK * DONE Status: 1 ERROR, 5 NOTEs See ‘/home/biocbuild/bbs-3.20-bioc/meat/FLAMES.Rcheck/00check.log’ for details.