We received cleaned reads without adaptors and low quality reads
fastqc {input.fastq}
bowtie -v 1 -M 1 -m 10000 --best --un {sample.norRNA.fq} -t -p 6 {rRNA_index} -1 {sample_R1.fq} -2 {sample_R2.fq} {sample.alnrRNA.txt}
STAR --genomeDir {genome_index} --readFilesIn {sample.norRNA_1.fq} {sample.norRNA_2.fq} --runThreadN 10 --outFileNamePrefix {output_dir} --outSAMtype BAM SortedByCoordinate
featureCounts -T 6 -s 2 -p -t exon -g gene_id -a {annotation.gtf} -o {sample.featurecounts.txt} {sample.bam}
edgeR: rpkm()
rpkm <- rpkm(countData,gene.lengths)
edgeR https://lulab.gitbook.io/training/part-ii.-basic-bioinfo-analyses/3.differential-expression
the same as total RNA
bowtie2 -x {bowtie2_genome_index} -q {sample.clean.fastq}|samtools view -bS > {sample.clean.bam}
featureCounts -s 1 -t miRNA -g Name -M --fraction -T 6 -a {miRNA.gff3} -o {sample.featurecounts.txt} {sample.clean.bam}
the same as total RNA
the same as total RNA