annotate README.md @ 8:d233bed1b2cf draft default tip

Hopefully the final update
author dpryan79
date Tue, 18 Apr 2017 16:14:50 -0400
parents 608029af725e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
608029af725e Uploaded
dpryan79
parents:
diff changeset
1 ##What it does##
608029af725e Uploaded
dpryan79
parents:
diff changeset
2
608029af725e Uploaded
dpryan79
parents:
diff changeset
3 This is a Galaxy datamanager for the rna STAR gap-aware RNA aligner. It's a hack of Dan Blankenberg's BWA data manager
608029af725e Uploaded
dpryan79
parents:
diff changeset
4 and works on any fasta file you have already downloaded with the all fasta data manager - start there!
608029af725e Uploaded
dpryan79
parents:
diff changeset
5
608029af725e Uploaded
dpryan79
parents:
diff changeset
6 Warning - this is not well tested and there are some complexities to do with splice junction annotation in rna star
608029af725e Uploaded
dpryan79
parents:
diff changeset
7 indexes - feedback welcomed. Send code.
608029af725e Uploaded
dpryan79
parents:
diff changeset
8
608029af725e Uploaded
dpryan79
parents:
diff changeset
9 Note, currently you'll need a small patch to prevent an error when you try to generate splice junction indexes described at
608029af725e Uploaded
dpryan79
parents:
diff changeset
10 https://bitbucket.org/galaxy/galaxy-central/pull-request/510/fix-for-data-manager-failure-to-update-a#comment-3265356
608029af725e Uploaded
dpryan79
parents:
diff changeset
11
608029af725e Uploaded
dpryan79
parents:
diff changeset
12 Please read the fine manual - that and the google group are the places to learn about the options above.
608029af725e Uploaded
dpryan79
parents:
diff changeset
13
608029af725e Uploaded
dpryan79
parents:
diff changeset
14 *Note on sjdbOverhang*
608029af725e Uploaded
dpryan79
parents:
diff changeset
15
608029af725e Uploaded
dpryan79
parents:
diff changeset
16 From https://groups.google.com/forum/#!topic/rna-star/h9oh10UlvhI::
608029af725e Uploaded
dpryan79
parents:
diff changeset
17
608029af725e Uploaded
dpryan79
parents:
diff changeset
18 James is right, using large enough --sjdbOverhang is safer and should not generally cause any problems with reads of varying length. If your reads are very short, <50b, then I would strongly recommend using optimum --sjdbOverhang=mateLength-1
608029af725e Uploaded
dpryan79
parents:
diff changeset
19 By mate length I mean the length of one of the ends of the read, i.e. it's 100 for 2x100b PE or 1x100b SE. For longer reads you can simply use generic --sjdbOverhang 100.
608029af725e Uploaded
dpryan79
parents:
diff changeset
20 It is a bit confusing because of the way I named this parameter. --sjdbOverhang Noverhang is only used at the genome generation step for constructing the reference sequence out of the annotations.
608029af725e Uploaded
dpryan79
parents:
diff changeset
21 Basically, the Noverhang exonic bases from the donor site and Noverhang exonic bases from the acceptor site are spliced together for each of the junctions, and these spliced sequences are added to the genome sequence.
608029af725e Uploaded
dpryan79
parents:
diff changeset
22
608029af725e Uploaded
dpryan79
parents:
diff changeset
23 At the mapping stage, the reads are aligned to both genomic and splice sequences simultaneously. If a read maps to one of spliced sequences and crosses the "junction" in the middle of it, the coordinates of two pspliced pieces are translated back to genomic space and added to the collection of mapped pieces, which are then all "stitched" together to form the final alignment. Since in the process of "maximal mapped length" search the read is split into pieces of no longer than --seedSearchStartLmax (=50 by default) bases, even if the read (mate) is longer than --sjdbOverhang, it can still be mapped to the spliced reference, as long as --sjdbOverhang > --seedSearchStartLmax.
608029af725e Uploaded
dpryan79
parents:
diff changeset
24
608029af725e Uploaded
dpryan79
parents:
diff changeset
25 Cheers
608029af725e Uploaded
dpryan79
parents:
diff changeset
26 Alex
608029af725e Uploaded
dpryan79
parents:
diff changeset
27
608029af725e Uploaded
dpryan79
parents:
diff changeset
28 *Note on gene model requirements for splice junctions*
608029af725e Uploaded
dpryan79
parents:
diff changeset
29
608029af725e Uploaded
dpryan79
parents:
diff changeset
30 From https://groups.google.com/forum/#!msg/rna-star/3Y_aaTuzBrE/lUylTB8h5vMJ::
608029af725e Uploaded
dpryan79
parents:
diff changeset
31
608029af725e Uploaded
dpryan79
parents:
diff changeset
32 When you generate a genome with annotations, you need to specify --sjdbOverhang value, which ideally should be equal to (oneMateLength-1), or you could use a generic value of ~100.
608029af725e Uploaded
dpryan79
parents:
diff changeset
33
608029af725e Uploaded
dpryan79
parents:
diff changeset
34 Your gtf lines look fine to me. STAR needs 3 features from a GTF file:
608029af725e Uploaded
dpryan79
parents:
diff changeset
35 1. Chromosome names in col.1 that agree with chromosome names in genome .fasta files. If you have "chr2L" names in the genome .fasta files, and "2L" in the .gtf file, then you need to use --sjdbGTFchrPrefix chr option.
608029af725e Uploaded
dpryan79
parents:
diff changeset
36 2. 'exon' in col.3 for the exons of all transcripts (this name can be changed with --sjdbGTFfeatureExon)
608029af725e Uploaded
dpryan79
parents:
diff changeset
37 3. 'transcript_id' attribute that assigns each exon to a transcript (--this name can be changed with --sjdbGTFtagExonParentTranscript)
608029af725e Uploaded
dpryan79
parents:
diff changeset
38
608029af725e Uploaded
dpryan79
parents:
diff changeset
39 Cheers
608029af725e Uploaded
dpryan79
parents:
diff changeset
40 Alex