GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ConesaLab/IsoAnnot

BranchesTags
Open more actions menu

Latest commit

 

History

214 Commits
214 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
IsoAnnot
IsoAnnot
 
 
.gitignore
.gitignore
 
 
GEMINI.md
GEMINI.md
 
 
README.md
README.md
 
 
uniprot_evaluation.py
uniprot_evaluation.py
 
 

Repository files navigation

IsoAnnot

IsoAnnot is a new tool for generating functional and structural annotation at isoform level, capable of collecting and integrating information from different databases to categorize and describe each isoform, including functional and structural information for both transcript and protein.

⚠️ IsoAnnot is in pre-release. Please download it from the releases page and report any problem in the issues.

Requirements

Computational Requirements

The computational requirements to run IsoAnnot may vary depending on the organism of interest and the size of the transcriptome you want to annotate.

Reference benchmark (Human transcriptome):

  • Transcriptome size: 252,205 isoforms
  • CPU cores: 8 cores
  • Memory: 12 GB RAM
  • Disk space: 14 GB
  • Execution time: ~20 hours

The number of cores can be modified by editing the --cores parameter in the last line of IsoAnnot/isoannot.sh (default is 8 cores).

Software Prerequisites

IsoAnnot requires the following software to be installed before use:

  1. Operating System: GNU/Linux (tested and supported)
  2. Python: Python 3 (managed automatically by conda)
  3. Conda: For dependency management
  4. Snakemake: Workflow management system (version 8; IsoAnnot is developed and tested with 8.28)

Installation Prerequisites

Installing Conda

Conda is required for automatic dependency management. IsoAnnot has been tested under GNU/Linux and is built using conda environments.

Installation steps:

  1. Download and install Miniconda or Anaconda following the official instructions:

    • Official Conda installation guide: https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html
  2. Verify conda installation:

    conda --version

Installing Snakemake

After installing conda, you need to install Snakemake. IsoAnnot includes a pre-configured environment file for this purpose.

Option 1: Using the included snakemake.yaml file (Recommended)

cd IsoAnnot
conda env create -f snakemake.yaml
conda activate snakemake

Option 2: Manual installation via conda

Follow the official Snakemake installation guide: https://snakemake.readthedocs.io/en/stable/getting_started/installation.html

conda create -n snakemake -c conda-forge -c bioconda snakemake=8
conda activate snakemake

External Software

The workflow uses different programs to generate annotations. While many dependencies are automatically installed by conda, some require manual installation:

1. UTRScan

  • Status: Currently bundled with IsoAnnot
  • Action required: None (already included)

2. InterProScan

InterProScan is used for protein domain and functional annotation.

Installation:

  1. Use the provided installation script:

    cd IsoAnnot
    ./InterproScan_install.sh
  2. Activate SignalP and TMHMM by following the installation script instructions. When prompted, include the .tar link you see in the website once you have completed the verification, not the one sent to you.

Configuration:

  • Default location: IsoAnnot/software/interproscan/
  • If installed elsewhere, create a symbolic link or modify the interproscan_path parameter in config/generic/config.yaml

Important: Do not move the IsoAnnot directory after installing InterProScan. If you must relocate it, re-run the InterProScan installation script.

3. PhosphoSitePlus Files

IsoAnnot retrieves post-translational modification information from the PhosphoSitePlus database.

  • Status: Necessary files are included in the IsoAnnot package
  • Updates: Download manually from https://www.phosphosite.org/staticDownloads if you need updated files

Installation

IsoAnnot is distributed as a compressed file containing the proper directory structure.

Installation steps:

  1. Extract the package to your desired installation folder:

    tar -xzf IsoAnnot.tar.gz
    cd IsoAnnot
  2. Ensure all prerequisites are installed (see Installation Prerequisites)

  3. Install external software (see External Software)

  4. Activate the snakemake conda environment:

    conda activate snakemake

You're now ready to run IsoAnnot!


How to Run IsoAnnot

IsoAnnot works by gathering information from multiple sources, merging them, and generating a final GFF3 annotation file.

Basic Usage

The basic command structure is:

cd IsoAnnot
./isoannot.sh --database <database_option> --species <species_name> [--config option1=value option2=value ...]

Required parameters:

  • --database: Database source (ensembl, refseq, or mytranscripts)
  • --species: Species code in lowercase (first letter of genus + species, e.g., hsapiens for Homo sapiens)

Optional parameter:

  • --outputdir: Output directory to store the results. By default, the IsoAnnot install folder (where isoannot.sh is). A relative path is taken from the folder you run isoannot.sh in.
  • --scratch: Folder on a local disk where RepeatMasker works. By default, the system's temporary folder. On a cluster, give the local disk of the compute nodes (see note 5).
  • --config: Additional configuration options (required for mytranscripts)

Supported databases:

  • ensembl - Ensembl database reference files
  • refseq - RefSeq (NCBI) database reference files
  • mytranscripts - Your own custom transcript files (e.g., from PacBio sequencing)

Both ensembl and refseq will automatically download all required files. The "mytranscripts" option is designed for custom transcript files.

Example: Ensembl Reference Annotation

To generate Homo sapiens reference annotation from Ensembl:

cd IsoAnnot
./isoannot.sh --database ensembl --species hsapiens --outputdir isoannot_results

Output location: isoannot_results/data/Hsapiens/human_tappas_ensembl_annotation_file.gff3

Example: Using Custom Transcripts

To annotate your own transcripts (e.g., from PacBio sequencing):

cd IsoAnnot
./isoannot.sh --database mytranscripts --species stuberosum --outputdir isoannot_results --config fasta_cdna=/path/to/my/fasta/potato.fasta

This example annotates potato (Solanum tuberosum) transcripts from a custom FASTA file.

Layers available for each species

Not every layer exists for every species. The table shows what the configurations shipped with IsoAnnot produce:

Layer Human, mouse Zebrafish, fruit fly Arabidopsis
Exons, junctions, NMD, UTR motifs, repeats Yes Yes Yes
Protein domains (InterProScan), GO, UniProt features Yes Yes Yes
Pathways Reactome Reactome Plant Reactome
PTMs from PhosphoSitePlus Yes No No
NLS (NucImport) Yes No No
miRNA binding sites (miRWalk) Yes No No
  • NLS and miRNA sites need the nls_model and miRWalk keys in the species configuration, which only human and mouse have.
  • PhosphoSitePlus is mostly human, mouse and rat. Other species get the PTMs that UniProt reports.
  • mytranscripts is shipped for human only. For another species, see Creating a New Config File.

Command-line Parameters

Parameter Description Required Values
--database Database source Yes ensembl, refseq, mytranscripts
--species Species identifier Yes Lowercase species code (e.g., hsapiens, mmusculus)
--outputdir Output directory No Path to directory (IsoAnnot install folder by default). A relative path is taken from the current folder
--scratch Folder RepeatMasker works in No Path to a folder on a local disk (the system's temporary folder by default). See note 5
--config Override config values Conditional* key=value pairs
--configfile Custom config file path No Path to YAML file
--snakefile Custom snakefile path No Path to Snakefile
--version Print the IsoAnnot version and exit. Every run also prints it as its first line No

*Required when using --database mytranscripts with custom files

Species code format: Write species codes in lowercase using only the first letter of the genus followed by the full species name. Examples:

  • Homo sapiens → hsapiens
  • Mus musculus → mmusculus
  • Drosophila melanogaster → dmelanogaster
  • Solanum tuberosum → stuberosum

Configuration Files

Configuration files control how IsoAnnot processes data for each species and database combination. Snakemake configuration files in IsoAnnot use the YAML file format and are organized on a per-species basis.

Where to Find Config Files

Configuration files are organized in a hierarchical directory structure:

IsoAnnot/config/
├── ensembl/
│   ├── hsapiens/
│   │   ├── config.yaml
│   │   └── Snakefile.smk
│   ├── mmusculus/
│   │   ├── config.yaml
│   │   └── Snakefile.smk
│   └── ...
├── refseq/
│   ├── hsapiens/
│   │   ├── config.yaml
│   │   └── Snakefile.smk
│   └── ...
├── mytranscripts/
│   ├── hsapiens/
│   │   ├── config.yaml
│   │   └── Snakefile.smk
│   └── ...
└── generic/
    ├── config.yaml          # Generic settings
    ├── Snakefile.smk        # Main workflow
    ├── Snakefile_ensembl.smk
    ├── Snakefile_refseq.smk
    └── Snakefile_mytranscripts.smk

Path structure: config/<database>/<species>/config.yaml

Examples:

  • Human Ensembl: config/ensembl/hsapiens/config.yaml
  • Mouse RefSeq: config/refseq/mmusculus/config.yaml
  • Custom human transcripts: config/mytranscripts/hsapiens/config.yaml

How to Modify Config Files

To modify an existing configuration:

  1. Navigate to the config file:

    cd IsoAnnot/config/<database>/<species>/
    nano config.yaml
  2. Edit parameters as needed (see Configuration Parameters Explained)

  3. Save the file

  4. Run IsoAnnot with the updated configuration:

    cd IsoAnnot
    ./isoannot.sh --database <database> --species <species>

Common modifications:

  • Update database URLs to newer releases
  • Change file paths for custom data
  • Adjust species-specific parameters
  • Modify the transcript_versioned flag

Generic Configuration

The generic configuration file (config/generic/config.yaml) contains global settings used across all species:

interproscan_path: "software/interproscan/interproscan.sh"
pfam_clan_url: ftp://ftp.ebi.ac.uk/pub/databases/Pfam/current_release/Pfam-A.clans.tsv.gz
pfam_clan_desc_url: https://ftp.ebi.ac.uk/pub/databases/Pfam/current_release/Pfam-C.gz
dir_sqanti: "scripts/sqanti3/"
nls_chunks: 50
nls_java_memory: 2g
nls_cache: True

Key parameters:

  • interproscan_path: Path to InterProScan executable
  • pfam_clan_url: URL of the Pfam family-to-clan table
  • pfam_clan_desc_url: URL of Pfam's clan file (Pfam-C), which gives the clan names and descriptions written in the clan lines of the GFF3
  • dir_sqanti: Directory containing SQANTI3 scripts
  • nls_chunks: Number of chunks the proteins are split into for NucImport. The chunks run in parallel.
  • nls_java_memory: Maximum Java heap of each NucImport run (-Xmx). NucImport needs 2g. Each chunk is a separate Java process, so plan for this amount times the number of cores.
  • nls_cache: Reuse NucImport results from earlier runs (True by default). NucImport is the longest step of a run (about 5 days for human Ensembl on 32 cores), and its result depends only on the protein sequence. Each run adds its new results to <outputdir>/data/global/nucimport_cache/, and later runs in the same output folder only predict the sequences that are not there yet: another Ensembl release, the RefSeq proteins, or mytranscripts ORFs identical to a reference protein. The store files can be copied to another output folder's data/global/nucimport_cache/ to share them. A result is only reused with the same nls_model and the same NucImport jar. Set nls_cache=False to predict every protein.

Creating a New Config File

To enable IsoAnnot for a new species, you need to create configuration files with links to all required data sources.

Step-by-Step Guide

  1. Choose a template: Use an existing species config as a starting point

    cd IsoAnnot/config/<database>/
    mkdir <new_species>
    cp hsapiens/config.yaml <new_species>/
    cp hsapiens/Snakefile.smk <new_species>/
  2. Find required files: Browse the appropriate database FTP site to locate files for your species:

    • Ensembl: https://ftp.ensembl.org/pub/ (or https://ftp.ensemblgenomes.org/ for non-vertebrates)
    • RefSeq: https://ftp.ncbi.nlm.nih.gov/genomes/refseq/
  3. Edit the config file: Update all species-specific parameters (see template below)

  4. Verify the configuration: Check that all URLs are valid and accessible

  5. Test the configuration: Run IsoAnnot with the new configuration

Config File Template

Here's a complete template for creating a new species configuration. The example below shows the config file format for Homo sapiens (human) using Ensembl, which is located in config/ensembl/hsapiens/config.yaml:

species:  Homo sapiens
species_name: human

biomart_host: e108.ensembl.org
biomart_dataset: hsapiens_gene_ensembl

ensembl_cdna: ftp://ftp.ensembl.org/pub/release-108/fasta/homo_sapiens/cdna/Homo_sapiens.GRCh38.cdna.all.fa.gz
ensembl_proteins: ftp://ftp.ensembl.org/pub/release-108/fasta/homo_sapiens/pep/Homo_sapiens.GRCh38.pep.all.fa.gz
ensembl_gtf:  ftp://ftp.ensembl.org/pub/release-108/gtf/homo_sapiens/Homo_sapiens.GRCh38.108.chr.gtf.gz
ensembl_reference: ftp://ftp.ensembl.org/pub/release-108/fasta/homo_sapiens/dna/Homo_sapiens.GRCh38.dna.primary_assembly.fa.gz 

prefix: Hsapiens
db: ensembl
transcript_versioned: False

refseq_protein_dir: ftp://ftp.ncbi.nlm.nih.gov/refseq/H_sapiens/mRNA_Prot/
refseq_protein_fasta: ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/vertebrate_mammalian/Homo_sapiens/all_assembly_versions/GCF_000001405.40_GRCh38.p14/GCF_000001405.40_GRCh38.p14_protein.faa.gz
refseq_gtf: ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/vertebrate_mammalian/Homo_sapiens/all_assembly_versions/GCF_000001405.40_GRCh38.p14/GCF_000001405.40_GRCh38.p14_genomic.gtf.gz
refseq_chr_accessions: ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/vertebrate_mammalian/Homo_sapiens/all_assembly_versions/GCF_000001405.40_GRCh38.p14/GCF_000001405.40_GRCh38.p14_assembly_structure/Primary_Assembly/assembled_chromosomes/chr2acc

uniprot_fasta:
  - ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/reference_proteomes/Eukaryota/UP000005640/UP000005640_9606.fasta.gz
  - ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/reference_proteomes/Eukaryota/UP000005640/UP000005640_9606_additional.fasta.gz

uniprot_dat:
  - ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/reference_proteomes/Eukaryota/UP000005640/UP000005640_9606.dat.gz
  - ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/reference_proteomes/Eukaryota/UP000005640/UP000005640_9606_additional.dat.gz

reactome: https://reactome.org/download/current/Ensembl2Reactome_All_Levels.txt

For a conventional species having all the required files in both RefSeq and Ensembl databases, the procedure should be as easy as changing human references and links to the other organism. You would need to:

  1. Modify the prefix, scientific name, common name
  2. Browse the RefSeq/Ensembl FTP sites to find the correct URLs for each required file
  3. Update the BioMart dataset identifier

Here's another example for Solanum tuberosum (potato):

species: Solanum tuberosum
species_name: potato

biomart_host: plants.ensembl.org
biomart_dataset: stuberosum_eg_gene

ensembl_cdna: ftp://ftp.ensemblgenomes.org/pub/release-45/plants/fasta/solanum_tuberosum/cdna/Solanum_tuberosum.Assembly.cdna.all.fa.gz
ensembl_proteins: ftp://ftp.ensemblgenomes.org/pub/release-45/plants/fasta/solanum_tuberosum/pep/Solanum_tuberosum.Assembly.pep.all.fa.gz
ensembl_gtf: ftp://ftp.ensemblgenomes.org/pub/release-45/plants/gtf/solanum_tuberosum/Solanum_tuberosum.Assembly.45.gtf.gz
ensembl_reference: ftp://ftp.ensemblgenomes.org/pub/release-45/plants/fasta/solanum_tuberosum/dna/Solanum_tuberosum.Assembly.dna.toplevel.fa.gz

prefix: Stuberosum
db: ensembl
transcript_versioned: True

refseq_protein_dir: ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/plant/Solanum_tuberosum/latest_assembly_versions/GCF_000226075.1_SolTub_3.0/
refseq_protein_fasta: ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/plant/Solanum_tuberosum/latest_assembly_versions/GCF_000226075.1_SolTub_3.0/GCF_000226075.1_SolTub_3.0_protein.faa.gz
refseq_chr_accessions: ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/plant/Solanum_tuberosum/latest_assembly_versions/GCF_000226075.1_SolTub_3.0/GCF_000226075.1_SolTub_3.0_assembly_structure/Primary_Assembly/scaffold_localID2acc
refseq_gtf: ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/plant/Solanum_tuberosum/latest_assembly_versions/GCF_000226075.1_SolTub_3.0/GCF_000226075.1_SolTub_3.0_genomic.gtf.gz

uniprot_fasta:
  - ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/reference_proteomes/Eukaryota/UP000011115/UP000011115_4113.fasta.gz
  - ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/reference_proteomes/Eukaryota/UP000011115/UP000011115_4113_additional.fasta.gz

uniprot_dat:
  - ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/reference_proteomes/Eukaryota/UP000011115/UP000011115_4113.dat.gz
  - ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/reference_proteomes/Eukaryota/UP000011115/UP000011115_4113_additional.dat.gz

reactome: https://plantreactome.gramene.org/download/current/Ensembl2PlantReactome_All_Levels.txt

Configuration Parameters Explained

Parameter Description Example
species Full scientific name Homo sapiens
species_name Common name (lowercase) human
biomart_host BioMart host of the Ensembl release of your files (see note 6) e115.ensembl.org
biomart_dataset BioMart dataset identifier hsapiens_gene_ensembl
ensembl_cdna Ensembl cDNA FASTA file URL URL to .fa.gz file
ensembl_proteins Ensembl protein FASTA file URL URL to .fa.gz file
ensembl_gtf Ensembl GTF annotation file URL URL to .gtf.gz file
ensembl_reference Ensembl reference genome URL URL to .fa.gz file
prefix Output directory prefix (capitalized) Hsapiens
db Database type ensembl, refseq, or mytranscripts
transcript_versioned Whether transcripts have version numbers True or False
refseq_protein_dir RefSeq protein directory URL FTP directory URL
refseq_protein_fasta RefSeq protein FASTA URL URL to .faa.gz file
refseq_chr_accessions RefSeq chromosome accessions file URL to accession mapping file
refseq_gtf RefSeq GTF annotation file URL URL to .gtf.gz file
uniprot_fasta UniProt FASTA file URLs (list) List of URLs
uniprot_dat UniProt DAT file URLs (list) List of URLs
reactome Reactome pathway mapping file URL URL or pathway-specific URL; no to skip the layer
layer_go Include Gene Ontology layer si, yes or true to include; no, false or omit to skip
ptm_both_sources Write a modification reported by both Swiss-Prot and PhosphoSitePlus once for each source False by default: one row, with Swiss-Prot as the source
utrscan_noncoding Write the UTRscan motifs of transcripts without a CDS, as ncRNAmotif (see note 10) True by default; False leaves them out
repeat_masker Include the RepeatMasker layer True by default; False to leave it out (see note 5)
repeatmasker_dfam Dfam repeat families RepeatMasker searches curated (default) or all for curated and uncurated (see note 5)
biomart_table BioMart table saved before, read by the GO and Reactome layers instead of downloading it (optional, see note 6) /abs/path/hsapiens_e115_biomart.tsv
mirna_regions_to_use Regions of each isoform where miRNA binding sites are kept (see note 8); an empty list skips the miRNA layer ["3UTR", "noncoding"] by default; also 5UTR, CDS
mirna_mirbase_set miRNAs whose sites are kept high_confidence (default) or all
mirna_site_types Seed match types kept canonical (default), canonical_6mer or all
mirna_db_evidence_score_threshold Minimum miRWalk binding probability 0.95

Important notes:

  1. transcript_versioned: Set to True if:

    • Using RefSeq database
    • Using mytranscripts mode
    • Annotating plants (EnsemblPlants)
  2. ensembl_reference:

    • Try *dna.primary_assembly.fa.gz first
    • If not available, use *dna.toplevel.fa.gz
  3. Finding UniProt proteome IDs:

    • Search for your species at https://www.uniprot.org/proteomes
    • Look for "reference proteome" entries
    • Use the proteome ID in the URLs (e.g., UP000005640 for human)
  4. Reactome URLs:

    • Animals: https://reactome.org/download/current/Ensembl2Reactome_All_Levels.txt
    • Plants: https://plantreactome.gramene.org/download/current/Ensembl2PlantReactome_All_Levels.txt
  5. RepeatMasker:

    • It is on by default. Add repeat_masker=False to --config to leave it out.
    • IsoAnnot installs RepeatMasker 4.2.6 from its GitHub release and downloads the Dfam 4.0 library, both into {outputdir}/data/global/. The curated families (the default) are a 90 MB download and take 600 MB on disk. repeatmasker_dfam=all adds the uncurated ones: a 4.2 GB download (about 40 minutes on our cluster) that takes 25 GB on disk.
    • RepeatMasker writes thousands of small temporary files, which can block a network filesystem (Ceph, NFS, Lustre...) for every user of a cluster. So it works in a folder of its own on a local disk, and only its result is copied to the output folder. The folder is made in the system's temporary folder ($TMPDIR, or /tmp), or in the folder you give with --scratch, and it is removed when RepeatMasker ends. If that folder is on a network filesystem, the run stops before RepeatMasker starts. ⚠️Warning: on a cluster, give the local disk of the compute nodes, for example --scratch /scr_local/$USER, and never a folder of your home or of the shared storage.
    • Curated families cover human, mouse and zebrafish well (about 1,400 to 2,000 each) but plants hardly at all: Dfam 4.0 has only 9 curated families for Arabidopsis thaliana, and 503 uncurated ones. For plants use repeatmasker_dfam=all.
  6. BioMart (biomart_host and biomart_table): the GO and Reactome layers take gene names and GO terms from Ensembl BioMart. IsoAnnot downloads them once per output folder, into data/<Prefix>/config/biomart/, and both layers read that table.

    • biomart_host has to be the BioMart of the Ensembl release of your files, because www.ensembl.org always serves the newest release. Ensembl has one host per release: e115.ensembl.org for release 115, and eg62-plants.ensembl.org for Ensembl Plants 62. It can be written with or without https://.
    • If the release of biomart_host is not the release in the ensembl_gtf URL, the run goes on and shows a warning. Ensembl does not keep an archive of every old release, above all for plants: in that case use plants.ensembl.org or www.ensembl.org, and expect the warning.
    • To run without internet, or when BioMart is down, save the table once and give it with biomart_table (absolute path). Nothing is downloaded then:
    cd IsoAnnot/scripts
    ./save_biomart_tables.py --biomart_host e115.ensembl.org \
        --biomart_dataset hsapiens_gene_ensembl --output /abs/path/hsapiens_e115_biomart.tsv

    Run it in the isoannotpy environment.

  7. RefSeq transcript sequences: in refseq mode, UTRScan, RepeatMasker and the miRNA layer read the RefSeq transcripts spliced from the genome (ensembl_reference) with the exons of refseq_gtf, not NCBI's rna.fna. Some rna.fna sequences differ from the genome (a poly(A) tail, or bases the genome does not have), and their positions did not match the exons of the GFF3. The positions now match, but differences of the RefSeq mRNA from the genome are not annotated. The refseq_cdna key is no longer used.

  8. miRNA binding sites (human and mouse): the sites come from miRWalk 3 predictions and are placed on every isoform whose sequence contains them.

    • Seed match type. A miRNA finds its targets mainly through its seed, nucleotides 2–8. IsoAnnot classifies each site from the miRWalk duplex, following TargetScan: 8mer (seed 2–8 paired and an A opposite position 1), 7mer-m8 (2–8), 7mer-A1 (2–7 and the A), 6mer (2–7), offset-6mer (3–8), seed-GU (seed paired only with G:U wobbles) and noncanonical. About 63% of the miRWalk sites are non-canonical; such sites bind Argonaute but have little effect on target levels (Agarwal et al. 2015, eLife 4:e05005). By default only 8mer and 7mer sites are kept (mirna_site_types: canonical); canonical_6mer adds the 6mers and all keeps every site. For human, the default keeps about 8% of the sites.
    • miRNAs. high_confidence keeps the miRBase high-confidence miRNAs (814 in human), all every miRBase miRNA with experimental evidence (2,482 in human).
    • Region. The region is computed for each isoform from its own CDS: 5UTR, CDS (a site that touches the CDS), 3UTR, or noncoding for isoforms without a CDS. Sites in the CDS and the 5′UTR are much less effective than 3′UTR sites, because ribosomes displace the miRNA complex. One miRWalk file is downloaded for each of 3UTR, 5UTR and CDS in the list (3′UTR only by default, 6.8 GB for human). Sites on non-coding isoforms come from the downloaded files.
    • In the GFF3, each site has feature miRNA_8mer, miRNA_7mer, miRNA_6mer or miRNA_noncanonical, so the classes can be selected separately in tappAS, and Desc=<region>_<type>, e.g. ID=hsa-miR-21-5p; Desc=3UTR_7mer-A1.
  9. Nonsense-mediated decay (NMD): a coding isoform gets the NMD feature when its stop codon is more than 50 nt before the last exon-exon junction (the 50 nt rule, the same limit as predicted_NMD of SQANTI3), in the three modes. The distance is measured on the spliced transcript. SQANTI3 measures it on the genome, which also counts the introns between the stop codon and the last junction, so an isoform whose stop lies two or more exons before the last one is always a predicted target there. IsoAnnot does not follow it in that case, because the NMD feature is read as biology in tappAS: in human, 141 Ensembl and 99 RefSeq transcripts are not NMD targets on the spliced transcript, the main transcript of NRAS among them (its stop codon is 43 nt before the last junction on the transcript and more than 380 nt on the genome). For a long-read isoform, the NMD feature can therefore differ from the predicted_NMD column of its SQANTI3 classification.

  10. UTR motifs (UTRscan): UTRscan searches the 59 motifs of UTRsite along each whole transcript, and its catalogue (software/bin/UtrSite.Command) says in which UTR each motif acts. IsoAnnot keeps a motif only there: an upstream ORF, an IRES or a TOP tract in the 5′UTR (uORF, 5UTRmotif), a polyadenylation signal or a Musashi element in the 3′UTR (PAS, 3UTRmotif), and the few motifs defined for both in either. A short ORF found after the CDS is therefore not reported as an upstream ORF. Transcripts without a CDS have no UTR: their motifs are written as ncRNAmotif (PAS for the polyadenylation signal), without the 5′UTR motifs, which act on the translation of a CDS. utrscan_noncoding: False leaves them out. The catalogue also gives the group of organisms of each motif, which IsoAnnot does not use yet, so a human annotation still has some motifs described in insects.


Output

Output Structure

IsoAnnot generates its output in a structured directory hierarchy within the directory supplied by the user. In case none is given, it will use the running directory by default. The structure of <output_dir>/data/ folder is as follows:

<output_dir>/data/
└── <Prefix>/                                    # e.g., Hsapiens/
    ├── <species_name>_tappas_<db>_annotation_file.gff3     # Main output
    ├── <species_name>_tappas_<db>_annotation_file.gff3_mod # Modified GFF3
    ├── config/                                  # Downloaded config files
    │   ├── ensembl/
    │   ├── refseq/
    │   └── global/
    ├── output/
    │   └── <db>/                               # Database-specific outputs
    │       ├── layers/                         # Annotation layers
    │       │   ├── go.gtf
    │       │   ├── interpro.gtf
    │       │   ├── reactome.gtf
    │       │   └── ...
    │       ├── transcripts/                    # Transcript files
    │       ├── proteins/                       # Protein sequences
    │       └── ...
    └── tmp/                                    # Temporary processing files

Directory naming:

  • <Prefix>: Capitalized species prefix from config (e.g., Hsapiens, Mmusculus, Stuberosum)
  • <species_name>: Lowercase common name from config (e.g., human, mouse, potato)
  • <db>: Database used (e.g., ensembl, refseq, mytranscripts)

Main Output Files

Primary Annotation File

File: <species_name>_tappas_<db>_annotation_file.gff3

This is the main output file containing comprehensive isoform-level annotations.

Example: human_tappas_ensembl_annotation_file.gff3

Location: IsoAnnot/data/<Prefix>/

Content: GFF3-formatted annotation with:

  • Gene and transcript structures
  • Protein-coding predictions
  • Functional annotations from multiple databases
  • Structural features
  • Post-translational modifications

Modified Annotation File

File: <species_name>_tappas_<db>_annotation_file.gff3_mod

A modified version of the main GFF3 file optimized for downstream analysis tools.

Understanding the GFF3 Annotation File

The output GFF3 file integrates information from multiple sources:

Structural information:

  • Gene and transcript coordinates
  • Exon/intron structure
  • CDS (coding sequence) regions
  • UTR regions (5' and 3')

Functional annotations (in attributes column):

  • Gene Ontology (GO): Biological process, molecular function, cellular component
  • InterPro: Protein domains, families, and functional sites
  • Pfam: Protein family classifications
  • Reactome: Pathway associations
  • UniProt: Protein function descriptions

Post-translational modifications:

  • Phosphorylation sites
  • Other PTMs from PhosphoSitePlus

Protein IDs: the CDS and protein lines of a coding transcript have the same attributes, for example ID=Q9HBE1-4; Desc=ENSP00000215919.

  • ID is one identifier of the protein sequence of the transcript. IsoAnnot looks for proteins with exactly the same sequence and picks SwissProt first, then TrEMBL, then Ensembl (ensembl mode) or RefSeq (refseq mode). In mytranscripts mode, Ensembl comes before RefSeq.
  • Desc lists the other identifiers of that sequence, separated by commas. It is left out when there are none.
  • All transcripts that encode the same protein get the same ID and Desc, so tappAS treats them as one protein.
  • When the reference protein is not found in parsed_databases.json, ID is the reference protein of the transcript (ensembl and refseq modes). In mytranscripts mode, an ORF with no protein of the same sequence in parsed_databases.json gets Protein_<isoform>.
  • Ensembl and RefSeq IDs found through the sequence are written without their version (NP_000005), as in parsed_databases.json. The reference protein used when there is no match is written as in the classification file, so in refseq mode it keeps its version (NP_000005.3). In Ensembl Plants, where protein IDs are transcript IDs, an ID without version looks like the gene ID (AT1G01020).

The lines of each transcript start with its transcript line, followed by the transcript, genomic and protein features, as in the legacy tappAS files. tappAS needs the transcript line first in each block.

Example lines of a .gff3_mod file, for one transcript of the small test dataset (some exon and junction lines left out). The columns are tab-separated: seqid, source, feature, start, end, score, strand, phase and attributes. The .gff3 file has the same lines without PosType.

ENST00000000001	tappAS	transcript	1	750	.	+	.	ID=ENST00000000001; primary_class=protein_coding; PosType=T
ENST00000000001	tappAS	gene	1	750	.	+	.	ID=SYNA; Name=SYNA; PosType=T
ENST00000000001	tappAS	CDS	101	550	.	+	.	ID=P0SYA1; Desc=ENSP00000000001; PosType=T
ENST00000000001	tappAS	genomic	1	1	.	+	.	Chr=chr1; PosType=G
ENST00000000001	tappAS	exon	1001	1200	.	+	.	Chr=chr1; PosType=G
ENST00000000001	tappAS	splice_junction	1201	2000	.	+	.	ID=known_canonical; Chr=chr1; PosType=G
ENST00000000001	tappAS	protein	1	150	.	+	.	ID=P0SYA1; Desc=ENSP00000000001; PosType=P
ENST00000000001	GeneOntology	C	.	.	.	.	.	ID=GO:0005737; Name=cytoplasm; PosType=N

Using the output:

  • Import into genome browsers (IGV, UCSC Genome Browser)
  • Use with tappAS for isoform-level functional analysis
  • Parse programmatically for custom analyses
  • Filter by specific annotation types

Working with Snakemake

IsoAnnot uses Snakemake for workflow management. Here are common Snakemake operations:

Unlocking the Working Directory

If you delete or edit files in IsoAnnot/data/, Snakemake may lock the directory. To unlock:

  1. Edit IsoAnnot/isoannot.sh and add --unlock to the last line:

    exec snakemake ... --unlock
  2. Run the pipeline:

    ./isoannot.sh --database <db> --species <species>
  3. Remove --unlock from isoannot.sh

  4. Run the pipeline normally

Resuming Interrupted Runs

If execution stops, IsoAnnot will automatically resume from the last completed step on the next run. Completed steps are not re-executed.

Dry Run (Preview)

To see which steps will be executed without running them:

  1. Edit the last line of IsoAnnot/isoannot.sh and add -n:

    exec snakemake ... -n
  2. Run the pipeline

  3. Remove -n to execute normally

Force Re-run

To force IsoAnnot to re-execute all steps:

  1. Edit the last line of IsoAnnot/isoannot.sh and add -F:

    exec snakemake ... -F
  2. Run the pipeline

  3. Remove -F for subsequent runs

Adjusting CPU Cores

To change the number of CPU cores used:

  1. Edit the last line of IsoAnnot/isoannot.sh
  2. Modify the --cores parameter (default is 8):
    exec snakemake ... --cores 16  # Use 16 cores

Common Snakemake Options

Add these to the last line of isoannot.sh after the existing parameters:

Option Description
-n or --dry-run Show what would be done without executing
-F or --force Force re-execution of all steps
--unlock Unlock the working directory
--cores N Use N CPU cores
-p Print shell commands (already included)
--rerun-incomplete Re-run incomplete jobs (already included)

Troubleshooting

Problem: "The snakefile or configfile requested do not exist"

  • Solution: Ensure config files exist for your species at config/<database>/<species>/

Problem: InterProScan not found

  • Solution: Run ./InterproScan_install.sh or verify interproscan_path in config/generic/config.yaml

Problem: Out of memory errors

  • Solution: Increase available RAM or reduce the number of cores used

Problem: Download errors for database files

  • Solution: Check internet connection and verify URLs in config file are current

Problem: Snakemake directory locked

  • Solution: Use --unlock option (see Unlocking the Working Directory)

Citation

If you use IsoAnnot in your research, please cite:

[Citation information to be added]


Support

For issues, questions, or contributions:

  • GitHub Issues: https://github.com/ConesaLab/IsoAnnot/issues
  • Documentation: This README

License

[License information to be added]

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

11 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.