Difference between revisions of "Trinity"

From wiki
Jump to: navigation, search
(Created page with "=Introduction= The widely established tool for transcriptome assembly. = Version 2.3.2, full help file = This is an editted version. With the module loaded, type Trinity -...")
(No difference)

Revision as of 14:39, 27 January 2017

Introduction

The widely established tool for transcriptome assembly.

Version 2.3.2, full help file

This is an editted version. With the module loaded, type

Trinity --show-full-usage-info

For the raw version.

Obligatory options

  • --seqType <string>, what type of reads the inputs are: ('fa' or 'fq')
  • --max_memory <string>, suggested max memory to use by Trinity where limiting can be enabled. (jellyfish, sorting, etc) in Gb of RAM, ie. '--max_memory 10G'
  • --left <string>  :left reads, one or more file names (separated by commas, no spaces)
  • --right <string>  :right reads, one or more file names (separated by commas, no spaces)
  • --single <string> (obviously neither obligatory nor necessary if paired reads are being input). Ssingle reads, one or more file names, comma-delimited (note, if single file contains pairs, can use flag: --run_as_paired )

Or,

  • --samples_file <string> tab-delimited text file indicating biological replicate relationships.
  1. ex.
  2. cond_A cond_A_rep1 A_rep1_left.fq A_rep1_right.fq
  3. cond_A cond_A_rep2 A_rep2_left.fq A_rep2_right.fq
  4. cond_B cond_B_rep1 B_rep1_left.fq B_rep1_right.fq
  5. cond_B cond_B_rep2 B_rep2_left.fq B_rep2_right.fq
  6. # if single-end instead of paired-end, then leave the 4th column above empty.
    1. Misc: #########################
  • --SS_lib_type <string>  :Strand-specific RNA-Seq read orientation.
  1. if paired: RF or FR,
  2. if single: F or R. (dUTP method = RF)
  3. See web documentation.
  4. --CPU <int>  :number of CPUs to use, default: 2
  5. --min_contig_length <int>  :minimum assembled contig length to report
  6. (def=200)
  7. --long_reads <string>  :fasta file containing error-corrected or circular consensus (CCS) pac bio reads
  8. (** note: experimental parameter **, this functionality continues to be under development)
  9. --genome_guided_bam <string>  :genome guided mode, provide path to coordinate-sorted bam file.
  10. (see genome-guided param section under --show_full_usage_info)
  11. --jaccard_clip  :option, set if you have paired reads and
  12. you expect high gene density with UTR
  13. overlap (use FASTQ input file format
  14. for reads).
  15. (note: jaccard_clip is an expensive
  16. operation, so avoid using it unless
  17. necessary due to finding excessive fusion
  18. transcripts w/o it.)
  19. --trimmomatic  :run Trimmomatic to quality trim reads
  20. see '--quality_trimming_params' under full usage info for tailored settings.
  21. --no_normalize_reads  :Do *not* run in silico normalization of reads. Defaults to max. read coverage of 50.
  22. see '--normalize_max_read_cov' under full usage info for tailored settings.
  23. (note, as of Sept 21, 2016, normalization is on by default)
  24. --no_distributed_trinity_exec  :do not run Trinity phase 2 (assembly of partitioned reads), and stop after generating command list.
  25. --output <string>  :name of directory for output (will be
  26. created if it doesn't already exist)
  27. default( your current working directory: "/storage/home/users/ramon/trinity_out_dir"
  28. note: must include 'trinity' in the name as a safety precaution! )
  29. --full_cleanup  :only retain the Trinity fasta file, rename as ${output_dir}.Trinity.fasta
  30. --cite  :show the Trinity literature citation
  31. --verbose  :provide additional job status info during the run.
  32. --version  :reports Trinity version (Trinity-v2.3.2) and exits.
  33. --show_full_usage_info  :show the many many more options available for running Trinity (expert usage).
  1. --KMER_SIZE <int>  :kmer length to use (default: 25) max=32
  2. --prep  :Only prepare files (high I/O usage) and stop before kmer counting.
  3. --no_cleanup  :retain all intermediate input files.
  4. --no_version_check  :dont run a network check to determine if software updates are available.
  5. Inchworm and K-mer counting-related options: #####
  6. --min_kmer_cov <int>  :min count for K-mers to be assembled by
  7. Inchworm (default: 1)
  8. --inchworm_cpu <int>  :number of CPUs to use for Inchworm, default is min(6, --CPU option)
  9. --no_run_inchworm  :stop after running jellyfish, before inchworm. (phase 1, read clustering only)
  10. Chrysalis-related options: ######
  11. --max_reads_per_graph <int>  :maximum number of reads to anchor within
  12. a single graph (default: 200000)
  13. --min_glue <int>  :min number of reads needed to glue two inchworm contigs
  14. together. (default: 2)
  15. --no_bowtie  :dont run bowtie to use pair info in chrysalis clustering.
  16. --no_run_chrysalis  :stop after running inchworm, before chrysalis. (phase 1, read clustering only)
      1. Butterfly-related options: ####
  17. --bfly_opts <string>  :additional parameters to pass through to butterfly
  18. (see butterfly options: java -jar Butterfly.jar ).
  19. (note: only for expert or experimental use. Commonly used parameters are exposed through this Trinity menu here).
  20. Butterfly read-pair grouping settings (used to define 'pair paths'):
  21. --group_pairs_distance <int>  :maximum length expected between fragment pairs (default: 500)
  22. (reads outside this distance are treated as single-end)
  23. ///////////////////////////////////////////////
  24. Butterfly default reconstruction mode settings. (no CuffFly or PasaFly custom settings are currently available).
  25. --path_reinforcement_distance <int>  :minimum overlap of reads with growing transcript
  26. path (default: PE: 75, SE: 25)
  27. Set to 1 for the most lenient path extension requirements.
  28. /////////////////////////////////////////
  29. Butterfly transcript reduction settings:
  30. --no_path_merging  : all final transcript candidates are output (including SNP variations, however, some SNPs may be unphased)
  31. By default, alternative transcript candidates are merged (in reality, discarded) if they are found to be too similar, according to the following logic:
  32. (identity=(numberOfMatches/shorterLen) > 95.0% or if we have <= 2 mismatches) and if we have internal gap lengths <= 10
  33. with parameters as:
  34. --min_per_id_same_path <int> default: 98 min percent identity for two paths to be merged into single paths
  35. --max_diffs_same_path <int> default: 2 max allowed differences encountered between path sequences to combine them
  36. --max_internal_gap_same_path <int> default: 10 maximum number of internal consecutive gap characters allowed for paths to be merged into single paths.
  37. If, in a comparison between two alternative transcripts, they are found too similar, the transcript with the greatest cumulative
  38. compatible read (pair-path) support is retained, and the other is discarded.
  39. //////////////////////////////////////////////
  40. Butterfly Java and parallel execution settings.
  41. --bflyHeapSpaceMax <string>  :java max heap space setting for butterfly
  42. (default: 4G) => yields command
  43. 'java -Xmx4G -jar Butterfly.jar ... $bfly_opts'
  44. --bflyHeapSpaceInit <string>  :java initial hap space settings for
  45. butterfly (default: 1G) => yields command
  46. 'java -Xms1G -jar Butterfly.jar ... $bfly_opts'
  47. --bflyGCThreads <int>  :threads for garbage collection
  48. (default: 2))
  49. --bflyCPU <int>  :CPUs to use (default will be normal
  50. number of CPUs; e.g., 2)
  51. --bflyCalculateCPU  :Calculate CPUs based on 80% of max_memory
  52. divided by maxbflyHeapSpaceMax
  53. --bfly_jar <string>  : /path/to/Butterfly.jar, otherwise default
  54. Trinity-installed version is used.
        1. Quality Trimming Options ####
  55. --quality_trimming_params <string> defaults to: "ILLUMINACLIP:/usr/local/Modules/modulefiles/tools/trinity/2.3.2/trinity-plugins/Trimmomatic/adapters/TruSeq3-PE.fa:2:30:10 SLIDINGWINDOW:4:5 LEADING:5 TRAILING:5 MINLEN:25"
        1. In silico Read Normalization Options ###
  56. --normalize_max_read_cov <int> defaults to 50
  57. --normalize_by_read_set run normalization separate for each pair of fastq files,
  58. then one final normalization that combines the individual normalized reads.
  59. Consider using this if RAM limitations are a consideration.
        1. Genome-guided de novo assembly
  60. * required:
  61. --genome_guided_max_intron <int>  :maximum allowed intron length (also maximum fragment span on genome)
  62. * optional:
  63. --genome_guided_min_coverage <int>  :minimum read coverage for identifying and expressed region of the genome. (default: 1)
  64. --genome_guided_min_reads_per_partition <int>  :default min of 10 reads per partition
  65. Trinity phase 2 (parallel assembly of read clusters) Options: #######
  66. --grid_exec <string>  :your command-line utility for submitting jobs to the grid.
  67. This should be a command line tool that accepts a single parameter:
  68. ${your_submission_tool} /path/to/file/containing/commands.txt
  69. and this submission tool should exit(0) upon successful
  70. completion of all commands.
  71. --grid_node_CPU <int> number of threads for each parallel process to leverage. (default: 1)
  72. --grid_node_max_memory <string> max memory targeted for each grid node. (default: 1G)
  73. The --grid_node_CPU and --grid_node_max_memory are applied as
  74. the --CPU and --max_memory parameters for the Trinity jobs run in
  75. Trinity Phase 2 (assembly of read clusters)
   #
  1. *Note, a typical Trinity command might be:
  2. Trinity --seqType fq --max_memory 50G --left reads_1.fq --right reads_2.fq --CPU 6
  3. and for Genome-guided Trinity:
  4. Trinity --genome_guided_bam rnaseq_alignments.csorted.bam --max_memory 50G
  5. --genome_guided_max_intron 10000 --CPU 6
  6. see: /usr/local/Modules/modulefiles/tools/trinity/2.3.2/sample_data/test_Trinity_Assembly/
  7. for sample data and 'runMe.sh' for example Trinity execution
  8. For more details, visit: http://trinityrnaseq.github.io