|
32 | 32 |
|
33 | 33 | In order for this to work correctly, your input file must be sorted by read name. |
34 | 34 | Generally the protocol would be |
35 | | -1. Align reads with your favourite aligner |
| 35 | +1. Align reads to the transcriptome with your favourite aligner |
36 | 36 | 2. Position sort the resulting BAM file |
37 | 37 | 3. Run `dedup` on the position sorted name file |
38 | 38 | 4. Use `samtools sort -n` or `samtools collate` to sort by read name |
39 | 39 | 5. Use `prepare_for_rsem` to create a file that has exactly one mate |
40 | 40 | per read and that pairs are adjecent in the output. |
41 | | -6. Run your downstream tools - RSEM/Salmon on the output. |
| 41 | +6. Run your downstream tools - RSEM/Salmon/Kalisto on the output. |
42 | 42 |
|
43 | 43 | prepare-for-em specific options |
44 | 44 | ------------------------------- |
|
47 | 47 | --tags=TAG[,TAG....] |
48 | 48 | ==================== |
49 | 49 | List of SAM tags that are transfered from read1 to read2. The default |
50 | | -is UG and BX |
| 50 | +is UG and BX, which is the numeric UMI group, and the infered true UMI |
| 51 | +respectively. |
51 | 52 |
|
52 | 53 |
|
53 | 54 | ''' |
@@ -169,8 +170,8 @@ def main(argv=None): |
169 | 170 | else: |
170 | 171 | out_name = "-" |
171 | 172 |
|
172 | | - outformat = U.determine_format(out_name, options.sam, options.out_format) |
173 | | - outbam = U.open_output_alignments(out_name, outformat, options) |
| 173 | + outformat = U.determine_format(out_name, options.out_sam, options.out_format) |
| 174 | + outbam = U.open_output_alignments(out_name, outformat, inbam, options) |
174 | 175 |
|
175 | 176 | options.tags = options.tags.split(",") |
176 | 177 |
|
|
0 commit comments