splicejunxchx


Namesplicejunxchx JSON
Version 2.9 PyPI version JSON
download
home_pagehttps://github.com/ayushkumar-umms/splice-junction-characterization
Summarycharacterize the splice junctions outputted by SJ.out.tab file
upload_time2025-02-11 21:09:14
maintainerNone
docs_urlNone
authorAyush Kumar
requires_python>=3.6
licenseMIT
keywords splicing
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# splicejunxchx

Splicejunxchx is a Python pipeline that takes splice junctions outputed by STAR (SJ.out.tab) and a GTF file to characterize the 5' and 3' splice
sites of a splice junction.

The pipeline includes the following capabilities:
- Determine if 5'/3' end is in a gene, transcript, exon, intron, 5'UTR, CDS, 3'UTR, start codon, or stop codon
- Determine if 5'/3' splice site (ss) is in a constitutive exon or intron
- Determine if 5'/3' end is annotated based on information in the GTF file
- Find closest ss upstream and downstream from the 5' and 3' ss  of the analyzed junction

Additional capabilities with required dependencies:
- The 51 bases centered around each splice site (needs bedtools)
- The 2 bases of the 5'/3' ss (bedtools)
- maxEnt score (need to download maxEnt perl files)
- A phyloP score over an average N nulceotides around each splice site(bigWigtoBedGraph)


## Installation

First, you must have python3.6>=, pandas0.23.4>=, and gtf2csv (see below)

```bash
pip install git+https://github.com/zyxue/gtf2csv.git#egg=gtf2csv
```

Look at the following websites to get: bedtools, bigWigToBedGraph, and maxEnt sccores:
- [bedtools](https://bedtools.readthedocs.io/en/latest/content/installation.html)
- [bigWigToBedGraph](http://hgdownload.cse.ucsc.edu/admin/exe/)
- For [maxEnt](http://hollywood.mit.edu/burgelab/maxent/download/), make sure you download fordownload.tar.gz and put score5.pl, score3.pl, me2x5, and the directory splicemodels in the root where you plan to run splicejunxchx

Now, install splicejunxchx using:

```bash
pip install splicejunxchx
```

## Usage

One suggestion is to ensure there is a 'data' directory in whichever root directory you plan to utilize this code. The data directory will store some temp files that include: Two CSV file of all the splice junctions and constitutive exons based on the GTF File 

The following is the full usage possibilities that can be added with splicejunxchx

```bash
splicejunxchx -h [-seqs SEQUENCE_FILE] [-supp SUPPORT_FILES SUPPORT_FILES] [-phyloP PHYLOPSCORES PHYLOPSCORES] [-maxEnt] inputs inputs output_file
```

There are several ways to utilize this pipeline. First, the basic way is to input the gtf.gz file and the SJ.out.tab file and name the output file. This will output the splice junctions with basic information regarding where each splice site lies according to the GTF and where the other closest splice sites are located. To run this command:

```bash
splicejunxchx raw_data/Homo_sapiens.GRCh38.95.gtf.gz raw_data/ERR152SJ.out.tab output/final_splice_junc.csv
```

If you are interested in adding sequence information, you must have bedtools installed (with getfasta function) and then add the .fa file after -seq:

```bash
splicejunxchx raw_data/Homo_sapiens.GRCh38.95.gtf.gz raw_data/ERR152SJ.out.tab output/final_splice_junc.csv -seq data/Homo_sapiens.GRCh38.95.fa 
```

In some cases, to increase speed and time, support files for reported splice junctions and constitutive exons can be provided to splicejunxchx if available.
- Reported splice junctions file must be csv with the following columns: [seqname,start,end,strand]
- Reported splice junctions file must be csv with the following columns: [seqname,start,end,strand,exon_id,gene_id]
- The pipeline generates these aforementioned files on the first run if you want to utilize the same GTF file but have differing splice junctions on the second run

```bash
splicejunxchx raw_data/Homo_sapiens.GRCh38.95.gtf.gz raw_data/ERR152SJ.out.tab output/final_splice_junc.csv -supp data/all_splice_junctions.csv data/cons_exons.csv
```

If you want to include maxEnt score include score5.pl, score3.pl, me2x5, and the directory splicemodels in the root where you plan to run splicejunxchx. Also add the -maxEnt flag

Lastly, to incorporate phyloP score, the input for this tag requires the phyloPscore file as a bigWig (.bw) and the second input as the number of nucleotides of individual phyloP scores requested around each splice site. This number cannot be more than 200 and must be an even number. 

```bash
splicejunxchx raw/Homo_sapiens.GRCh38.95.gtf.gz raw_data/ERR152SJ.out.tab output/final_splice_junc.csv -phyloP data/hg38.phyloP.bw 20
```


## Notes

### General notes about needed files and output structure

Make sure that the GTF File provided does not list out intron locations. This pipeline assumes that the only features present in the GTF File are: gene, transcript, exon, five_prime_utr, CDS, three_prime_utr, start codon, stop codon, and Selenocysteine

For splice junctions that have a unidentified strand (strand = 0), the pipeline create two copies of that splice junction and changes the strand=1 for one junction and the other to strand=2
- EX: If JNC92 has a strand of 0
    - The pipeline creates two junctions called JNC92.1 (strand =1) and JNC92.2 (strand=2)
- To find the splice junctions that are strand=0, search for the junctions that have a 'unidentified_strand' columns set to the value of 1 

### Columns in Output File 

The following columns are provided with more detail:

- Motif:[0: non-canonical; 1: GT/AG, 2: CT/AC, 3: GC/AG, 4: CT/GC, 5:AT/AC, 6: GT/AT]
- STAR_annotation: Both 5' and 3' splice site are annotated as one splice junction according to STAR
- Unidentified_strand: splice junction originally was undefined (Strand = 0), but this junction has been developed with assumption of being on positive or negative strand (see 'strand' column for assumption)
- 5'_in_constitutiveexon: Name of gene followed by the coordinates, else NA
- 5'_in_constitutiveintron: Name of gene followed by the coordinates, else NA
- 5'_in_CDS: If the 5' end is in a coding sequence region
- 5'phyloPscore: Average score over N nucleotides of each splice site
- 5'phylopList: List of phyloP values starting from lowest coordinate to highest coordinate
- 5'bases_maxEnt and 3'bases_maxEnt: the sequence needed to run a maxEnt score
- Similar logic is present in 3' regions 


## Acknowledgments
- Athma Pai and Eraj Khokhar for guidance and support
- Zyxue for gtf2csv: https://github.com/zyxue/gtf2csv
- Yeo G and Burge C.B., Maximum Entropy Modeling of Short Sequence Motifs with Applications to RNA Splicing Signals, RECOMB 2003 (Journal Comp. Bio in press)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ayushkumar-umms/splice-junction-characterization",
    "name": "splicejunxchx",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "splicing",
    "author": "Ayush Kumar",
    "author_email": "ayush.kumar@umassmed.edu",
    "download_url": "https://files.pythonhosted.org/packages/e2/28/bb01f323fa1dba4d3f97d4f8f0f84992868cb61ce22b27d5e349e21574ff/splicejunxchx-2.9.tar.gz",
    "platform": null,
    "description": "\n# splicejunxchx\n\nSplicejunxchx is a Python pipeline that takes splice junctions outputed by STAR (SJ.out.tab) and a GTF file to characterize the 5' and 3' splice\nsites of a splice junction.\n\nThe pipeline includes the following capabilities:\n- Determine if 5'/3' end is in a gene, transcript, exon, intron, 5'UTR, CDS, 3'UTR, start codon, or stop codon\n- Determine if 5'/3' splice site (ss) is in a constitutive exon or intron\n- Determine if 5'/3' end is annotated based on information in the GTF file\n- Find closest ss upstream and downstream from the 5' and 3' ss  of the analyzed junction\n\nAdditional capabilities with required dependencies:\n- The 51 bases centered around each splice site (needs bedtools)\n- The 2 bases of the 5'/3' ss (bedtools)\n- maxEnt score (need to download maxEnt perl files)\n- A phyloP score over an average N nulceotides around each splice site(bigWigtoBedGraph)\n\n\n## Installation\n\nFirst, you must have python3.6>=, pandas0.23.4>=, and gtf2csv (see below)\n\n```bash\npip install git+https://github.com/zyxue/gtf2csv.git#egg=gtf2csv\n```\n\nLook at the following websites to get: bedtools, bigWigToBedGraph, and maxEnt sccores:\n- [bedtools](https://bedtools.readthedocs.io/en/latest/content/installation.html)\n- [bigWigToBedGraph](http://hgdownload.cse.ucsc.edu/admin/exe/)\n- For [maxEnt](http://hollywood.mit.edu/burgelab/maxent/download/), make sure you download fordownload.tar.gz and put score5.pl, score3.pl, me2x5, and the directory splicemodels in the root where you plan to run splicejunxchx\n\nNow, install splicejunxchx using:\n\n```bash\npip install splicejunxchx\n```\n\n## Usage\n\nOne suggestion is to ensure there is a 'data' directory in whichever root directory you plan to utilize this code. The data directory will store some temp files that include: Two CSV file of all the splice junctions and constitutive exons based on the GTF File \n\nThe following is the full usage possibilities that can be added with splicejunxchx\n\n```bash\nsplicejunxchx -h [-seqs SEQUENCE_FILE] [-supp SUPPORT_FILES SUPPORT_FILES] [-phyloP PHYLOPSCORES PHYLOPSCORES] [-maxEnt] inputs inputs output_file\n```\n\nThere are several ways to utilize this pipeline. First, the basic way is to input the gtf.gz file and the SJ.out.tab file and name the output file. This will output the splice junctions with basic information regarding where each splice site lies according to the GTF and where the other closest splice sites are located. To run this command:\n\n```bash\nsplicejunxchx raw_data/Homo_sapiens.GRCh38.95.gtf.gz raw_data/ERR152SJ.out.tab output/final_splice_junc.csv\n```\n\nIf you are interested in adding sequence information, you must have bedtools installed (with getfasta function) and then add the .fa file after -seq:\n\n```bash\nsplicejunxchx raw_data/Homo_sapiens.GRCh38.95.gtf.gz raw_data/ERR152SJ.out.tab output/final_splice_junc.csv -seq data/Homo_sapiens.GRCh38.95.fa \n```\n\nIn some cases, to increase speed and time, support files for reported splice junctions and constitutive exons can be provided to splicejunxchx if available.\n- Reported splice junctions file must be csv with the following columns: [seqname,start,end,strand]\n- Reported splice junctions file must be csv with the following columns: [seqname,start,end,strand,exon_id,gene_id]\n- The pipeline generates these aforementioned files on the first run if you want to utilize the same GTF file but have differing splice junctions on the second run\n\n```bash\nsplicejunxchx raw_data/Homo_sapiens.GRCh38.95.gtf.gz raw_data/ERR152SJ.out.tab output/final_splice_junc.csv -supp data/all_splice_junctions.csv data/cons_exons.csv\n```\n\nIf you want to include maxEnt score include score5.pl, score3.pl, me2x5, and the directory splicemodels in the root where you plan to run splicejunxchx. Also add the -maxEnt flag\n\nLastly, to incorporate phyloP score, the input for this tag requires the phyloPscore file as a bigWig (.bw) and the second input as the number of nucleotides of individual phyloP scores requested around each splice site. This number cannot be more than 200 and must be an even number. \n\n```bash\nsplicejunxchx raw/Homo_sapiens.GRCh38.95.gtf.gz raw_data/ERR152SJ.out.tab output/final_splice_junc.csv -phyloP data/hg38.phyloP.bw 20\n```\n\n\n## Notes\n\n### General notes about needed files and output structure\n\nMake sure that the GTF File provided does not list out intron locations. This pipeline assumes that the only features present in the GTF File are: gene, transcript, exon, five_prime_utr, CDS, three_prime_utr, start codon, stop codon, and Selenocysteine\n\nFor splice junctions that have a unidentified strand (strand = 0), the pipeline create two copies of that splice junction and changes the strand=1 for one junction and the other to strand=2\n- EX: If JNC92 has a strand of 0\n    - The pipeline creates two junctions called JNC92.1 (strand =1) and JNC92.2 (strand=2)\n- To find the splice junctions that are strand=0, search for the junctions that have a 'unidentified_strand' columns set to the value of 1 \n\n### Columns in Output File \n\nThe following columns are provided with more detail:\n\n- Motif:[0: non-canonical; 1: GT/AG, 2: CT/AC, 3: GC/AG, 4: CT/GC, 5:AT/AC, 6: GT/AT]\n- STAR_annotation: Both 5' and 3' splice site are annotated as one splice junction according to STAR\n- Unidentified_strand: splice junction originally was undefined (Strand = 0), but this junction has been developed with assumption of being on positive or negative strand (see 'strand' column for assumption)\n- 5'_in_constitutiveexon: Name of gene followed by the coordinates, else NA\n- 5'_in_constitutiveintron: Name of gene followed by the coordinates, else NA\n- 5'_in_CDS: If the 5' end is in a coding sequence region\n- 5'phyloPscore: Average score over N nucleotides of each splice site\n- 5'phylopList: List of phyloP values starting from lowest coordinate to highest coordinate\n- 5'bases_maxEnt and 3'bases_maxEnt: the sequence needed to run a maxEnt score\n- Similar logic is present in 3' regions \n\n\n## Acknowledgments\n- Athma Pai and Eraj Khokhar for guidance and support\n- Zyxue for gtf2csv: https://github.com/zyxue/gtf2csv\n- Yeo G and Burge C.B., Maximum Entropy Modeling of Short Sequence Motifs with Applications to RNA Splicing Signals, RECOMB 2003 (Journal Comp. Bio in press)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "characterize the splice junctions outputted by SJ.out.tab file",
    "version": "2.9",
    "project_urls": {
        "Homepage": "https://github.com/ayushkumar-umms/splice-junction-characterization"
    },
    "split_keywords": [
        "splicing"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e228bb01f323fa1dba4d3f97d4f8f0f84992868cb61ce22b27d5e349e21574ff",
                "md5": "e5d17def5debbd52992831d23a5ae5d5",
                "sha256": "51b3a25e56e59ced8d025a1befd34e76b15d411b55cb68e50994271406945c9f"
            },
            "downloads": -1,
            "filename": "splicejunxchx-2.9.tar.gz",
            "has_sig": false,
            "md5_digest": "e5d17def5debbd52992831d23a5ae5d5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 19818,
            "upload_time": "2025-02-11T21:09:14",
            "upload_time_iso_8601": "2025-02-11T21:09:14.545999Z",
            "url": "https://files.pythonhosted.org/packages/e2/28/bb01f323fa1dba4d3f97d4f8f0f84992868cb61ce22b27d5e349e21574ff/splicejunxchx-2.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-11 21:09:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ayushkumar-umms",
    "github_project": "splice-junction-characterization",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "splicejunxchx"
}
        
Elapsed time: 0.77991s