This repository was archived by the owner on Jan 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathparams.json
More file actions
6 lines (6 loc) · 13.9 KB
/
Copy pathparams.json
File metadata and controls
6 lines (6 loc) · 13.9 KB
1
2
3
4
5
6
{
"name": "Tryprnaseq",
"tagline": "Pipeline for RNAseq read counting of Trypanosoma reads",
"body": "[](https://zenodo.org/badge/latestdoi/61698762)\r\n# TrypRNAseq\r\nThe TrypRNAseq pipeline is designed to take raw Illumina reads, does quality control, removal of overrepresented sequences and alignes the processed reads to a genome. In the end it counts the reads to a user-supplied .gtf file and produces a tab-sepparated file summarizing its results. Users should only specify in the beginning parameters which are asked for in a command-line dialogue.\r\n\r\n# Information\r\n- This code is still pre-alpha and is now under construction and cleanup!\r\n- Till now, all reads will be aligned via bowtie2 up to 20-times (-k 20); in future releases this might be changed\r\nPlease have a look at our [Roadmap](https://github.com/klprint/TrypRNAseq/wiki/Roadmap)-page for upcomming features.\r\n\r\n# Dependencies\r\nAll dependencies need to be reachable via the command line.\r\n\r\n- __Python version 3__\r\n- [FastQC v0.11.5](http://www.bioinformatics.babraham.ac.uk/projects/fastqc/)\r\n- [Cutadapt version 1.7.1](https://cutadapt.readthedocs.io/en/stable/)\r\n- [bowtie2 version 2.0.0-beta7](http://bowtie-bio.sourceforge.net/bowtie2/index.shtml)\r\n- [samtools version 1.3.1](http://samtools.sourceforge.net/)\r\n\r\n# Workflow\r\n\r\n\r\n\r\n__Figure 1__: Flow of the TrypRNAseq pipeline. Rhomboids represent user influenceable decissions, rectangles files and ellipses commands and tools. Data, which the user needs to supply are shown in bold rectangles. O.S. = Overrepresented sequences as found by FastQC (sequences which make up more than 1% of all reads\r\n\r\n\r\nThe Illumina sequencing results are fed into the pipeline either as .fastq or .gz file. If the reads are gzipped, they will be extracted and saved as fastq (fasta files are also possible, but not recommeneded, since no information about the quality is saved). The user specifies whether the input is given to FastQC for quality control and if the found overrepresented sequences (mostly Illumina adapters and rRNA reads) should be removed by cutadapt. The generated files are aligned to the user-provided genome as a bowtie2 index. Bowtie2 generates .sam files and for each sequencing file a .log file. The .log file can be reviewed – it contains informations about the time needed for alignment and the alignment itself (how many reads aligned / once / more than once?). The sam file is converted into binary .bam files by samtools and an index (.bai) for each .bam file is generated. Besides, the pipeline directly sorts the .bam files' content for user review using for example [Artemis](http://www.sanger.ac.uk/science/tools/artemis). In the end, a python script uses samtools and the user-provided gene annotation file (.gtf) to count the reads for each annotated gene (region, depending on the .gtf file).\r\n\r\n\r\n\r\n# Usage\r\nIn the following, the usage of TrypRNAseq is described. It is to be noted that till now, TrypRNAseq does not support paired end reads. This feature might be implemented in later versions.\r\n\r\n1. Download the latest [version](https://github.com/klprint/TrypRNAseq/releases)\r\n2. Add the files containing the reads (can be gzipped, NO tarballs, make sure all have the same extension)\r\n3. Start the pipeline using: >__python3__ tryprnaseq.py or >./tryprnaseq\r\n4. Follow the instructions prompted in the terminal\r\n5. If alignment against _Trypanosoma brucei_ TREU927 genome is intended, the included bowtie2 index can be used\r\n6. If read counting should be done, using the coding sequences of the genes, the delivered GTF file (Tb_cds.gtf) can be used\r\n7. After the pipeline finished, the folder with tab separated read counts will open automatically\r\n8. Since some genes are annotated with multiple CDS, the pipeline will add up all reads of each individual CDS to the same geneID. geneID.a\r\n\r\nThe default settings are:\r\n\r\n```\r\nDefault-parameters:\r\n - Provided Bowtie Tryp. index\r\n - Provided .gtf file for read count\r\n - Remove all found adapters on both sides\r\n - Keep a minimal length of 30bp/read, discard all shorter\r\n - Number of threads = Will be asked for\r\n```\r\n\r\n## New: Accessible on any folder\r\nIf a central installation of TrypRNAseq is preferred, add the location of tryprnaseq.py to the $PATH variable and allow tryprnaseq.py being executed (chmod 755 tryprnaseq.py). If this is done, one can invoke the pipeline by typing tryprnaseq.py in the terminal. The pipeline then uses the working directory of the terminal.\r\n\r\n# Parameters\r\n## Pipeline Parameters\r\nSince 0.4 TrypRNAseq can be configured using commandline variables and flags. The following summarizes these options. Values in squared brackets are default settings if the option is ommited. If no option is specified, not even '-i', the terminal dialoque is started which guids the user through pipeline set-up.\r\n\r\n| Option | Description |\r\n|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\r\n| -h --help | Invokes the help message which summarizes all listed options |\r\n| -i --extension | Following this option, the extension of the raw read-files can be specified. The pipeline will look in the present directory for all files with this extension and will treat these as the pipeline's input. Do not enter the '.' before the file extension: e.g.: fastq NOT .fastq [REQUIRED] |\r\n| -u --ext-unzip | If '-i gz' is specified, the -u option needs to be added, giving the original file extension. This option was added since sometimes gzipped fastq files have the extension '.txt.gz' and therefore give no information what kind of file was gzipped. A TXT-file would hinder various downstream tools from functioning normally. |\r\n| -x --bow-index | If the user wants to use his/her own bowtie-index for read-alignment, the -x option can be used. Specifiy here the directory of the index and the prefix of the index files. (e.g.: ./Index/TbGenome). [pipeline included bowtie index of _Trypanosoma brucei_ Tb927] |\r\n| -g --gtf | Specifies the GTF file which characterizes the gene boundaries for read counting. [pipeline included GTF file for Tb927 coding sequences] |\r\n| -a --remove adapters | yes or no answer to whether identified overrepresented sequences should be removed prior to alignment. [yes] |\r\n| -q --fastqc | yes or no answer to whether a quality analysis should be conducted on raw-reads using FastQC |\r\n| -s --adapter-site | Specifies where the adapters (overrepresented sequences) are expected. Options are 3'(a), 5'(g) or both possible(b) [b] |\r\n| -l --min-length | What is the minimal read length which should be kept after adapter removal? [30] |\r\n| --max-adapters | How many of the (abundance sorted) overrepresented sequences (adapters) should be removed? Options are either a integer or 'all' which removes all identified overrepresented sequences. [all] |\r\n| -t --threads | How many threads should be allocated to the pipeline? [4] |\r\n\r\n\r\n## Tool Parameters\r\nThe TrypRNAseq pipeline uses different tools to process high throughput sequencing results and counting of the reads for specified parts of the genome (i.e. genes pr CDSs). All tools come with a variety of specific options and default parameters. Careful consideration of the settings nee to be done, to prevent wrong data processing.\r\n\r\n__Table 1__: Used tools and corresponding settings. _user specified_ = These parameters are specified by the user in the starting dialogue.\r\n\r\nTool | Settings for individual tool\r\n:--------------------|:-------------------------------------------------------------------\r\ncutadapt | -a/-g/-b (_user specified_), minimal kept length (_user specified_)\r\nbowtie2 | -k 20 (align each read up to 20 times), -x (_user specified genome index_), -t (print wall-clock time), -S (input sam-files, pipeline generated), StdOut saved into .log files\r\nsamtools view | -b (generate .bam files), -S (read in .sam files)\r\nsamtools sort | -m 2G (Use up to 2GB of RAM), -@ thread_number (_user specified_)\r\nsamtools index | default paramters, indexes the generated .bam files\r\nread counting script | reads in .gtf stored locations and uses samtools view to count the number of reads for each segment\r\n\r\n# Pipeline output\r\nThe pipeline produces different folders, containing individual steps. All intermediate files are saved by default, so users can review each step after the pipeline finished. The following summarizes the folders and their content.\r\n\r\n__Table 2__: Description of folders being created by TrypRNAseq pipeline.\r\n\r\nFolder |Content\r\n:---------------|:-------------------------------------------------------------------------\r\ngzipped\\_reads |If the reads file is gzipped in the beginning, the original .gz files will be copied here.\r\nfqc\\_result |Output of the FastQC quality control.\r\nadapters |.fasta files of the identified overrepresented sequences. These sequences are used by cutadapt for adapter removal.\r\nrm_adapt |Output of cutadapt. For each sequencing file, one folder is created. Each contains 3 Files: X\\_trimmed.X / X\\_untrimmed.X / X\\_processed.X. The latter contains the summary of both previous files: Trimmed and untrimmed sequences and is used by bowtie2 for read alignment.\r\nbowalign |Bowtie2 output folder, containing the alignment .sam files and a .log file for each input. The log saves bowtie2's statistics\r\nbam_files |Samtools output, containing .bam and corresponding index files (.bai).\r\n__reads__ |Storage of the final read-counting. Each input file gets a separate tab-sepparated output file. Additionally, a summarized output matrix with all read-counts is generated. The header line includes the original file name.\r\n\r\n\r\n\r\n# Attention\r\nBe careful that you have enough storage capacity, since the pipeline stores intermediate files (that you can review the process afterwards). This means, you should provide at least 400GB of storage (high estimation, depending on your raw read-files' size).\r\n\r\n# Contact\r\nIf you have any questions don't hesitate to contact me. Either you open a issue, or write an email to subicere(at)protonmail.com. \r\n\r\n# Licence\r\nThis pipeline was created by Kevin Leiss of the [Clayton lab](http://www.zmbh.uni-heidelberg.de/clayton/default.shtml) (ZMBH, Centre for Molecular Biology Heidelberg, Germany). Individual parts are developed by Clementine Merce and Elisha Muchunga.\r\n\r\n\r\n<a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by-sa/4.0/88x31.png\" /></a><br /><span xmlns:dct=\"http://purl.org/dc/terms/\" property=\"dct:title\">TrypRNAseq</span> by <a xmlns:cc=\"http://creativecommons.org/ns#\" href=\"https://github.com/klprint/TrypRNAseq\" property=\"cc:attributionName\" rel=\"cc:attributionURL\">Kevin Leiss</a> is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\">Creative Commons Attribution-ShareAlike 4.0 International License</a>.\r\n",
"note": "Don't delete this file! It's used internally to help with page regeneration."
}