You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d0fc8af
Browse filesBrowse the repository at this point in the historyBrowse files
Make the output directory, then, trom the reads directory, run alignments
35
37
36
38
```{bash, eval=FALSE}
39
+
mkdir ~/DGE_workshop/alignments
40
+
37
41
for file in *.fastp.gz; do hisat2 -x /home/$USER/DGE_workshop/genome/GRCm39.index --threads 10 -U ${file} -S /home/$USER/DGE_workshop/alignments/${file}.sam; done
38
42
```
39
43
@@ -53,6 +57,9 @@ Some alignment tools (HISAT2 for example) will print alignment metrics after gen
53
57
Change environments and use this statistics summarization command. It takes about a minute per sample.
54
58
55
59
```{bash, eval=FALSE}
60
+
conda deactivate
61
+
source activate samtools
62
+
56
63
samtools flagstat SRR23869771.fastq.fastp.gz.sam
57
64
```
58
65
@@ -96,6 +103,8 @@ Therefore, the number of primary alignments can also be found by:
Note that this is less than the total number of reads in our file. This operates in an "or" fashion. If we run the above command with "-f", it yields 0, because the postive search runs in an "and" fashion.
107
+
99
108
Exercise: Select another sample, and using any of the means above, determine 1) Total read count 2) Total mapped reads 3) Total primary alignments
100
109
101
110
## .sam/.bam conversion and alignment sorting
@@ -107,7 +116,11 @@ for file in *.sam; do samtools view -u ${file} | samtools sort -o ${file}.sorted
author = {JJ Allaire and Yihui Xie and Christophe Dervieux and Jonathan McPherson and Javier Luraschi and Kevin Ushey and Aron Atkins and Hadley Wickham and Joe Cheng and Winston Chang and Richard Iannone},
36
+
author = {JJ Allaire and Yihui Xie and Jonathan McPherson and Javier Luraschi and Kevin Ushey and Aron Atkins and Hadley Wickham and Joe Cheng and Winston Chang and Richard Iannone},
0 commit comments