Small cfRNA-seq Data Analysis

1. Trim adaptor

## For NEB libraries:
cutadapt -a AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC -m 16 --trim-n -q 30 \
-o >(pigz -c -p {threads} > {trimmed}) {input} > {log} 2>&1

## For smart libraries:
cutadapt -a AAAAAAAAAAA -g GGGGG -m 16 --trim-n -q 30 \
-o >(pigz -c -p {threads} > {trimmed}) {input} > {log} 2>&1

2. Sequence alignment

3. Quantification


## Count reads aligned to miRNA
bin/count_reads.py count_mature_mirna -i {miRNABam} -a {annotation}  -o {output}

## Count reads aligned to other transcripts
bin/count_reads.py count_transcript -i {transcriptBam} -s {strandness}  -o {output}