| 1 |
PRE = "transcripts" |
| 2 |
GTF = "{0}.gtf.gz".format(PRE) |
| 3 |
FASTA = "{0}.fasta.gz".format(PRE) |
| 4 |
INDEX = "{0}.kidx".format(PRE) |
| 5 |
|
| 6 |
rule all: |
| 7 |
input: |
| 8 |
"quant_out/abundance.tsv", |
| 9 |
"bus_out/output.bus" |
| 10 |
|
| 11 |
rule index: |
| 12 |
input: FASTA |
| 13 |
output: INDEX |
| 14 |
shell: |
| 15 |
""" |
| 16 |
kallisto index -i {output} {input} |
| 17 |
|
| 18 |
mkdir quant_out |
| 19 |
mkdir bus_out |
| 20 |
""" |
| 21 |
|
| 22 |
rule kallisto_quant: |
| 23 |
input: |
| 24 |
"reads_1.fastq.gz", |
| 25 |
"reads_2.fastq.gz", |
| 26 |
INDEX |
| 27 |
output: |
| 28 |
"quant_out/abundance.tsv", |
| 29 |
"quant_out/run_info.json" |
| 30 |
shell: |
| 31 |
""" |
| 32 |
kallisto quant \ |
| 33 |
-i {INDEX} \ |
| 34 |
-b 30 \ |
| 35 |
-o quant_out/ \ |
| 36 |
--genomebam \ |
| 37 |
--gtf {GTF} \ |
| 38 |
--chromosomes chrom.txt \ |
| 39 |
{input[0]} {input[1]} |
| 40 |
""" |
| 41 |
|
| 42 |
rule kallisto_bus: |
| 43 |
input: |
| 44 |
"sc_reads_1.fastq.gz", |
| 45 |
"sc_reads_2.fastq.gz", |
| 46 |
INDEX |
| 47 |
output: |
| 48 |
"bus_out/matrix.ec", |
| 49 |
"bus_out/transcripts.txt", |
| 50 |
"bus_out/output.bus", |
| 51 |
"bus_out/run_info.json" |
| 52 |
shell: |
| 53 |
""" |
| 54 |
kallisto bus \ |
| 55 |
-i {INDEX} \ |
| 56 |
-x 10xv2 \ |
| 57 |
-o bus_out \ |
| 58 |
-t 4 \ |
| 59 |
{input[0]} {input[1]} |
| 60 |
""" |