reference/build_bdrhap_reference
Description
The Reference Files Generator creates an archive containing Genome Index
and Transcriptome annotation files needed for the BD Rhapsody Sequencing
Analysis Pipeline. The app takes as input one or more FASTA and GTF files
and produces a compressed archive in the form of a tar.gz file. The
archive contains:
STAR index
Filtered GTF file
Inputs
Name | Type & Properties | Description |
|---|---|---|
--genome_fasta | file required multiple | Reference genome file in FASTA or FASTA.GZ format. The pre-built BD reference archive files use GRCh38 for Human and GRCm39 for Mouse. |
--gtf | file required multiple | File path to the transcript annotation files in GTF or GTF.GZ format. The Sequence Analysis Pipeline requires the 'gene_name' or 'gene_id' attribute to be set on each gene and exon feature. Gene and exon feature lines must have the same attribute, and exons must have a corresponding gene with the same value. For TCR/BCR assays, the TCR or BCR gene segments must have the 'gene_type' or 'gene_biotype' attribute set, and the value should begin with 'TR' or 'IG', respectively. |
--extra_sequences | file multiple | File path to additional sequences in FASTA format to use when building the STAR and bwa-mem2 indices. (e.g. transgenes or CRISPR guide barcodes). GTF lines for these sequences will be automatically generated and combined with the main GTF. |
--transcription_factor_motif_pfm | file multiple | Text file of Transcription Factor Motif position frequency matrices in JASPAR format. Used to compute a TF motif-by-cell matrix in the ATAC-Seq analysis pipeline. The pre-built BD reference archive files use the JASPAR2024_CORE_vertebrates_non-redundant_pfms_jaspar.txt file for both Human and Mouse. See https://jaspar.elixir.no/download/data/2024/CORE/. |
Outputs
Name | Type & Properties | Description |
|---|---|---|
--reference_archive | file required output | A Compressed archive containing the Reference Genome Index and annotation GTF files. This archive is meant to be used as an input in the BD Rhapsody Sequencing Analysis Pipeline. |
Arguments
Name | Type & Properties | Description |
|---|---|---|
--mitochondrial_contigs | string multiple | Names of the Mitochondrial contigs in the provided Reference Genome. Fragments originating from contigs other than these are identified as 'nuclear fragments' in the ATACseq analysis pipeline. |
--filtering_off | boolean_true | By default, the input GTF files are filtered based on the gene_type, gene_biotype, or transcript_type attributes. Only genes with a gene_type or gene_biotype matching one of the accepted values are retained, and each gene must have at least one transcript with a valid transcript_type. An exception is made to the transcript requirement if the gene does not overlap with any other gene that has a valid biotype. Accepted biotypes include: - protein_coding - protein_coding_LOF - lncRNA (lincRNA and antisense for Gencode < v31/M22/Ensembl97) - IG_LV_gene - IG_V_gene - IG_V_pseudogene - IG_D_gene - IG_D_pseudogene - IG_J_gene - IG_J_pseudogene - IG_C_gene - IG_C_pseudogene - TR_V_gene - TR_V_pseudogene - TR_D_gene - TR_J_gene - TR_J_pseudogene - TR_C_gene If you have already pre-filtered the input Annotation files and/or wish to turn-off the filtering, please set this option to True. |
--disable_readthrough_filtering | boolean_true | By default genes with only readthrough transcripts are removed. Any readthrough_transcript feature is also removed if its parent gene overlaps with another gene that meets the biotype requirement. Set this option to disable this behaviour. |
--filter_pars | boolean_true | Remove features in the 2 Pseudo-Autosomal Regions (PARs) on the Y chromosome. This applies only to a Human build 38 reference. |
--combine_same_gene_names | boolean_true | Combine genes with the same gene name, even when gene ids are different. If not enabled (default), chromosome, start, and strand information will be appended to the duplicated gene names. |
--wta_only_index | boolean_true | Build a WTA only index, otherwise builds a WTA + ATAC index. |
--disable_fasta_validation | boolean_true | Skip validation that the FASTA files contain the contigs referenced in the GTF files. Only use this in rare cases where you deliberately want to bypass the contig compatibility check. |
--repair_gtf | boolean_true | Attempt to repair invalid GTF files using the built-in repair functionality. The validator will try to fix common GTF format issues and use the repaired files for downstream processing. |
--gtf_validation_complete_mode | boolean_true | Generate a full report about errors and warnings in the GTF, instead of failing when the first fatal error is encountered. |
--extra_star_params | string | Additional parameters to pass to STAR when building the genome index. Specify exactly like how you would on the command line. |
Run this component
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
reference_archive: "$id.$key.reference_archive.gz"
mitochondrial_contigs: [ "chrM", "chrMT", "M", "MT" ]
id: "run"
publish_dir: "output/"
EOM
nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \
-revision v5.0.0 \
-main-script target/nextflow/reference/build_bdrhap_reference/main.nf \
-params-file params.yaml Relationships
Used by
1 relationships
Current component
reference/build_bdrhap_referenceopenpipeline v5.0.0
Uses
0 relationships
No component dependencies found.